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


Please Help Members By Posting Answers For Below Questions

What is the difference between RMI registry and OS Agent?

626


What is a policy?

1765


Can I map more than one table in a cmp?

590


What are the different types of exception?

570


What are the oops concept?

573






Are we allowed to change the transaction isolation property in middle of a transaction?

557


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

576


What is aop(assepct oriented programing)?

576


Is jvm a overhead?

619


Difference between new operator and class.forname().newinstance()?

596


Describe, in general, how java's garbage collector works?

534


What are the benefits of detached objects?

582


What is the relation between the infobus and rmi?

552


What’s jboss jbpm?

574


How substring() method of string class create memory leaks?

547