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 are the oops concept?
What is abstract schema?
the same information whether it will connect to the database or it will be used previous information?
Why does the option tag render selected=selected instead of just selected?
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?
In howmany ways a thread can be created?
What is the difference between the font and fontmetrics classes?
Is System.err.println(""Statement"); is execute the output on console . Example: System.err.println("Hello JAVA");
what is the Scope of Final Keyword in Java?
Define prototype?
Explain phantom read?
What is the infobus?