|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
n |
The monitor
ensures mutual exclusion: no
|
|
need to
program this constraint explicitly
|
|
|
n |
Hence, shared
data are protected by
|
|
|
placing them
in the monitor
|
|
|
|
u |
The monitor locks the shared data on process
|
|
|
|
entry
|
|
|
n |
Process
synchronization is done by the
|
|
|
programmer by
using condition
variables
|
|
|
that
represent conditions a process may
|
|
|
need to wait
for before executing in the
|
|
|
monitor
|
|