1. Explain what has to happen for a set of processes to achieve a deadlocked state.
使一組procee處於死結狀態,在該組內process都必須等待一個事件,該事件只能只能由該組另一個process引起,因此,如果沒有人工干預,process將永遠無法退出該狀態
2. Describe the four conditions that must hold simultaneously in a system if a deadlock is to occur.
使一個process處於死結:至少一個資源必須保持在不可共享模式,一個process必須至少擁有一個資源並正在等待獲取其他process所擁有的其他資源,資源不可以被搶先,並且進程之間必須循環等待。
3. What are the three general ways that a deadlock can be handled?
a.使用某一協定確保永遠不會發生死結
b.允許系統發生死結,偵測出來再想辦法恢復
c.忽略此問題,假裝系統永遠不會發生
4. What is the difference between deadlock prevention and deadlock avoidance?
a.deadlock prevention是一組確保至少一個死結