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

What is the infobus?

0 Answers  


what is difference between object state and behaviour?

3 Answers  


What happens when a thread cannot acquire a lock on an object?

0 Answers  


how to use debug in my elipse to solve problems that exist in my project

0 Answers   SAP Labs, TCS,


what is container?

3 Answers   Infosys, Infotech,






What are the services in RMI ?

0 Answers  


What is resource bundle?

1 Answers  


what do u mean by java bean??

2 Answers   ADP,


What is scalable, portability in the view of J2EE?

0 Answers  


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

0 Answers  


What is the difference between the string and stringbuffer classes?

0 Answers  


Difference between hashmap and hashtable?

0 Answers  


Categories