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

Explain the purposes of methods wait(), notify(), notifyAll ()?

2 Answers  


Can I use multiple html form elements with the same name?

0 Answers  


How do u supress the parameters from the displaying in the url?

2 Answers  


hi, All are saying that now software field position is not good and in 5-10yrs total software field ll be saturated . is it true? i am unable decide ii continue in this field or not please tell me?

19 Answers  


advantage of thread?

3 Answers   HCL,


Difference between DurableSubscription and non- DurableSubscription?

0 Answers  


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

0 Answers  


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

0 Answers  


Name the method to find, if a thread is active or not?

2 Answers  


What invokes a thread?s run() method?

2 Answers  


Write a singleton program?

0 Answers  


What is UniCastRemoteObject and what is its use in RMI?

6 Answers  


Categories