Critical Section

The Critical Section — CS of a program is a section of code in which a program is manipulating some shared memory between proceses. The problem with this process lies in synchronising these two processes to ensure the data they use is valid and consistent.

In order to ensure this, the CS of a process must be mutually exclusive, i.e. when one program is in its' CS, no other program can be in its' CS.



Subsections