CS FundamentalsHardProduct-company MCQ pattern

A system has 6 identical tape drives. Each of n processes needs at most 2 drives. What is the maximum n for which the system is guaranteed to be deadlock-free?

  1. A. 3
  2. B. 5
  3. C. 4
  4. D. 6

Correct answer: B. 5

Deadlock-free if n(2 − 1) + 1 ≤ 6, i.e. n ≤ 5. With 6 processes each could hold 1 drive and wait for a second with none left. Dividing 6 by 2 to get 3 is the common mistake.

More Operating Systems questions

Exams that ask this topic