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 |
how to create Calculator GUI using Gridbaglayout as like as Window Calculator??????????? (Open calculator Go-->Run-->type calc-->Enter)
What is difference between object state and behavior?
advantage of thread?
what are RemoteObjects?
What is synchronization and why is it important?
What is multi-tasking? Types?
How a component can be placed on Windows?
Explain the advantages and disadvantages of detached objects.
How can I avoid validating a form before data is entered?
difference between ejb,struts,hibernate,spring and jsp
What is threadfactory?
the advantages of polymorphic