Home>Article> What is a well-known algorithm to avoid deadlock?

What is a well-known algorithm to avoid deadlock?

王林
王林 Original
2020-05-09 13:37:36 16517browse

What is a well-known algorithm to avoid deadlock?

The famous algorithm to avoid deadlock is the banker's algorithm.

Four conditions:

1. When applying for bank loans in batches, the total amount applied for cannot exceed the amount initially applied for;

2. When applying for a loan It cannot exceed the bank's existing funds;

3. When the bank's funds cannot meet the customer's loan needs, payment can be postponed, but the customer will definitely be able to get the loan within the time required;

4. After receiving the loan, the customer must repay it within the specified time.

The above is the detailed content of What is a well-known algorithm to avoid deadlock?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn