|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
n |
Two processes:
|
|
|
|
u |
producer
|
|
|
|
u |
consumer
|
|
|
n |
Synchronization
is now
|
|
|
confined
within the
|
|
|
monitor
|
|
|
n |
append(.) and
take(.) are
|
|
|
procedures
within the
|
|
|
monitor: are
the only
|
|
|
means by
which P/C can
|
|
access the
buffer
|
|
|
n |
If these
procedures are
|
|
|
correct,
synchronization
|
|
will be
correct for all
|
|
|
participating
processes
|
|
|
|