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

which type of objects reference will be given to client?

0 Answers  


What are the oops concept?

0 Answers  


list the types of dialodg

1 Answers   Wipro,


How can I scroll through list of pages like the search results in google?

0 Answers  


What modifiers may be used with an interface declaration?

0 Answers  






What is the purpose of the finally clause of a try-catch-finally statement?

0 Answers  


What are JTA/JTS and how they used by client?

0 Answers  


difference between  ejb,struts,hibernate,spring and jsp

0 Answers  


explain the flow of struts?

2 Answers   SolutionNET,


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

0 Answers  


What state a thread enters, When it blocks on I/O?

2 Answers  


Which textcomponent method is used to set a textcomponent to the read-only state?

0 Answers  


Categories