Deadlock: GATE CS Previous Year Questions

Deadlock · Operating System

23 questions · asked in 17 of 27 years (2000–2026)

MCQ 17 · MSQ 3 · NAT 31-mark 11 · 2-mark 12

2000Questions per year2026

Questions 1–5 of 23

Q1GATE 2026 (Session 1)1 markMSQ
With respect to deadlocks in an operating system, which of the following statements is/are FALSE?

One or more options are correct.

Q2GATE 2026 (Session 1)1 markNAT
Consider a system consisting of kk instances of a resource RR, being shared by 55 processes. Assume that each process requires a maximum of two instances of resource RR 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 kk for the system to be deadlock-free is ________. (answer in integer)

Q3GATE 2025 (Session 2)2 marksMSQ
P={P1,P2,P3,P4}P = \{P_1, P_2, P_3, P_4\} consists of all active processes in an operating system. R={R1,R2,R3,R4}R = \{R_1, R_2, R_3, R_4\} 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\text{Assignment edges: } R_1 \to P_1, R_2 \to P_2, R_3 \to P_3, R_4 \to P_4 (the assignment edge R1→P1R_1 \to P_1 means resource R1R_1 is assigned to process P1P_1, and so on for others)

Claim edges: P1→R2,P2→R3,P3→R1,P2→R4,P4→R2\text{Claim edges: } P_1 \to R_2, P_2 \to R_3, P_3 \to R_1, P_2 \to R_4, P_4 \to R_2 (the claim edge P1→R2P_1 \to R_2 means process P1P_1 is waiting for resource R2R_2, and so on for others)

Which of the following statement(s) is/are CORRECT?

One or more options are correct.

Q4GATE 20221 markMSQ
Which of the following statements is/are TRUE with respect to deadlocks?

One or more options are correct.

Q5GATE 20192 marksMCQ−0.67 if wrong
Consider the following snapshot of a system running n concurrent processes. Process ii is holding XiX_i instances of a resource R, 1≤i≤n1\leq i\leq n. Assume that all instances of R are currently in use. Further, for all ii, process ii can place a request for at most YiY_i additional instances of R while holding the XiX_i instances it already has. Of the n processes, there are exactly two processes p and q such that Yp=Yq=0Y_p=Y_q=0. Which one of the following conditions guarantees that no other process apart from p and q can complete execution?

Keep practising

Topics in Operating System

All CS topics ›