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 are the methods used for inter-thread communication?
and in what class these methods are defined?

Answer Posted / ranganathkini

The methods used for inter-thread communication are:

1. wait() - causes thread to wait until another thread calls
the notify() or notifyAll() methods.
2. notify() - wakes up any thread waiting on this object
notifyAll() - wakes up all threads waiting on this object

These methods are a part of the java.lang.Object class.

Is This Answer Correct ?    17 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the diff types of exception?

1114


What is the relationship between an event-listener interface and an event-adapter class?

1179


Can I run seam with jdk 1.4 and earlier?

1049


What are the services in RMI ?

2443


why static class in java

1815


What are the pros and cons of detached objects?

1037


whats is statement and procedure

2288


What is ioc concept & explain it?

1138


What is local interface. How values will be passed?

1086


What is the argument type of a programs main() method?

1169


What are the different types of exception?

1076


Can I map more than one table in a cmp?

1128


Which container method is used to cause a container to be laid out and redisplayed?

1185


how to use debug in my elipse to solve problems that exist in my project

2328


what are getters and setters in Java with examples?

1829