ISRO Scientist/Engineer CSE 2017Operating Systems › Deadlocks
ISRO Scientist/Engineer CSE 2017 PYQ: What problem is solved by Dijikstra banker' algorithm?
What problem is solved by Dijikstra banker' algorithm?
- AMutual exclusion
- BDeadlock recovery
- CDeadlock avoidanceCorrect answer
- DCache coherence
Answer
(C) Deadlock avoidance
Approach
Identify which resource-management problem the Banker's algorithm addresses. The Banker's algorithm is a resource-allocation and deadlock-avoidance scheme: before granting a request, it simulates the allocation and checks whether the resulting state is safe (i.e., some execution order lets all processes finish). If safe, the request is granted; otherwise it is deferred.
Reviewed by ISRO IQ Editorial Team.