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

Explain what is synchronization?

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 clone?

0 Answers  


How to send a request to garbage collector?

3 Answers  


what is the life cycle of jsp?

1 Answers   HCL, ITC Infotech,






whats is mean by tiles in struts

0 Answers   SolutionNET,


What exceptions are thrown by RMI?

1 Answers  


How many layers are there in RMI and what are they?

1 Answers  


How to determine applet?s height and width?

1 Answers  


Can I run seam with jdk 1.4 and earlier?

0 Answers  


What is scalable, portability in the view of J2EE?

0 Answers  


Difference between loadclass and class.forname?

0 Answers  


Categories