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 are the oops concept?

587


how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.

1769


Why is string immutable in java?

590


What is the highest-level event class of the event-delegation model?

582


When is the best time to validate input?

616






Can you give me a simple example of using the requiredif validator rule?

612


Which are the different segments of memory?

610


Define the remote object implementation?

2009


how i secure my site with the https protocol.what are the steps?

1746


Why do I get a duplicate name error when loading a jar file?

552


Which class is the immediate superclass of the menucomponent class?

644


What is the relation between the infobus and rmi?

566


what is the use of State Factories?

1915


What is chat area? Explain.

567


hi friends, i have done my BE(CSE)at 2011 then i have joined one company before they asked me 50k so i paid but now they telling no project here so we r going to close like that so now i need any job i have good knowledge in core java and j2ee(jsp,servlet,jdbc) so if u know any job pl help me

1792