In a system employing the Banker’s algorithm for deadlock avoidance, which of…
2025
In a system employing the Banker’s algorithm for deadlock avoidance, which of the following scenarios would cause the system to be in unsafe state?
- A.
The system has enough resources to satisfy the maximum possible demands of all process simultaneously
- B.
A process requests resources that, if allocated, leave the system without enough resources to satisfy the maximum possible demands of other resources
- C.
All processes are currently resources less than their maximum needs
- D.
The system has more resources than the total maximum needs of all processes combined
Attempted by 30 students.
Show answer & explanation
Correct answer: B
In the Banker’s algorithm, an unsafe state occurs when resource allocation prevents all processes from completing. This happens if granting a request leaves insufficient resources to satisfy the maximum needs of remaining processes, potentially leading to deadlock.