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 |
What is a thread?
difference. between List and Set?
2 Answers Campus Interaction, HCL, Infotech,
how the action can be map from jsp page to bean class in mvc1
What is the immediate superclass of the applet class?
whats is mean by filter?
What do you need to set-up a cluster with jboss?
How to synchronize jsp page?
Which characters may be used as the second character of an identifier, but not as the first character of an identifier?
What is RMI architecture?
Is 'synchronised' a modifier?
What is private static final long serialVersionUID = 1L;
What is the return type of interrupt method?