# Bankers Algorithm Calculator

### It maintains a set of data using which it decides whether to entertain the request of any process or not.

**Bankers algorithm calculator**.
It was developed by edsger dijkstra.
Slide 25 of 35.
It takes analogy of bank where customer request to withdraw cash.
If a person applies for a loan then the bank first subtracts the loan amount from the total money that bank has and if the remaining amount is greater than s then only the loan is sanctioned.

The banker cant give more cash than what the customer has. The banker algorithm sometimes referred to as the detection algorithm is a resource allocation and deadlock avoidance algorithm developed by edsger dijkstra that tests for safety by simulating the allocation of predetermined maximum possible amounts of all resources and then makes an s state check to test for possible deadlock conditions for all other pending activities before deciding. Suppose there are n number of account holders in a bank and the total sum of their money is s. The bankers algorithm is a resource allocation deadlock avoidance algorithm developed by edsger dijkstra that tests for safety by simulating the allocation of pre determined maximum possible amounts of all resources and then makes a safe state check to test for possible deadlock conditions for all other pending activities before deciding whether allocation should be allowed.

Also read deadlock handling strategies. It is done because if all the account holders comes to withdraw their money. The bankers algorithm is a resource allocation and deadlock avoidance algorithm developed by edsger dijkstra that tests for safety by simulating the allocation of predetermined maximum possible amounts of all resources and then makes a s state check to test for possible deadlock conditions for all other pending activities before deciding whether allocation should be allowed to continue. It is designed to check the safe state whenever a resource is requested.

Bankers algorithm the bankers algorithm is a resource allocation and deadlock avoidance algorithm that tests for safety by simulating the allocation for predetermined maximum possible amounts of all resources then makes an s state check to test for possible activities before deciding whether allocation should be allowed to continue. Bankers algorithm is named so because it is used in banking system to check whether loan can be sanctioned to a person or not. Bankers algorithm is a deadlock avoidance algorithm.