- GATE CS
- 2026–27 pattern practice
- Operating Systems
- Deadlocks
- Medium
In a resource-allocation graph where every resource type has a single instance, a cycle in the graph means that
Process Management
Pick an option to check your answer.
Answer: C. Solution
With one instance per resource, each request edge in a cycle points to a resource held by the next process in the cycle, and that process is itself waiting. No process in the cycle can finish and free anything, so the cycle is both necessary and sufficient: a deadlock exists.
Why not the others
- a deadlock may or may not exist is the rule when resource types have several instances, not single instances.
- the system is in a safe state is the opposite; a cycle with single instances means the processes involved can never proceed.
- only starvation is possible confuses deadlock with starvation; in a cycle every process waits on another, which is deadlock.