Banker problem
2017-12-12
1 0 0
no vote
Other
Earn points
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
Related Source Codes
Android AOA Android Open Accessory Development Usi
0
0
no vote
Golang AOA Android Open Accessory HID Control
0
0
no vote
PClite
0
0
no vote
GMSK Linear Receiver
0
0
no vote
The golden version of AFT that has been passed dow
0
0
no vote
No comment