Monitors
Monitors
A monitor is a language construct which provides automatic mutual exclusion to the variables it encapsulates. Variables may only be accessed via monitor access procedures which are critical sections. Consequently, only a single thread may be executing inside a monitor at any one time.