Consider a system having "n" resources of same type. These resources are…
2009
Consider a system having "n" resources of same type. These resources are shared by 3 processes, A, B, C. These have peak demands of 3, 4, and 6 respectively. For what value of "n" deadlock won't occur
- A.
15
- B.
9
- C.
10
- D.
11
Attempted by 164 students.
Show answer & explanation
Correct answer: D
To prevent deadlock, the total number of resources (n) must exceed the sum of maximum resources each process can hold without completing. For each process, this is (peak demand - 1). Process A needs 3-1=2, Process B needs 4-1=3, and Process C needs 6-1=5. The sum is 2+3+5 = 10. If n > 10, at least one process can proceed to completion. Thus, the minimum value for n is 11.