Possible implementation of a Monitor class. Taken from Bell, John T. "Process Synchronization." University of Illinois, Chicago.
Schematic view of a monitor. Taken from Bell, John T. "Process Synchronization." University of Illinois, Chicago.