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 what is synchronization?
In connection pool,when 100 clients are requesting, in pool 100 objects is there, when another client is making request how it will work
What is a clone?
How to send a request to garbage collector?
what is the life cycle of jsp?
whats is mean by tiles in struts
What exceptions are thrown by RMI?
How many layers are there in RMI and what are they?
How to determine applet?s height and width?
Can I run seam with jdk 1.4 and earlier?
What is scalable, portability in the view of J2EE?
Difference between loadclass and class.forname?