Content deleted Content added
AdamPark85 (talk | contribs) |
AdamPark85 (talk | contribs) |
||
Line 76:
==Support in programming languages==
In [[Java (programming language)|Java]], one way to prevent thread interference and memory consistency errors,
Java ''synchronized'' blocks, in addition to enabling mutual exclusion and memory consistency, enable signaling—i.e., sending events from threads which have acquired the lock and are executing the code block to those which are waiting for the lock within the block. This means that Java synchronized sections combine functionality of mutexes and events. Such primitive is known as [[Monitor (synchronization)|synchronization monitor]].
|