InterviewSolution
Saved Bookmarks
| 1. |
What Happens When A Thread Cannot Acquire Lock On An Object In Java Programming? |
|
Answer» If a thread ATTEMPTS to execute a synchronized method or synchronized statement and is unable to acquire an OBJECT's lock, it enters the WAITING state until the lock BECOMES available. If a thread attempts to execute a synchronized method or synchronized statement and is unable to acquire an object's lock, it enters the waiting state until the lock becomes available. |
|