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 |
which type of objects reference will be given to client?
What are the oops concept?
list the types of dialodg
How can I scroll through list of pages like the search results in google?
What modifiers may be used with an interface declaration?
What is the purpose of the finally clause of a try-catch-finally statement?
What are JTA/JTS and how they used by client?
difference between ejb,struts,hibernate,spring and jsp
explain the flow of struts?
Explain how will the struts know which action class to call when you submit a form?
What state a thread enters, When it blocks on I/O?
Which textcomponent method is used to set a textcomponent to the read-only state?