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
Which are the different segments of memory?
Write a singleton program?
Why does the option tag render selected=selected instead of just selected?
what are getters and setters in Java with examples?
Describe, in general, how java's garbage collector works?
What is the purpose of the notifyall() method?
Can I map more than one table in a cmp?
How substring() method of string class create memory leaks?
Why is actionform a base class rather than an interface?
How to pass parameters in RMI?
What value does read() return when it has reached the end of a file?
What is the highest-level event class of the event-delegation model?
What is a tasks priority and how is it used in scheduling?
how i secure my site with the https protocol.what are the steps?
For which statements does it make sense to use a label?