java - Is "monitor" the synonym of "lock"/"bolt"? -
in javadoc, can read several times word "monitor" in object:wait , object:notify.
it seems used synonym of "verrou" (in french), or "lock"/"bolt" in english.
is true ? thank you.
strictly speaking, monitor , mutex not mean same thing.
a mutex synonym lock; i.e. "synchronization device commonly used establish mutual exclusion".
a monitor combines semantics of mutex mechanism signaling , waiting on condition.
references:
- wikipedia page on "mutual exclusion"
- wikipedia page on "lock (computer science)"
- wikipedia page on "monitor (synchronization)"
note these articles include various references cs literature give historical context use of these terms in computer science.
having said that, these 2 terms (incorrectly) treated interchangeable.
Comments
Post a Comment