What will happens, when a thread cannot acquire a lock on
an object?

Answers were Sorted based on User's Feedback



What will happens, when a thread cannot acquire a lock on an object?..

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

What will happens, when a thread cannot acquire a lock on an object?..

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

Post New Answer

More Advanced Java Interview Questions

what are JSP tags? what is difference between include action and directory?

0 Answers   ADP,


How do you download stubs from a Remote place?

1 Answers  


Can you control when passivation occurs?

0 Answers  


In connection pool,when 100 clients are requesting, in pool 100 objects is there, when another client is making request how it will work

3 Answers  


What is a convertor?

1 Answers   Suzlon,






what is a non-repeatable read?

0 Answers  


How can I avoid validating a form before data is entered?

0 Answers  


What is a session? Can you share a session object between different theads?

0 Answers  


whats is statement and procedure

0 Answers   TCS,


Why is main purpose of XML?

5 Answers  


whats is mean by jndi

1 Answers   SolutionNET,


what is Activation Instantinator?

0 Answers  


Categories