Represents the underlying monitor used by a Java Virtual Machine to manage locking and synchronization of a Java object.
The underlying monitor is implementation specific. Some implementations may choose to use their monitor implementations to control access to Java Virtual Machine resources that are not objects. In such cases, {@link #getObject()} will return null.
Java programmers use the synchronized modifier on methods and the synchronized block within methods to control simultaneous access to Java objects. Java uses monitors for this synchronization, which can be implemented using a variety of techniques. The JavaMonitor class presents the simple monitor abstraction that allows the caller to determine:
This API presents only what exists at the Java Virtual Machine bytecode level. The locking facilities provided by the {@link java.util.concurrent.lock}package are expected to be implemented on top of ordinary Java monitors.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|