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 make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.
Difference Between java & javax
5 Answers Sun Microsystems, Wipro,
what is disadvantage of thread?
Which containers use a border layout as their default layout?
difference between HashMap, Hashset and hashTable?
can we write implementation for a method with in another method?
suppose i open my yahoo mail.then copy the url. then sign out & close browser.then open browser paste that url on the browser.will i get my mail opened or not? i know it ill not.but how it work.how i create like this type of secure site?
What is the use of Class.forName
Where we can write Rmi registry in the code, without having to write it at the command prompt?
difference between ejb,struts,hibernate,spring and jsp
What is Connection Pooling?
1 Answers Enteg Technologies, Infosys, Polaris,
What is multi-tasking? Types?