11 Qs · since 2014 · 18 marks · 0.7 marks/paperStandard yield
Across GATE CS exams from 2014 to 2026, the Deadlock topic is tested through three main angles: mathematical resource bounds using the pigeonhole principle, algorithmic simulation… Guide
function OWNRESOURCE(Resource R)
Acquire lock L // a global lock
if R is available then
Acquire R
Release lock L
else
if R is owned by another process P then
Terminate P, after releasing all resources owned by P
Acquire R
Restart P
Release lock L
end if
end if
end function…Topic guide
Across GATE CS exams from 2014 to 2026, the Deadlock topic is tested through three main angles: mathematical resource bounds using the pigeonhole principle, algorithmic simulation of Banker's safety and request algorithms, and rigorous conceptual analysis of Coffman conditions, prevention schemes, and Resource Allocation Graphs (RAG). The topic frequently yields both 1-mark and 2-mark questions, with a significant recent pivot toward multi-select questions (MSQ) and code/graph analysis.
Minimum Resources or Maximum Demand for Deadlock Freedom
common · NAT · 1 marks · 2026, 2018, 2014
Given processes each requiring a maximum of (or ) instances of a single resource type, calculate the minimum total resources or the maximum demand that guarantees the system is deadlock-free using the worst-case allocation principle .
Banker's Algorithm State and Request Evaluation
common · MCQ · 2 marks · 2017, 2014
Given Allocation and Max matrices along with Available resources, evaluate whether the current state is safe, or simulate dynamic resource request vectors to determine if granting them leaves the system in a safe state with a valid execution sequence.
Resource Allocation Graph (RAG) and Cycle Analysis
occasional · MSQ · 2 marks · 2026, 2025, 2022
Given a formal set of assignment edges () and request/claim edges () with single or multiple instances, detect cycles, evaluate deadlock presence, and determine which process terminations resolve all deadlocked cycles.
Deadlock Prevention, Coffman Conditions, and Algorithmic Schemes
common · MSQ · 2 marks · 2026, 2022, 2021, 2017
Evaluating formal statements or pseudocode implementations against the four Coffman conditions (Mutual Exclusion, Hold and Wait, No Preemption, Circular Wait), distinguishing avoidance from prevention, and identifying side-effects like livelock and starvation.
Deadlock-Free Resource Condition (Pigeonhole / Worst-Case Allocation)
Used to find the minimum resources or maximum demand among processes to guarantee that deadlock can never occur under single-resource type systems.
Identical Process Demand Deadlock-Free Bound
Used when all processes have an identical maximum resource claim .
Banker's Need Matrix Formula
Used as the first step in Banker's safety and resource-request algorithms to check if and .
Shift from standard single-choice tabular Banker's algorithm questions to multi-select conceptual questions (MSQs) testing subtle definitional boundaries and pseudocode analysis.
2026, 2025, 2022, 2021
Introduction of pseudocode implementations involving concurrency primitives (locks, preempt-and-restart schemes) to evaluate livelock, starvation, and deadlock simultaneously.
2021, 2017
Consistent presence of single-resource worst-case capacity numerical questions (NAT) as reliable 1-mark or 2-mark scoring items.
2026, 2018, 2014
Easy questions typically involve direct evaluation of the worst-case pigeonhole formula () or direct standard definitions of Coffman conditions. Medium questions require multi-step Banker's algorithm calculations with tentative state updates, tracing multiple simultaneous cycles in single-instance RAGs to test process abortion subsets, or analyzing pseudocode with locks for livelock and preemption properties.