What are the methods used for inter-thread communication?
and in what class these methods are defined?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / kiran solkar
In Yield an Sleep
which is Not a the method for Inter Thread communication
plzz answerr
or reply me on kiransolkar@gmail.com
Is This Answer Correct ? | 0 Yes | 0 No |
What is the relation between the infobus and rmi?
what is an isolation level?
when we applied start()method on a thread ,how does it know that to execute run()method on that object?
What is threadfactory?
How we set Bean Id when we are creating web application using SpringMVC and Hibernet Integration
What is the difference between a stub and a skeleton?
9 Answers ABC, College School Exams Tests, Geoservices, Polaris, Qualcomm, Rajiv Gandhi College of Engineering and Technology RGCET, UTIITSL, Wipro,
what is DGC?
Why does the tag url-encode javascript and mailto links?
In real time project when will we use Abstract class. and what are the difference between abstract and interface.
6 Answers DELL, FCS, Polaris, Tanla Solutions, TCS,
What is ioc concept & explain it?
How task's priority is used in scheduling?
what is the Remote Stub?