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 form of storage space in java?
what is difference between checked exception & unchecked exception in java?
How many layers are there in RMI and what are they?
What is a tasks priority and how is it used in scheduling?
What is difference RMI registry and OSAgent?
What is source and listener?
What is RRL?
What is difference between object state and behavior?
Describe activation process?
difference between HashMap, Hashset and hashTable?
Why are component architectures useful?
Can we sent objects using Sockets?