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 relation between the infobus and rmi?

0 Answers  


what is an isolation level?

0 Answers  


when we applied start()method on a thread ,how does it know that to execute run()method on that object?

2 Answers   HCL,


What is threadfactory?

0 Answers  


How we set Bean Id when we are creating web application using SpringMVC and Hibernet Integration

1 Answers  






What is the difference between a stub and a skeleton?

9 Answers   ABC, College School Exams Tests, Geoservices, Polaris, Qualcomm, Rajiv Gandhi College of Engineering and Technology RGCET, UTIITSL, Wipro,


what is DGC?

1 Answers  


Why does the tag url-encode javascript and mailto links?

0 Answers  


In real time project when will we use Abstract class. and what are the difference between abstract and interface.

6 Answers   DELL, FCS, Polaris, Tanla Solutions, TCS,


What is ioc concept & explain it?

0 Answers  


How task's priority is used in scheduling?

0 Answers   HCL,


what is the Remote Stub?

1 Answers  


Categories