Bankers algorithm is for
2005
Bankers algorithm is for
- A.
Dead lock Prevention
- B.
Dead lock Avoidance
- C.
Dead lock Detection
- D.
Dead lock creation
Attempted by 248 students.
Show answer & explanation
Correct answer: B
The Banker's Algorithm is a resource allocation and deadlock avoidance algorithm used in operating systems. It works by ensuring that the system never enters an unsafe state, which could lead to a deadlock. Before granting a resource request, the algorithm simulates the allocation and checks if the resulting state is safe. If all processes can complete their execution in some order, the system remains safe, and the request is granted. This proactive approach distinguishes it from deadlock prevention (which restricts resource usage) and detection (which identifies deadlocks after they occur). Therefore, the correct answer is Option B: Deadlock Avoidance. Options A and C are incorrect because prevention involves designing the system to never allow deadlock conditions, while detection requires identifying deadlocks post-occurrence. Option D is incorrect as the algorithm aims to prevent, not create, deadlocks.
A video solution is available for this question — log in and enroll to watch it.