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 messaging services are done, before release of JMS?
What is daemon thread?
For which statements does it make sense to use a label?
whats is mean by jndi
Why threads will block on I/O?
What is a sessionfactory? Is it a thread-safe object?
What modifiers may be used with an inner class that is a member of an outer class?
what is domain,give me some brief information about that?
Is infobus easy to use?
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?
Describe responsibilities of Activator?
Is System.err.println(""Statement"); is execute the output on console . Example: System.err.println("Hello JAVA");