作者n791116 (DIODE)
看板Grad-ProbAsk
標題[理工] OS
時間Thu Dec 26 00:45:34 2013
想請問幾題OS題目 因為手邊沒有解答
想麻煩各位大大們幫忙指正
單選:
第一題:In a paged virtual memory system
(A)threading (B)thrashing (C)signaling (D)stacking
is a condition in which excessive paging operations are taking place.
這題我選B
第二題:In a segmentation virtual memory system ,
(A)internal fragmentation (B)external fragmentation
(C)threading (D)thrashing (E)signaling
occurs if holes left in physical memory when segments are destroyed.
這題我選(B)
第三題:Transport Layer Security(TLS) uses
(A)asymmetric cryptography (B)symmetric cryptography
(C)message authentication codes(MAC)
(D)one-way hash functions (E)bloom filters
for key exchange.
這題我選(B)
第四題:What locking mechanism is better suited for multiprocessor
where threads run for a short period of time?
(A)spinlock (B)mutexes (C)semaphore (D)adaptive mutexes
(E)condition variables
這題我選(A)
第五題:What is the most required hardware support for the synchronization
implementation in an operating system?
(A)data cache (B)instruction cache (C)translation look-ahead buffers
(D)atomic read-modify-write cycle (E)superscalar architecture
這題我選(B)
第六題:In Linux or Windows,a device drivers needing the best performance
should be run in
(A)user mode (B)middleware mode (C)kernal mode(D)application mode
(E)virtual mode
這題我選(C)
第七題:Which of the scheduling approach should be used in a real time
system? (A)first come first serve (B)shortest-job first
(C)Non-preemptive priority (D)Round-Robin (E)Priority-based preemptive
這題我選(E)
第八題:What statemant is wrong?
(A)both threads and processes are execution in an application
(B)Processes are independent execution units that contain their
own address spaces.
(C)A single process can contain multiple threads
(D)all threads within a process can communicate with each other directly
through global variables.
(E)Threads in different processes can communicate with each other
directly through global variables.
這題我選(E)
多選:
第九題:Signals are an inter-process communication mechanism in Unix/LinuX
OS.Signals can be generated by
(A)A user shell command
(B)programs via system calls
(C)the kernel
(D)an interrupt or exception handler
這題我選CD
以上 拜託大家了(跪)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.185.122.223
→ kiki86151:124678應該 5我會選D 39不確定 看有沒有高手補充 其實 12/26 01:06
→ kiki86151:有些句子在恐龍裡面有一模一樣的 印象中就像12有 12/26 01:06
→ ken1325:第二題後面,if那段話是外部碎裂? 12/26 01:12
→ kiki86151:不是嗎?語意看起來沒問題阿avaiable memory被配置segmen 12/26 01:45
→ kiki86151:變小不能用不是外部破碎嗎?句子臨時在恐龍找不到= = 12/26 01:45
→ kiki86151:但有找到hole=available mem hole left是指被拿去用了吧 12/26 01:45
→ kiki86151:被拿去用後 剩下的segment被破壞了 所以不能用 12/26 01:46
推 A4P8T6X9:最後一題,有點想全選。有kill -9之類的command可以傳 12/26 09:53
→ hackerick4:第三題我會想要選A,在TLS裡面我們採用CHAP的方式協定 12/26 18:00
→ hackerick4:然後以非對稱公開金鑰加密(雙方拿的key不一樣)方式 12/26 18:02
→ hackerick4:做key的交換(CHAP裡面的術語叫做challenge)以驗證身分 12/26 18:05
→ hackerick4:其中,這種密鑰的加密方式採用SSL也就是MD5,這是屬於 12/26 18:05
→ hackerick4:一種one-way hash的方式 12/26 18:06
→ hackerick4:總結 : key 的交換方式採用asymmetric cryptography 12/26 18:07
→ hackerick4:加密方式採用的是SSL 12/26 18:08
→ hackerick4:可以參考英文版wiki:Transport Layer Security第三行~ 12/26 18:09
→ n791116:To Kiki大:依稀記得hole好像是無法被利用回收(不確定) 12/26 18:52
→ n791116:外部碎裂定義似乎是不連續的區塊無法配置所以我選B但是 12/26 18:55
→ n791116:只是我的想法不太確定XD 12/26 18:55
→ n791116:To A4P8大大:因為不知道誰可以產生signal 感覺kernel一定 12/26 18:58
→ n791116:可以 12/26 18:58
→ n791116:另外也想順便問signal是可以由誰產生的QQ只有kernel嗎!? 12/26 19:00
→ n791116:To hack大大:謝謝你我之前也有查wiki但是..看不太懂QQ" 12/26 19:02
→ n791116:XTo kiki大:第五題經你這麼一說好像是D耶XD一氣呵成 12/26 19:06