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



What are the methods used for inter-thread communication? and in what class these methods are defi..

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

What are the methods used for inter-thread communication? and in what class these methods are defi..

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

Post New Answer

More Advanced Java Interview Questions

How messaging services are done, before release of JMS?

0 Answers  


What is daemon thread?

3 Answers  


For which statements does it make sense to use a label?

0 Answers  


whats is mean by jndi

4 Answers   SolutionNET,


Why threads will block on I/O?

2 Answers  


What is a sessionfactory? Is it a thread-safe object?

0 Answers  


What modifiers may be used with an inner class that is a member of an outer class?

0 Answers  


what is domain,give me some brief information about that?

1 Answers  


Is infobus easy to use?

0 Answers  


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?

7 Answers  


Describe responsibilities of Activator?

0 Answers  


Is System.err.println(""Statement"); is execute the output on console . Example: System.err.println("Hello JAVA");

8 Answers  


Categories