GATE / CS ARCHIVE

GATE CSE 1992 / QUESTION 2(xi)

Maximum process count with six drives

Operating Systems · Deadlocks · Full GATE CSE 1992 paper

GATE 1992, Q2(xi) MSQ
Report issue

Deadlocks

Question 2(xi), GATE 1992: Six identical tape drives are shared by n processes, each possibly needing three. What maximum n guarantees no resource deadlock without restrictive allocation?
Question 2(xi), GATE 1992: Six identical tape drives are shared by n processes, each possibly needing three. What maximum n guarantees no resource deadlock without restrictive allocation?
Tap to enlarge
Select all that apply
Answer & solution

Answer: A: n=2 (no official key was published)

A worst-case deadlock can have every process hold two drives and wait for its third. To rule that out for n processes, at least 2n+1 drives suffice under the standard completion model. With six drives, this requires n≤2. For three processes, each can hold two, exhausting all six and waiting forever. For two processes, their combined maximum demand is six, so both can be fully satisfied. The guarantee assumes eventual completion after required resources are granted and no additional resource types or faulty nontermination.

Original paper, page 3