What is the purpose of banker’s algorithm?

2017

What is the purpose of banker’s algorithm?

  1. A.

    To detect deadlock

  2. B.

    To prevent deadlock

  3. C.

    To solve deadlock

  4. D.

    None of these

Attempted by 93 students.

Show answer & explanation

Correct answer: D

The correct option is D (None of these). The actual purpose of the Banker's algorithm is deadlock avoidance. It dynamically tracks resource allocations to ensure the system remains in a "safe state," preventing it from entering an unsafe state that might lead to a deadlock.

Explore the full course: Btsc Lab Assistant