A monitor provides a means to synchronize threads.
Notification involves passing synchronization information among cooperating threads.
Defined in: Monitor.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Creates a monitor.
|
| Method Attributes | Method Name and Description |
|---|---|
|
close()
Closes this monitor.
|
|
|
notify()
Wakes up a single thread that is waiting on this monitor.
|
|
|
wait(timeout)
Causes the current thread to wait until another thread invokes the notify method of this monitor.
|