[理工] [OS] deadlock

看板Grad-ProbAsk作者 (無法顯示)時間14年前 (2011/05/01 18:08), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/6 (看更多)
two processes, A and B, each need three records, 1, 2, and 3, in a batabase. if A asks for them in the order 1, 2, 3, and B asks for them in the same order deadlock is not possible however, if B asks for them in the order 3, 2, 1, then deadlock is possible with three resources, there are 3! or six possible combinations each process can request the resources what fraction of all the combinations is guaranteed to be deadlock free? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.228.24.84
文章代碼(AID): #1DlJ454U (Grad-ProbAsk)
文章代碼(AID): #1DlJ454U (Grad-ProbAsk)