CS FundamentalsModerateProduct-company MCQ pattern

Four processes share a pool of identical resource instances, and each process needs at most 3 instances to finish. What is the minimum number of instances that guarantees deadlock can never occur?

  1. A. 10
  2. B. 8
  3. C. 9
  4. D. 12

Correct answer: C. 9

Worst case: each process holds 3 − 1 = 2 instances and waits for one more, using 4 × 2 = 8. One extra instance lets some process finish, so 8 + 1 = 9 is the minimum. With 8, all four can be stuck.

More Operating Systems questions

Exams that ask this topic