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

whats is mean by jndi

4 Answers   SolutionNET,


What are the thread-to-thread communcation?

1 Answers  


whats is mean by object and class?

1 Answers   Saka Solutions,


Have you used threads in Servelet?

0 Answers   Satyam,


Which textcomponent method is used to set a textcomponent to the read-only state?

0 Answers  


How to deploy Jar, War files in J2EE?

0 Answers   HCL,


how can we load a file of a user in the database table?

3 Answers   ITC Infotech,


What is meant by multi-threading?

6 Answers  


How many times may an objects finalize() method be invoked by the garbage collector?

0 Answers  


What are callback interfaces?

0 Answers  


What are the ways to define classes that can be run as threads?

1 Answers   KPIT,


what are memory considerations of jsp compares to other web components?

0 Answers   TCS,


Categories