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 |
Should synchronization primitives be used on bean methods?
What is servlet preinitialization?
What are the steps involved in developing an RMI object?
What is Remote Interface?
Do I have to use jsps with my application?
whats is statement and procedure
Which class is the immediate superclass of the menucomponent class?
What is daemon thread?
What is ioc concept?
Can we define constructors in Servlet?
3 Answers Accenture, Opus, Wipro,
Difference between sleep and suspend?
What is the relationship between an event-listener interface and an event-adapter class?