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

When you will synchronize your code?

2 Answers  


What is the difference between the session.get() method and the session.load() method?

0 Answers  


Explain how will the struts know which action class to call when you submit a form?

0 Answers  


What are the states associated in the thread?

3 Answers  


What is RRL?

1 Answers  






Explain bind(), rebind(), unbind() and lookup() methods?

1 Answers  


what is the use of Object Factories?

1 Answers  


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

2 Answers  


Is there a guarantee of uniqueness for entity beans?

0 Answers  


what are the advantages of JTA over JTS?

0 Answers  


What are the thread-to-thread communcation?

1 Answers  


Can we define constructors in Servlet?

3 Answers   Accenture, Opus, Wipro,


Categories