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

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

Answer Posted / tek

All the three methods are called in synchronized block or
method.

wait(): Thread calling wait method will go to the waiting
state and it will loose its monitor. It will execute only
if it is notified by the other threads.

notify(): To notify thread which is waiting for the concern
object.

notifyAll(): To notify all the threads which are in waiting
state.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I import same package/class twice? Will the jvm load the package twice at runtime?

1090


What is meant by method chaining?

1095


Difference between DurableSubscription and non- DurableSubscription?

2138


What is mdb and what is the special feature of that?

1012


whats is mean by connectionpooling

1964


When a thread blocks on i/o, what state does it enter?

1040


what are the activation groupworks?

2132


Do you think that java should have had pointers?

1012


What state does a thread enter when it terminates its processing?

1019


Explain the steps in details to load the server object dynamically?

5066


How can I scroll through list of pages like the search results in google?

923


How is a java object message delivered to a non-java client?

999


What are the steps to write p-to-p model application?

2437


What is a modular application?

1014


What is the difference between RMI registry and OS Agent?

1076