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 is ioc concept?

1165


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

1100


How to deploy Jar, War files in J2EE?

2641


What are the benefits of detached objects?

1022


Can I have an action without a form?

1066


What is ioc concept & explain it?

1047


What is in-memory replication?

1019


which type of objects reference will be given to client?

2453


What is the difference between ear, jar and war file?

1080


What is the purpose of the wait() method?

1130


What if the static modifier is removed from the signature of the main method?

1201


whats is statement and procedure

2150


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

2183


How to pass parameters in RMI?

2231


what are the advantages of JTA over JTS?

2159