作者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
1F:→ mqazz1:请问原PO的答案是学校公布的吗? 08/31 00:06
2F:→ ceo890710:答案我不确定是正确的,因为题目时从同学拿来的。 08/31 07:41