With respect to deadlocks in an operating system, which of the following statements is/are FALSE?
GATE CSE 2026Operating System › Deadlocks & Resource AllocationVerified
GATE CSE 2026 PYQ: With respect to deadlocks in an operating system, which of the following statements is/are FALSE?
- ABanker's algorithm is used to prevent deadlocksCorrect answer
- BDeadlock formation can be prevented by ensuring that the hold and wait condition is not allowed
- CAn assignment edge in a resource allocation graph is marked from a process to a resourceCorrect answer
- DA safe state guarantees that all processes can finish without formation of a deadlock
Answer
(A, C) Banker's algorithm is used to prevent deadlocks; An assignment edge in a resource allocation graph is marked from a process to a resource
Approach
Recall the distinction between deadlock prevention (breaking one of the four necessary conditions) and deadlock avoidance (Banker's algorithm checks for a safe state). Also recall the edge conventions in a Resource Allocation Graph (RAG): a request edge goes from process to resource, while an assignment edge goes from resource to process. Finally, recall that a safe state means there exists a safe sequence in which every process can complete using currently available resources plus resources released by earlier processes in the sequence.
The false statements are A and C. Banker's algorithm is for avoidance, not prevention; and an assignment edge is resource-to-process, not process-to-resource. The remaining statements B and D are true.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.