The Banker’s algorithm is used for
-
deadlock avoidance
-
deadlock detection
-
Both 1 and 2
-
resource allocation
-
None of these
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.