GATE CSE 2019 Q49: Condition guaranteeing only processes p and q can complete
- Operating System
- 2 marks
- MCQ
- −2/3 if wrong
Syllabus topic: Deadlock
Question
Consider the following snapshot of a system running concurrent processes. Process is holding instances of a resource R, . Assume that all instances of R are currently in use. Further, for all , process can place a request for at most additional instances of R while holding the instances it already has. Of the processes, there are exactly two processes and such that . Which one of the following conditions guarantees that no other process apart from and can complete execution?
Try it: multiple choice: exactly one correct option
Show answer and explanation
Answer: A (official GATE 2019 final answer key)
Concept used: Since all instances are in use, only p and q (needing nothing more) can finish; the instances they release are the only free resources, so another process can finish only if its remaining need fits in .
First step: Let p and q finish and release instances; ask what must hold so that even the process with the smallest further need still cannot be satisfied.
Full step-by-step solution
Loading…
Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.
More questions on Deadlock
Every PYQ on this topic →Share this question
Source: official GATE 2019 CS question paper and final answer key, organised by IIT Madras. Question paper · Answer key
More Operating System PYQs
- 2026 Session 1 · Q29False statements about deadlocks
- 2026 Session 1 · Q35Minimum resource instances for deadlock freedom (5 processes, max 2)
- 2026 Session 1 · Q59Disk transfer time for random sectors on tracks 5, 12, 7
- 2026 Session 1 · Q63Number of printf calls with fork, continue and break
- 2026 Session 1 · Q64Average FCFS waiting time for alternating A and C processes
- 2026 Session 2 · Q23CPU scheduling algorithm that cannot be preemptive