ISRO | ISRO CS 2007 | Question 40
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
Answer: (A)
Explanation: Minimum resources required to avoid deadlock = (m1 – 1) + (m2 – 1) +..+ (my – 1) + 1
where m = resource required by process
y = number of processes
so, Number of resources that ensures that deadlock will never occur is = (3-1) + (4-1) + (6-1) + 1 = 11
Option (A) is correct.
Quiz of this Question
Please Login to comment...