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 are JSP tags? what is difference between include action and directory?
How do you download stubs from a Remote place?
Can you control when passivation occurs?
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 convertor?
what is a non-repeatable read?
How can I avoid validating a form before data is entered?
What is a session? Can you share a session object between different theads?
whats is statement and procedure
Why is main purpose of XML?
whats is mean by jndi
what is Activation Instantinator?