GATE / CS ARCHIVE

GATE CSE 2015 SET 2 / QUESTION 30

GATE CSE 2015 Set 2 Q30

Operating Systems · Deadlocks · Full GATE CSE 2015 Set 2 paper

GATE 2015 Set 2, Q30 1 mark · MCQ
Report issue

Deadlocks

Question 30, GATE 2015: A system has 6 identical resources, N processes, each claiming at most 2 resources. Which N could deadlock? A1, B2, C3, D4. Published answer D conflicts with literal total-claim premises.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Our answer: None under maximum-total-claim reading; official D

With maximum claim 2, a blocked process can hold at most 1 resource. If all N≤4 processes are blocked, at most 4 of the 6 resources are held, leaving enough to satisfy at least one pending request. Hence deadlock is impossible for every listed N. Six processes each holding 1 and requesting 1 provide the first possible deadlock. Official D (N=4) conflicts with the stated 6 resources/max 2 total claim; do not silently change either premise.

If a process has obtained both resources it needs, it can finish and release them. A blocked unfinished process therefore holds at most one unit. With N≤4, even if every process holds one, at most 4 of 6 units are occupied, leaving spare units to let a process finish. In general, R≥N(maxclaim−1)+1 guarantees this progress for identical reusable units. For maxclaim 2, the first deadlock configuration is 6 processes each holding 1 and waiting for 1. None of the four offered counts realizes it; preserve the published D only as a conflicting score, not the mathematical conclusion.

Original paper, page 36 · Answer key