Skip to content

GATE CS Deadlock questions

Practise Deadlock questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.

Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.

20 on this page
Official PYQ2026Operating SystemDeadlockMSQ · 1 mark
With respect to deadlocks in an operating system, which of the following statements is/are FALSE?
Official PYQ2026Operating SystemDeadlockNAT · 1 mark
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 …
Official PYQ2025Operating SystemDeadlockMSQ · 2 marks
P={P1,P2,P3,P4}P=\left\{P_{1}, P_{2}, P_{3}, P_{4}\right\} consists of all active processes in an operating system. R={R1,R2,R3,R4}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 allocation graph has the following assignment and claim edges. Assignment edges: …
Official PYQ2022Operating SystemDeadlockMSQ · 1 mark
Which of the following statements is/are TRUE\text{TRUE} with respect to deadlocks?
Official PYQ2021Operating SystemDeadlockMSQ · 2 marks
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 lock (L)(L). The following scheme is used to own a resource instance: function OWNRESOURCE(Resource R) Acquire lock L // a global lock if R …
Official PYQ2019Operating SystemDeadlockMCQ · 2 marks
Consider the following snapshot of a system running nn concurrent processes. Process ii is holding XiX_i instances of a resource RR, 1≤i≤n1 \leq i \leq n. Assume that all instances of RR are currently in use. Further, for all ii, process ii can place a request for at most YiY_i additional instances of RR while holding the XiX_i …
Official PYQ2018Operating SystemDeadlockMCQ · 2 marks
In a system, there are three types of resources: E,FE, F and GG. Four processes P0P_0, P1P_1, P2P_2 and P3P_3 execute concurrently. At the outset, the processes have declared their maximum resource requirements using a matrix named Max as given below. For example, Max[P2,FP_2, F] is the maximum number of instances of FF that P2P_2 would …
Official PYQ2018Operating SystemDeadlockNAT · 1 mark
Consider a system with 33 processes that share 44 instances of the same resource type. Each process can request a maximum of KK instances. Resources can be requested and releases only one at a time. The largest value of KK that will always avoid deadlock is ___
Official PYQ2017Operating SystemDeadlockMCQ · 1 mark
A system shares 99 tape drives. The current allocation and maximum requirement of tape drives for that processes are shown below: …
Official PYQ2015Operating SystemDeadlockMCQ · 1 mark
A system has 66 identical resources and NN processes competing for them. Each process can request at most 22 resources. Which one of the following values of NN could lead to a deadlock?
Official PYQ2015Operating SystemDeadlockMCQ · 1 mark
Consider the following policies for preventing deadlock in a system with mutually exclusive resources. Process should acquire all their resources at the beginning of execution. If any resource is not available, all resources acquired so far are released. The resources are numbered uniquely, and processes are allowed to request for resources only in …
Official PYQ2014Operating SystemDeadlockMCQ · 1 mark
An operating system uses the Banker's algorithm for deadlock avoidance when managing the allocation of three resource types X,Y,X, Y, and ZZ to three processes P0,P1,P0, P1, and P2.P2. The table given below presents the current system state. Here, the Allocation matrix shows the current number of resources of each type allocated to each process and the Max …
Official PYQ2014Operating SystemDeadlockNAT · 1 mark
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 _________.
Official PYQ2013Operating SystemDeadlockMCQ · 1 mark
Three concurrent processes XX, YY, and ZZ execute three different code segments that access and update certain shared variables. Process XX executes the PP operation (i.e., waitwait) on semaphores aa, b,b, and cc; process YY executes the PP operation on semaphores bb, c,c, and dd; process ZZ executes the PP …
Official PYQ2010Operating SystemDeadlockMCQ · 1 mark
A system has nn resources R0,…,Rn−1R_0, \dots,R_{n-1}, and kk processes P0,…,Pk−1P_0, \dots, P_{k-1}. The implementation of the resource request logic of each process PiP_i is as follows: if(i%2==0){\text{if} (i\%2==0) \{ if(i<n) request Ri;\quad\text{if} (i<n) \text{ request } R_i; if(i+2<n) request Ri+2;}\quad\text{if} (i+2 < n) \text{ request } R_{i+2}; \} else{\text{else} \{ …
Official PYQ2009Operating SystemDeadlockMCQ · 1 mark
Consider a system with 44 types of resources R1R1 (33 units), R2R2 (22 units), R3R3 (33 units), R4R4 (22 units). A non-preemptive resource allocation policy is used. At any given instance, a request is not entertained if it cannot be completely satisfied. Three processes P1P1, P2P2, P3P3 request the resources as follows if …
Official PYQ2008Operating SystemDeadlockMCQ · 1 mark
Which of the following is NOT true of deadlock prevention and deadlock avoidance schemes?
Official PYQ2007Operating SystemDeadlockMCQ · 1 mark
A single processor system has three resource types X,YX, Y and ZZ, which are shared by three processes. There are 55 units of each resource type. Consider the following scenario, where the column alloc denotes the number of units of each resource type allocated to each process, and the column request denotes the number of units of each resource type …
Official PYQ2006Operating SystemDeadlockMCQ · 1 mark
Consider the following snapshot of a system running nn processes. Process ii is holding xix_i instances of a resource RR, 1≤i≤n1\leq i\leq n . Currently, all instances of RR are occupied. Further, for all ii, process ii has placed a request for an additional yiy_i instances while holding the xix_i instances it already has. There are …
Official PYQ2005Operating SystemDeadlockMCQ · 1 mark
Suppose nn processes, P1,…PnP_1, \dots P_n share mm identical resource units, which can be reserved and released one at a time. The maximum resource requirement of process PiP_i is sis_i, where si>0s_i > 0. Which one of the following is a sufficient condition for ensuring that deadlock does not occur?