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 |
Explain the purposes of methods wait(), notify(), notifyAll ()?
Can I use multiple html form elements with the same name?
How do u supress the parameters from the displaying in the url?
hi, All are saying that now software field position is not good and in 5-10yrs total software field ll be saturated . is it true? i am unable decide ii continue in this field or not please tell me?
advantage of thread?
Difference between DurableSubscription and non- DurableSubscription?
What is a session? Can you share a session object between different theads?
What do you need to set-up a cluster with jboss?
Name the method to find, if a thread is active or not?
What invokes a thread?s run() method?
Write a singleton program?
What is UniCastRemoteObject and what is its use in RMI?