What will happens, when a thread cannot acquire a lock on
an object?
Answer Posted / sudarsan
It will be waiting in runnable stage untill it acquire
object lock.
We call explicitly send this thread to blocked stage using
wait() or sleep() methods to avoid wasting cpu time.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between RMI registry and OS Agent?
What is a policy?
Can I map more than one table in a cmp?
What are the different types of exception?
What are the oops concept?
Are we allowed to change the transaction isolation property in middle of a transaction?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
What is aop(assepct oriented programing)?
Is jvm a overhead?
Difference between new operator and class.forname().newinstance()?
Describe, in general, how java's garbage collector works?
What are the benefits of detached objects?
What is the relation between the infobus and rmi?
What’s jboss jbpm?
How substring() method of string class create memory leaks?