Multiple choice

The Banker’s algorithm is used for

  1. deadlock avoidance

  2. deadlock detection

  3. Both 1 and 2

  4. resource allocation

  5. None of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The Banker's algorithm is a deadlock avoidance algorithm created by Edsger Dijkstra that tests for safety of all assets and after that, makes an "s-state" check to test for possible deadlock conditions.