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
Why a client should be multithreading? Explain.
What is jboss?
What is bean? Where can it be used?
difference between ejb,struts,hibernate,spring and jsp
What is in-memory replication?
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?
Can I run seam outside of jboss as?
what are memory considerations of jsp compares to other web components?
what are the advantages of JTA over JTS?
Why do threads block on i/o?
What is the form of storage space in java?
Why use POJO when I can use hashmap
Difference between hashmap and hashtable?
Where we can write Rmi registry in the code, without having to write it at the command prompt?
What is a clone?