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
How a component can be placed on Windows?
Explain how will the struts know which action class to call when you submit a form?
Why does the tag url-encode javascript and mailto links?
what are the activation groupworks?
What is the relationship between an event-listener interface and an event-adapter class?
What state does a thread enter when it terminates its processing?
Why do I get a duplicate name error when loading a jar file?
Where we can write Rmi registry in the code, without having to write it at the command prompt?
What is the difference between RMI and Corba?
What are the different types of exception?
What is RMI and what are the services in RMI?
What are the different methods of identifying an object?
Name three subclasses of the component class?
what are the advantages of JTA over JTS?
What modifiers may be used with an interface declaration?