Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (1)
Banker problem
no vote
As for the bank, the number of customers applying for loans is limited. When applying for loans for the first time, each customer should state the maximum amount of funds needed to complete the project. When all the loan requirements are met, the customer should repay them in time. Bankers should try their best to meet the needs of customers when the number of loans applied for by customers does not exceed the maximum value they have. In such a description, the banker is like an operating system, capital is a resource, and the customer is equivalent to the process of applying for resources. Banker algorithm is one of the most representative algorithms to avoid deadlock. In the deadlock avoidance method, the process is allowed to apply for resources dynamically. However, before resource allocation, the system should first calculate the security of the allocated resources. If the allocation does not cause the system to enter an unsafe state, the system will allocate resources, otherwise it will wait. In order to realize the banker algorithm, the system must set up several parameters
wxy77
2017-12-12
1
1
No more~