What is the critical area? How to resolve the conflict?

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/qq_32067151/article/details/102697673

Access to critical resources of each process in that part of the program known as the critical zone, a time allowed to enter the critical section a process is not allowed to enter into the other processes.

  (1) If there are several processes required to enter the critical region free, once only allowed to enter a process;

  (2) any time in the process of not more than one critical area. As the process has entered its critical section, all other attempts to enter the critical section of the process must wait ;

  (3) the process of entering the critical section to quit within a limited time, so that other processes in time to enter their critical section;

  (4) If the process can not access their critical section, it should give up the CPU , the process to avoid a "busy wait" phenomenon.

Guess you like

Origin blog.csdn.net/qq_32067151/article/details/102697673