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 are the difference between RMI and CORBA?
What is Stream Tokenizer?
What restrictions are placed on the location of a package statement within a source code file?
What must a class do to implement an interface?
What are the diff types of exception?
What is the difference between system.out ,system.err and system.in?
What is the difference between a menuitem and a checkboxmenuitem?
Is there a guarantee of uniqueness for entity beans?
What are the pros and cons of detached objects?
Is it possible to stop the execution of a method before completion in a sessionbean?
What do you know about seam?
What is the immediate superclass of the applet class?
What is the difference between the string and stringbuffer classes?
What modifiers may be used with an interface declaration?
How substring() method of string class create memory leaks?