Home > Common Problem > body text

What is a well-known algorithm to avoid deadlock?

王林
Release: 2020-05-09 13:37:36
Original
16605 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template