142
Monitor
nThe monitor ensures mutual exclusion: no need to program this constraint explicitly
nHence, shared data are protected by placing them in the monitor
uThe monitor locks the shared data on process entry
nProcess 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
n