What will happens, when a thread cannot acquire a lock on
an object?
Answers were Sorted based on User's Feedback
Answer / anonymous
To my mind, this seems ambigious.
Simply another thread may try to use the same object.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
whats is mean by jndi
What are the thread-to-thread communcation?
whats is mean by object and class?
Have you used threads in Servelet?
Which textcomponent method is used to set a textcomponent to the read-only state?
How to deploy Jar, War files in J2EE?
how can we load a file of a user in the database table?
What is meant by multi-threading?
How many times may an objects finalize() method be invoked by the garbage collector?
What are callback interfaces?
What are the ways to define classes that can be run as threads?
what are memory considerations of jsp compares to other web components?