GATE CS 2026 Set 1 | Question 35

Operating Systems › Deadlock · NAT · 1 mark · Answer: 6

  1. Question 35Operating Systemsnat1 mark
    Consider a system consisting of instances of a resource , being shared by 5 processes. Assume that each process requires a maximum of two instances of resource and a process can request or release only one instance at a time. Further, a process can request the second instance of the resource only after acquiring the first instance. The minimum value of for the system to be deadlock-free is ________. (answer in integer)

    Answer: 6

    Solution

    Answer: 6 Worst case: every process holds one instance and waits for its second. With , all 5 instances are held and everyone waits, which is a deadlock. One more instance breaks this: . Some process can then finish and release its instances.

More GATE PYQ on Deadlock

All GATE CS Operating Systems PYQ →

Attempt GATE CS 2026 Set 1 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →