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
what are the activation groupworks?
What is the form of storage space in java?
What is the difference between the ‘font’ and ‘fontmetrics’ class?
What is the difference between java class and bean?
Can I have an action without a form?
What is permgen or permanent generation?
what is a portable component?
Are enterprise beans allowed to use thread.sleep()?
How messaging services are done, before release of JMS?
Can you control when passivation occurs?
How would you create a button with rounded edges?
When is the best time to validate input?
Explain about thread synchronization inside a monitor?
What is Remote Server?
Why use POJO when I can use hashmap