What are the methods used for inter-thread communication?
and in what class these methods are defined?
Answer Posted / 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 |
Post New Answer View All Answers
What is ioc concept?
Can I import same package/class twice? Will the jvm load the package twice at runtime?
How to deploy Jar, War files in J2EE?
What are the benefits of detached objects?
Can I have an action without a form?
What is ioc concept & explain it?
What is in-memory replication?
which type of objects reference will be given to client?
What is the difference between ear, jar and war file?
What is the purpose of the wait() method?
What if the static modifier is removed from the signature of the main method?
whats is statement and procedure
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
How to pass parameters in RMI?
what are the advantages of JTA over JTS?