Operating Systems · Question 16 · Easy

The Banker's algorithm is used for which deadlock-handling strategy?

  1. Deadlock prevention
  2. Deadlock avoidance
  3. Deadlock detection and recovery
  4. Ignoring deadlocks (ostrich approach)
Answer and explanation

Answer: B. Deadlock avoidance

Explanation: The Banker's algorithm grants a request only if the resulting state is still safe, so it avoids deadlock dynamically. Prevention instead removes one of the four necessary conditions outright.

Previous: Two processes enforce mutual exclusion using only a shared variable turn… · Next: Which of the following is NOT shared between threads of the same process?

Practise operating systems

Try a fresh set of operating systems questions with an explanation after every answer, free and without signing up: Operating Systems practice. Or sit a full placement mock test.

More operating systems questions

More technical & programming practice

Computer Networks · Software Engineering · Cloud & DevOps · GenAI Basics · Pseudo-code · C Programming · Java · Python

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge