Abstract


  • Situations where multiple Thread access the same data at the same time and cause conflicts

Critical Section


  • A critical section is a segment of a program’s code where shared resources, such as variables, files, or devices, are accessed and modified, which may lead to race conditions

Important

At any point of time, at most one Process (进程) can be in the critical section.

Or race conditions can occur in critical sections due to the concurrent execution of threads that access shared resources without proper synchronisation mechanisms.

References