Operating system--concurrent process deadlock

Source: Internet
Author: User

Tag: The ISS target resource executes the ENTER condition HTTP causes the process

Deadlock Concept:

Refers to two or more than two processes in the course of execution, because of competing resources or due to the communication between each other caused by a blocking phenomenon, if there is no external force, they will not be able to proceed. At this point the system is in a deadlock state or the system generates a deadlock, and these processes, which are always waiting on each other, are called deadlock processes.

deadlock-generated conditions:

(The fourth condition is the most critical)

ways to resolve deadlocks:  

Deadlock Prevention : A Process request resource must follow certain pre-defined constraints to destroy one or more of the four necessary conditions that produce a deadlock to prevent deadlocks from occurring.

Avoid deadlocks : When a process requests a resource, it needs to be judged first (predicted), and if the resource request satisfies the deadlock, the resource request for the deadlock will be rejected, causing the process of the request resource process to block waiting until its required resource is allocated bits.

Learn about learning banker algorithms (http://blog.csdn.net/dk_zhe/article/details/7239376)

The question of the Philosopher's Meal (http://book.51cto.com/art/200907/138168.htm)

Detect and Unlock deadlocks : When a process requests a resource, there is no restriction, which allows a deadlock to occur. However, the system is required to periodically or irregularly detect whether a deadlock occurs. When a deadlock is detected, the deadlock is being sought to be unlocked.

Operating system--concurrent process deadlock

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.