Monitors - working
How is mutual exclusion implemented? The shared resource and the operations (methods) to access it are defined inside the monitor. Since the monitor allows only one process to use it at any time, other processes that require this monitor are queued up.
How is “scattered primitive problem” of semaphores solved? All the waiting facilities on conditions are built-into the monitor.
Study and understand Fig.5.22 and 5.23