OS · Deadlock interview questions

45 real OS · Deadlock questions from the Computer Science Fundamentals bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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 scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice OS · Deadlock free