Skip to content
Early access — you're among the first to try PYQLabs. Share feedback

Deadlocks

GATE CSE & IT · 22 questions across 18 years (1992-2026) · 45% recurrence rate

Recurrence sparkline

19922026
199220092026

Difficulty mix

easy 36%
med 59%
hard 5%

Question types

MCQ14
MSQ4
NAT3
STMT1

All 22 questions on Deadlocks

2026 PYQ

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 ins...

Easy
2026 PYQ

With respect to deadlocks in an operating system, which of the following statements is/are FALSE?

Easy
2025 PYQ

$P=\left\{P_1, P_2, P_3, P_4\right\}$ consists of all active processes in an operating system. $R=\left\{R_1, R_2, R_3, R_4\right\}$ consists of single instances of distinct types of resources in the system. The resource...

Med
2022 PYQ

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

Med
2021 PYQ

Consider a computer system with multiple shared resource types, with one instance per resource type. Each instance can be owned by only one process at a time. Owning and freeing of resources are done by holding a global...

Med
2019 PYQ

Consider the following snapshot of a system running $n$ concurrent processes. Process $i$ is holding $X_i$ instances of a resource $\mathrm{R}, 1 \leq i \leq n$. Assume that all instances of R are currently in use. Furth...

Med
2018 PYQ

Consider a system with $$3$$ processes that share $$4$$ instances of the same resource type. Each process can request a maximum of $$K$$ instances. Resource instances can be requested and released only one at a time. The...

Easy
2018 PYQ

In a system, there are three types of resources: $$E, F$$ and $$G.$$ Four processes $${P_0},$$ $${P_1},$$ $${P_2}$$ and $${P_3}$$ execute concurrently. At the outset, the processes have declared their maximum resource re...

Med
2015 PYQ

A system has 6 identical resources and N processes competing for them. Each process can request atmost 2 resources. Which one of the following values of N could lead to a deadlock?

Easy
2015 PYQ

Consider the following policies for preventing deadlock in a system with mutually exclusive resources. $$\,\,\,\,\,\,\,{\rm I}.$$ $$\,\,\,\,\,\,$$ Processes should acquire all their resources at the beginning of executio...

Med
2014 PYQ

A system contains three programs and each requires three tape units for its operation. The Minimum number of tape units which the system must have such that deadlocks never arise is _________.

Easy
2013 PYQ

Three concurrent processes X, Y, and Z execute three different code segments that access and update certain shared variables. Process X executes the P operation (i.e., wait) on semaphores a, b and c; process Y executes t...

Med
2010 PYQ

A system has n resources R 0 ,.....,R n-1 , and k processes P 0 ,.....,P k-1 . The implementation of the resource request logic of each process P i , is as follows: if (i%2==0) { if (i < n) request R i ; if (i+2 < n) req...

Hard
2008 PYQ

Which of the following is NOT true of deadlock prevention and deadlock avoidance schemes?

Med
2006 PYQ

Consider the following snapshot of a system running n processes. Process i is holding x i instances of a resource R, for $$1 \le i \le n$$. Currently, all instances of R are occupied. Further, for all i, process i has pl...

Med
2005 PYQ

Suppose n processes, P 1 ,......., P n share m identical resource units, which can be reserved and released one at a time. The maximum resource requirement of process P i is S i , where S i > 0. Which one of the followin...

Med
2000 PYQ

Let m[0] ..m[4] be mutexes (binary semaphores) and P[0] ...P[4] be processes. Suppose each process P[i] executes the following: wait (m[i]); wait (m(m[(i+1) mod 4]))0; ....... release (m[i]); release (m[(i+1) mod 4]); Th...

Med
2000 PYQ

Which of the following is NOT a valid deadlock prevention scheme?

Med
1998 PYQ

A computer has six tape drives, with n processes competing for them. Each process may need two drives. What is the maximum value of n for the system to be deadlock free?

Easy
1997 PYQ

An operating system contains 3 user processes each requiring 2 units of resource R.The minimum number of units of R such that no deadlocks will ever arise is

Easy
1993 PYQ

Consider a system having m resources of the same type. These resources are shared by 3 processes A, B and C, which have peak demands of 3, 4 and 6 respectively. For what value of m deadlock will not occur?

Med
1992 PYQ

A computer system has 6 tape drives, with n process completing for them. Each process may need 3 tape drives. The maximum value of n for which the system is guaranteed to be deadlock free is:

Easy