Home › GATE CS › PYQs › Operating System › Deadlock

Deadlock — GATE CS Previous Year Questions

Practise GATE CS previous year questions on Deadlock in Operating Systems (OS). Filter by year, marks and question type.

Public question previews

  • With respect to deadlocks in an operating system, which of the following statements is/are FALSE? (2026 · 1 mark · MSQ)
  • Consider a system consisting of k instances of a resource R, being shared by 5 processes. Assume that each process requires a maximum of two instances of resource R and a process can request or release only one instance at a time. Further, a process can request the second instance of the resource only after acquiring the first instance. The minimum value of k for the system to be deadlock-free is ________. (answer in integer) (2026 · 1 mark · NAT)
  • P = {P1, P2, P3, P4} consists of all active processes in an operating system. R = {R1, R2, R3, R4} consists of single instances of distinct types of resources in the system. The resource allocation graph has the following assignment and claim edges. Assignment edges: R1 -> P1, R2 -> P2, R3 -> P3, R4 -> P4. Claim edges: P1 -> R2, P2 -> R3, P3 -> R1, P2 -> R4, P4 -> R2. Which of the following statement(s) is/are CORRECT? (2025 · 2 marks · MSQ)