ISRO Scientist/Engineer CSE 2018Operating Systems › Deadlocks
ISRO Scientist/Engineer CSE 2018 PYQ: Consider a system having $m$ resources of the same type. These resources are shared by 3 processes $A, B,…
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 that deadlock will never occur is:
- A11Correct answer
- B12
- C13
- D14
Answer
(A) $11$
Approach
Use the standard deadlock-avoidance condition for a single resource type: if the sum of all processes' peak demands is strictly less than the number of processes plus the number of resources, deadlock is impossible. Equivalently, deadlock is guaranteed to be avoidable when m > (sum of peak demands) - n.
Reviewed by ISRO IQ Editorial Team.