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:

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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -