- To allow a process to wait within the monitor, a condition variable must be declared, as:
condition x, y;
Condition variable can only be used with the operations wait and signal.
- The operation
x.wait; means that the process invoking this operation is suspended until another process invokes x.signal;
- The x.signal operation resumes exactly one suspended process. If no process is suspended, then the signal operation has no effect.
|