1.

Can You Find Whether Thread Holds Lock On Object Or Not?

Answer»

holdsLock(OBJECT) method can be USED to find out whether current thread holds the LOCK on monitor of specified object.
holdsLock(object) method returns true if the current thread holds the lock on monitor of specified object.

 

holdsLock(object) method can be used to find out whether current thread holds the lock on monitor of specified object.
holdsLock(object) method returns true if the current thread holds the lock on monitor of specified object.

 



Discussion

No Comment Found