CS FundamentalsEasyWipro · Cognizant technical pattern

The Banker’s algorithm is used for which strategy of handling deadlocks?

  1. A. Deadlock avoidance
  2. B. Deadlock prevention
  3. C. Deadlock detection and recovery
  4. D. Ignoring deadlocks (ostrich approach)

Correct answer: A. Deadlock avoidance

The Banker’s algorithm grants a request only if the resulting state is safe, i.e. it avoids unsafe states using advance knowledge of maximum needs. Prevention instead breaks one of the four Coffman conditions by design.

More Operating Systems questions

Exams that ask this topic