|
|
|
|
|
|
|
|
|
|
|
ä |
When
a process executes code that
|
|
|
|
manipulates
shared data (or resource), we
|
|
|
|
say
that the process is in it’s critical section
|
|
|
(CS)
(for that shared data)
|
|
|
ä |
The
execution of critical sections must be
|
|
|
|
mutually exclusive: at any time, only one
|
|
|
|
process
is allowed to execute in its critical
|
|
|
|
section
(even with multiple CPUs)
|
|
|
ä |
Then
each process must request the
|
|
|
|
permission
to enter it’s critical section
|
|
|
|
(CS)
|
|