Banker's Algorithm

Theory



Banker’s Algorithm is a deadlock detection algorithm. It is named so because it is used to check whether a loan can be offered to a particular person. When a new process is created in a upcoming processes, requests for their resources, counting them, and delays. Based on these criteria, the operating system decides which process sequence should be executed or waited so that no deadlock occurs in a system. Therefore, it is also known as deadlock avoidance algorithm.

Characteristics of Banker's Algorithm:

Disadvantages of banker’s algorithm:

Working:

Algorithm:

Checkout the simulation of Banker's Algorithm