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...


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?



When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquire..

Answer / Sumit Batham

The wait(), notify(), and notifyAll() methods in Java are used for thread synchronization. When a thread calls the wait() method, it releases the lock on the object, goes into waiting state, and allows another thread to acquire the lock. The notify() method wakes up one waiting thread, and notifyAll() wakes up all waiting threads.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is the is a and has a relation ship in oops concept in java?

9 Answers   BearingPoint, TCS,


What is static keyword?

1 Answers  


State one difference between a template class and class template.

1 Answers   HAL,


Does constructor creates the object ?

1 Answers  


What is a constructor, constructor overloading in java?

1 Answers  


Is java an open source?

1 Answers  


What is included in core java?

1 Answers  


How to create a base64 decoder in java8?

0 Answers  


How can you generate random numbers in java?

1 Answers  


Which One is optimal to choose ? Syncronized hash map or Hash table with single thread model? How can a hash map syncronized with out using syncrozed blocks in programm?

3 Answers   Four soft,


How to solve the problem of generating the unique hash keys with hash function?

1 Answers  


what is the difference b/w design pattern and architecture

4 Answers   Covansys,


Categories