CS 3733 Operating Systems Notes: Monitors Review
Monitors Review:
- A monitor is like an object with private data structures and some public methods.
- A monitor is a language construct.
- Only one process (or thread) at a time may be be active in a monitor.
- Condition variables have two methods: wait and signal (also called notify).
- cv.wait() always blocks and releases the monitor.
- cv.signal() wakes up a process waiting on cv, if any.
That process still needs to wait to enter (become active in) the monitor.
- Each Java object has its own monitor and behaves as if the object implements condition variable.
Next Notes
Back to CS 3733 Notes Table of Contents