EVALUATION
Will consider for Mustang.
###@###.### 2004-08-12
In Mustang, we provide the monitoring and diagnostic support for java.util.concurrent.locks and also customized synchronizers that are built with any AbstractOwnableSynchronizer frameworks.
We add a few APIs in java.lang.management including:
1. ThreadInfo will report a java.util.concurrent lock/condition that a thread is blocked or waiting on.
2. ThreadMXBean.getAllLockedMonitors method to get a list of all locked object monitors.
3. ThreadMXBean.getAllLockedSynchronizers method to get a list of all locked JSR-166 synchronizers.
4. ThreadMXBean.findDeadlockedThreads method to find deadlocks involving both object monitors as well as JSR-166 synchronizers.
To provide monitoring and diagnostic support for JSR-166 synchronizers, a new abstract class AbstractOwnableSynchronizer is added in java.util.concurrent.locks package. For any customized synchronizers (not provided by JRE), to enable this monitoring and diagnostic support e.g. to assist users to find out which thread holds the synchronizer or which synchronizer a thread is blocked on, it requires the implementation of customized synchronizers to keep track of the thread exclusively owning the lock.
###@###.### 2005-05-20 23:54:23 GMT
|