Deadlock formulas
Deadlock: conditions, prevention, avoidance and detection. 4 formulas for GATE CS Operating Systems, each with when to use it. Each is explained in the topic notes.
IAE Academy: Deadlock: conditions, prevention, avoidance and detection formulas (GATE CS)
All 4 Deadlock formulas
NEED MATRIX
Remaining claim of process for resource type .
AVAILABLE VECTOR
Free instances of ; Total is the number of instances of in the system.
MINIMUM RESOURCES THAT GUARANTEE NO DEADLOCK
Single resource type, processes, each needing at most units (and possibly asking for all ), units requested one at a time and held while waiting. Deadlock is impossible iff ; with a deadlock can occur.
LARGEST NUMBER OF PROCESSES WITH NO POSSIBLE DEADLOCK
Same assumptions, . Follows from .
Where this was asked: 2018 (2), 2022 (1), 2025 (1), 2026 (2). See the 6 previous-year questions on Deadlock. This shows what was asked, not what will be asked.