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 infobus?
what is difference between object state and behaviour?
What happens when a thread cannot acquire a lock on an object?
how to use debug in my elipse to solve problems that exist in my project
what is container?
What are the services in RMI ?
What is resource bundle?
what do u mean by java bean??
What is scalable, portability in the view of J2EE?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
What is the difference between the string and stringbuffer classes?
Difference between hashmap and hashtable?