Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

diff between jsp include directive and jsp action include?

4 Answers   SolutionNET,


What value does readline() return when it has reached the end of a file?

0 Answers  


whats is mean by connectionpooling

2 Answers   SolutionNET,


Explain the different types of memory used by jvm?

0 Answers  


Difference Between getRequest and PostRequest?

8 Answers   HCL, TCS,


What is private static final long serialVersionUID = 1L;

3 Answers   Google,


Why does the tag url-encode javascript and mailto links?

0 Answers  


How are commas used in the intialization and iteration parts of a for statement?

0 Answers  


why static class in java

0 Answers   Infotech, SunGard,


Differences between applications and applets?

3 Answers  


what is a non-repeatable read?

0 Answers  


What is threadfactory?

0 Answers  


Categories