作者ceo890710 (Drinking)
看板Grad-ProbAsk
標題[理工] [OS] synchronization
時間Tue Aug 30 22:51:30 2011
選擇題中的選項
True 1. wait and signal of a counting semaphore cannot be implemented
with multiple binary semaphores.
這題是不是因為多了個multiple所以才錯呢~那請問為什麼
False 2. When a semaphore block a process,the process is moved to
ready state
block之後不是就把process放到waiting queue裡面嗎?
所以是ready state吧?
False 3. If the conditions of mutual exclusion,hold and wait,no preemption
,and circular wait hold simultaneously in the system,a deadlock
situation will arise.
滿足四個條件死結發生~所以不太清楚這錯在哪邊
請高手解答 謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.251.243.73
→ mqazz1:請問原PO的答案是學校公佈的嗎? 08/31 00:06
→ ceo890710:答案我不確定是正確的,因為題目時從同學拿來的。 08/31 07:41