ISRO | ISRO CS 2018 | Question 66
Consider a system having m resources of the same type. These 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 deadlock will never occur is
Explanation: Let the resources needed by P1 = R1 = 3, the number of resources needed by P2 = R2 = 4 and so on.
Minimum resources required to ensure that deadlock will never occur = (R1-1) + (R2-1) + (R3-1) + 1 = (3-1) + (4-1) + (6-1) + 1 = 11
Option (A) is correct.
Quiz of this Question