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 thread deadlock? How to resolve thread deadlock?
Wt is the main difference between Java and Java J2EE and Advanced java?
Connection Pooling with different type of databases?
What is the relationship between the canvas class and the graphics class?
In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?
What are the JSP implicit objects ?
What is checkpoint? How to create checkpoints in our java projects?
Why doesn’t the focus feature on the tag work in every circumstance?
whats is mean by tiles in struts
difference between Abstract and Interface?
What is the difference between a stub and a skeleton?
9 Answers ABC, College School Exams Tests, Geoservices, Polaris, Qualcomm, Rajiv Gandhi College of Engineering and Technology RGCET, UTIITSL, Wipro,
What is a thread?