OS · Deadlock interview questions

45 OS · Deadlock questions from the Computer Science Fundamentals bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Sign up free to see every answer with its explanation and ask the AI tutor.

Practice OS · Deadlock free

1. What is Deadlock?

Junior
  1. A.a state where each process in a set waits forever for a resource held by another in the set
  2. B.a state in which some ordering of processes lets each finish without causing deadlock
  3. C.a directed graph of processes and resources whose cycles can indicate a deadlock
  4. D.a non-preemptive prevention scheme where an older process waits but a younger requester is killed

Answer + AI explanation with a free account

2. Which term means: "a state where each process in a set waits forever for a resource held by another in the set"?

Junior
  1. A.Wait-die scheme
  2. B.Hold and wait condition
  3. C.Deadlock avoidance
  4. D.Deadlock

Answer + AI explanation with a free account

3. Which statement is correct?

Junior
  1. A.Deadlock — the Coffman condition that a process holds resources while waiting to acquire additional ones
  2. B.Deadlock — a state where each process in a set waits forever for a resource held by another in the set
  3. C.Deadlock — a state where processes keep changing state in response to each other but make no real progress
  4. D.Deadlock — a directed graph of processes and resources whose cycles can indicate a deadlock

Answer + AI explanation with a free account

4. What is Mutual exclusion condition?

Junior
  1. A.the Coffman condition that at least one resource must be held in a non-shareable mode
  2. B.resolving an existing deadlock by aborting processes or preempting their resources
  3. C.a non-preemptive prevention scheme where an older process waits but a younger requester is killed
  4. D.a preemptive prevention scheme where an older process preempts a younger one holding a resource

Answer + AI explanation with a free account

5. Which term means: "the Coffman condition that at least one resource must be held in a non-shareable mode"?

Junior
  1. A.No preemption condition
  2. B.Livelock
  3. C.Deadlock
  4. D.Mutual exclusion condition

Answer + AI explanation with a free account

6. Which statement is correct?

Junior
  1. A.Mutual exclusion condition — using advance knowledge of resource needs to keep the system in a safe state at all times
  2. B.Mutual exclusion condition — the Coffman condition that at least one resource must be held in a non-shareable mode
  3. C.Mutual exclusion condition — a state where processes keep changing state in response to each other but make no real progress
  4. D.Mutual exclusion condition — a state in which some ordering of processes lets each finish without causing deadlock

Answer + AI explanation with a free account

7. What is Hold and wait condition?

Junior
  1. A.the Coffman condition that a resource can be released only voluntarily by the process holding it
  2. B.a state in which some ordering of processes lets each finish without causing deadlock
  3. C.a non-preemptive prevention scheme where an older process waits but a younger requester is killed
  4. D.the Coffman condition that a process holds resources while waiting to acquire additional ones

Answer + AI explanation with a free account

8. Which term means: "the Coffman condition that a process holds resources while waiting to acquire additional ones"?

Junior
  1. A.Deadlock prevention
  2. B.Deadlock detection
  3. C.Deadlock
  4. D.Hold and wait condition

Answer + AI explanation with a free account

9. Which statement is correct?

Junior
  1. A.Hold and wait condition — the Coffman condition that a closed chain of processes each waits for a resource the next one holds
  2. B.Hold and wait condition — resolving an existing deadlock by aborting processes or preempting their resources
  3. C.Hold and wait condition — using advance knowledge of resource needs to keep the system in a safe state at all times
  4. D.Hold and wait condition — the Coffman condition that a process holds resources while waiting to acquire additional ones

Answer + AI explanation with a free account

10. What is No preemption condition?

Junior
  1. A.a preemptive prevention scheme where an older process preempts a younger one holding a resource
  2. B.a state where each process in a set waits forever for a resource held by another in the set
  3. C.the Coffman condition that a resource can be released only voluntarily by the process holding it
  4. D.resolving an existing deadlock by aborting processes or preempting their resources

Answer + AI explanation with a free account

11. Which term means: "the Coffman condition that a resource can be released only voluntarily by the process holding it"?

Junior
  1. A.Mutual exclusion condition
  2. B.Deadlock prevention
  3. C.Safe state
  4. D.No preemption condition

Answer + AI explanation with a free account

12. Which statement is correct?

Junior
  1. A.No preemption condition — a directed graph of processes and resources whose cycles can indicate a deadlock
  2. B.No preemption condition — a preemptive prevention scheme where an older process preempts a younger one holding a resource
  3. C.No preemption condition — the Coffman condition that a closed chain of processes each waits for a resource the next one holds
  4. D.No preemption condition — the Coffman condition that a resource can be released only voluntarily by the process holding it

Answer + AI explanation with a free account

13. What is Circular wait condition?

Junior
  1. A.a state where processes keep changing state in response to each other but make no real progress
  2. B.the Coffman condition that a resource can be released only voluntarily by the process holding it
  3. C.the Coffman condition that a closed chain of processes each waits for a resource the next one holds
  4. D.letting deadlocks occur, then finding them with an algorithm and recovering afterward

Answer + AI explanation with a free account

14. Which term means: "the Coffman condition that a closed chain of processes each waits for a resource the next one holds"?

Junior
  1. A.Deadlock
  2. B.Deadlock avoidance
  3. C.Circular wait condition
  4. D.Safe state

Answer + AI explanation with a free account

15. Which statement is correct?

Junior
  1. A.Circular wait condition — the Coffman condition that a closed chain of processes each waits for a resource the next one holds
  2. B.Circular wait condition — a state where each process in a set waits forever for a resource held by another in the set
  3. C.Circular wait condition — resolving an existing deadlock by aborting processes or preempting their resources
  4. D.Circular wait condition — the Coffman condition that a resource can be released only voluntarily by the process holding it

Answer + AI explanation with a free account

16. What is Resource allocation graph?

Mid
  1. A.the Coffman condition that a process holds resources while waiting to acquire additional ones
  2. B.letting deadlocks occur, then finding them with an algorithm and recovering afterward
  3. C.a state where processes keep changing state in response to each other but make no real progress
  4. D.a directed graph of processes and resources whose cycles can indicate a deadlock

Answer + AI explanation with a free account

17. Which term means: "a directed graph of processes and resources whose cycles can indicate a deadlock"?

Mid
  1. A.Deadlock
  2. B.Banker's algorithm
  3. C.Resource allocation graph
  4. D.Deadlock recovery

Answer + AI explanation with a free account

18. Which statement is correct?

Mid
  1. A.Resource allocation graph — a preemptive prevention scheme where an older process preempts a younger one holding a resource
  2. B.Resource allocation graph — using advance knowledge of resource needs to keep the system in a safe state at all times
  3. C.Resource allocation graph — a directed graph of processes and resources whose cycles can indicate a deadlock
  4. D.Resource allocation graph — the Coffman condition that a resource can be released only voluntarily by the process holding it

Answer + AI explanation with a free account

19. What is Deadlock prevention?

Mid
  1. A.ensuring deadlock cannot occur by structurally negating one of the four necessary conditions
  2. B.a state where each process in a set waits forever for a resource held by another in the set
  3. C.a directed graph of processes and resources whose cycles can indicate a deadlock
  4. D.the Coffman condition that a process holds resources while waiting to acquire additional ones

Answer + AI explanation with a free account

20. Which term means: "ensuring deadlock cannot occur by structurally negating one of the four necessary conditions"?

Mid
  1. A.Wound-wait scheme
  2. B.Deadlock prevention
  3. C.Deadlock recovery
  4. D.No preemption condition

Answer + AI explanation with a free account

21. Which statement is correct?

Mid
  1. A.Deadlock prevention — the Coffman condition that a closed chain of processes each waits for a resource the next one holds
  2. B.Deadlock prevention — the Coffman condition that a process holds resources while waiting to acquire additional ones
  3. C.Deadlock prevention — the Coffman condition that at least one resource must be held in a non-shareable mode
  4. D.Deadlock prevention — ensuring deadlock cannot occur by structurally negating one of the four necessary conditions

Answer + AI explanation with a free account

22. What is Deadlock avoidance?

Mid
  1. A.an avoidance algorithm that grants a request only if the resulting state is still safe
  2. B.using advance knowledge of resource needs to keep the system in a safe state at all times
  3. C.letting deadlocks occur, then finding them with an algorithm and recovering afterward
  4. D.a preemptive prevention scheme where an older process preempts a younger one holding a resource

Answer + AI explanation with a free account

23. Which term means: "using advance knowledge of resource needs to keep the system in a safe state at all times"?

Mid
  1. A.Deadlock prevention
  2. B.Deadlock detection
  3. C.Deadlock
  4. D.Deadlock avoidance

Answer + AI explanation with a free account

24. Which statement is correct?

Mid
  1. A.Deadlock avoidance — the Coffman condition that a closed chain of processes each waits for a resource the next one holds
  2. B.Deadlock avoidance — using advance knowledge of resource needs to keep the system in a safe state at all times
  3. C.Deadlock avoidance — a state in which some ordering of processes lets each finish without causing deadlock
  4. D.Deadlock avoidance — a non-preemptive prevention scheme where an older process waits but a younger requester is killed

Answer + AI explanation with a free account

25. What is Deadlock detection?

Mid
  1. A.a preemptive prevention scheme where an older process preempts a younger one holding a resource
  2. B.a state where each process in a set waits forever for a resource held by another in the set
  3. C.letting deadlocks occur, then finding them with an algorithm and recovering afterward
  4. D.the Coffman condition that a process holds resources while waiting to acquire additional ones

Answer + AI explanation with a free account

26. Which term means: "letting deadlocks occur, then finding them with an algorithm and recovering afterward"?

Mid
  1. A.Banker's algorithm
  2. B.Deadlock detection
  3. C.Circular wait condition
  4. D.No preemption condition

Answer + AI explanation with a free account

27. Which statement is correct?

Mid
  1. A.Deadlock detection — a directed graph of processes and resources whose cycles can indicate a deadlock
  2. B.Deadlock detection — the Coffman condition that a process holds resources while waiting to acquire additional ones
  3. C.Deadlock detection — a state where processes keep changing state in response to each other but make no real progress
  4. D.Deadlock detection — letting deadlocks occur, then finding them with an algorithm and recovering afterward

Answer + AI explanation with a free account

28. What is Banker's algorithm?

Senior
  1. A.a directed graph of processes and resources whose cycles can indicate a deadlock
  2. B.a non-preemptive prevention scheme where an older process waits but a younger requester is killed
  3. C.an avoidance algorithm that grants a request only if the resulting state is still safe
  4. D.the Coffman condition that a resource can be released only voluntarily by the process holding it

Answer + AI explanation with a free account

29. Which term means: "an avoidance algorithm that grants a request only if the resulting state is still safe"?

Senior
  1. A.Resource allocation graph
  2. B.Livelock
  3. C.Deadlock recovery
  4. D.Banker's algorithm

Answer + AI explanation with a free account

30. Which statement is correct?

Senior
  1. A.Banker's algorithm — a directed graph of processes and resources whose cycles can indicate a deadlock
  2. B.Banker's algorithm — a state in which some ordering of processes lets each finish without causing deadlock
  3. C.Banker's algorithm — a state where processes keep changing state in response to each other but make no real progress
  4. D.Banker's algorithm — an avoidance algorithm that grants a request only if the resulting state is still safe

Answer + AI explanation with a free account

Showing 30 of 45 OS · Deadlock questions — the full set, with answers, explanations and an AI tutor on every question, is inside.

Free to start

Answers, AI explanations, and a free readiness check

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take the free 2-minute readiness check for a scored result. One full AI mock interview, scored like a real panel, is free when you sign up.

Practice OS · Deadlock free
24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers