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 state a thread enters, When it blocks on I/O?
Is 'synchronised' a modifier?
What is serialization and de-serialization ?
the use of try and ffinally keyword
What are the services in RMI ?
Can you give me a simple example of using the requiredif validator rule?
What are the types of scaling?
Difference between sleep and suspend?
Describe activation process?
Write a java program to find out the sum of harmonic series : 1 + ½ + 1/3 + ……… up to nth term , for any value of n.
How are commas used in the intialization and iteration parts of a for statement?
What are the implicit objects?