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 threadfactory?
What is the difference between the ‘font’ and ‘fontmetrics’ class?
What classes of exceptions may be caught by a catch clause?
What modifiers may be used with an interface declaration?
For which statements does it make sense to use a label?
Can constructors be synchronized in java?
What is the argument type of a programs main() method?
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?
Name three subclasses of the component class?
Which are the different segments of memory?
what are RemoteObjects?
why static class in java
What is the immediate superclass of the applet class?
Explain how will the struts know which action class to call when you submit a form?
Define the remote object implementation?