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 is a thread?

3 Answers  


difference. between List and Set?

2 Answers   Campus Interaction, HCL, Infotech,


how the action can be map from jsp page to bean class in mvc1

1 Answers   Photon,


What is the immediate superclass of the applet class?

1 Answers  


whats is mean by filter?

1 Answers   SolutionNET,


What do you need to set-up a cluster with jboss?

1 Answers  


How to synchronize jsp page?

1 Answers   Infotech, TCS,


Which characters may be used as the second character of an identifier, but not as the first character of an identifier?

1 Answers  


What is RMI architecture?

11 Answers   Infosys,


Is 'synchronised' a modifier?

2 Answers   NIIT,


What is private static final long serialVersionUID = 1L;

3 Answers   Google,


What is the return type of interrupt method?

2 Answers  


Categories