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 to create Calculator GUI using Gridbaglayout as like as Window Calculator??????????? (Open calculator Go-->Run-->type calc-->Enter)

1 Answers   TCS,


What is difference between object state and behavior?

0 Answers  


advantage of thread?

3 Answers   HCL,


what are RemoteObjects?

0 Answers   Wipro,


What is synchronization and why is it important?

0 Answers  






What is multi-tasking? Types?

1 Answers  


How a component can be placed on Windows?

0 Answers   Wipro,


Explain the advantages and disadvantages of detached objects.

0 Answers  


How can I avoid validating a form before data is entered?

0 Answers  


difference between  ejb,struts,hibernate,spring and jsp

0 Answers  


What is threadfactory?

0 Answers  


the advantages of polymorphic

1 Answers  


Categories