Deadlock (deadlock)

Source: Internet
Author: User

Deadlock: a deadlock occurs when two or more processes compete for resources during execution. If there is no external force, they will not be able to proceed. It is said that the system is in a deadlock state or the system has a deadlock. These processes that are always waiting for each other are called deadlock processes.

Not complete to be continued ,,,

For example, the deadlock condition: the owner of resource R1 needs P2 resources to complete the work; the owner of P2 resources needs R2; the owner of R2 needs the owner of P1 and P1, waiting for R1.

Deadlock Prevention: if there is only one process in the system, of course, no deadlock will occur. If each process requires only one system resource, no deadlock will occur. However, this is only an ideal state. In reality, it is inevitable.

  • Preemption prohibited: No Preemption
  • Hold and wait: Hold and wait
  • Mutual Exclusion: Mutual Exclusion
  • Loop wait: Bounded waiting

Deadlock (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.