The MONITOR API is summarized in the following table:
Function |
Description |
---|---|
monitorGet() |
Obtains the lock on the given monitor |
monitorInit() |
Initializes the given monitor |
monitorNotify() |
Notifies one thread waiting in monitorWait() |
monitorNotifyAll() |
Notifies all threads waiting in monitorWait() |
monitorRel() |
Releases a lock on a given monitor |
monitorWait() |
Causes a thread that owns the lock on the given monitor to suspend itself until it receives notification from another thread |