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 the infobus?
What is Lock Based Protocol and what is its use?
why we use main in java?
What is the argument type of a programs main() method?
Can I import same package/class twice? Will the jvm load the package twice at runtime?
What are the steps involved in developing an RMI object?
What is a compilation unit?
What modifiers may be used with an interface declaration?
What is difference RMI registry and OSAgent?
What is the need of serialize?
what is the use of Object Factories?
Describe activation process?