InterviewSolution
Saved Bookmarks
| 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 can be used to find out whether current thread holds the lock on monitor of specified object.
|
|