CS FundamentalsHardGATE CS

Four processes need at most 3, 4, 5 and 2 units of one resource type and request them one at a time in any order. What is the smallest number of units that makes deadlock impossible?

  1. A. 14
  2. B. 11
  3. C. 10
  4. D. 12

Correct answer: B. 11

Worst case: each process holds one less than its maximum, (3−1) + (4−1) + (5−1) + (2−1) = 10, and one more unit lets someone finish: 11. 14 is the total of the maxima, which is sufficient but not minimal.

More Operating Systems questions

Exams that ask this topic