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 |
how java is os independent language ?
What is scalable, portability in the view of J2EE?
What are the steps to write p-to-p model application?
what is the Scope of Final Keyword in Java?
What is deadlock?
What is meant by Superconductivity?
we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?
What is the purpose of the wait() method?
Will the general public have access to the infobus apis?
Difference Between getRequest and PostRequest?
What are the different methods of identifying an object?
What is the use of Class.forName