Consider a system having ‘m’ resources of the same type. The resources are…
2007
Consider a system having ‘m’ resources of the same type. The resources are shared by 3 processes A,B,C, which have peak time demands of 3,4,6 respectively. The minimum value of ‘m’ that ensures that deadlock will never occur is
- A.
11
- B.
12
- C.
13
- D.
14
Attempted by 108 students.
Show answer & explanation
Correct answer: A
For one resource type, deadlock is impossible if total resources are at least the sum of each process's maximum need minus one, plus one: (3 - 1) + (4 - 1) + (6 - 1) + 1 = 11.