What happens when a thread cannot acquire a lock on an object?

What happens when a thread cannot acquire a lock on an object?

Yadvinder
Views: 2560 | Community Opinion: 1

Tags..  Java Interview  Core Java  Object Lock

Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 
Rituraj Said..

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.






What do you think? Add your opinion/answer
*Name
*your opinion/answer: