GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 446 of 502    Print  
Explain interthread communication.

  
Total Answers and Comments: 3 Last Update: May 12, 2009     Asked by: shwetakle 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 26, 2007 22:56:52   #1  
vidyarthic        

RE: Explain interthread communication.
A synchronization point at which two threads can exchange objects. Each thread presents some object on entry to the exchange method and receives the object presented by the other thread on return.
 
Is this answer useful? Yes | No
April 29, 2008 23:32:27   #2  
AjayMukiri Member Since: April 2008   Contribution: 4    

RE: Explain interthread communication.
Java provides a basic set of synchronisation methods within java.lang.Object allowing threads to wait for notification from other threads. Using the wait() and notify() methods threads can synchronise with each other. However in order to use these methods they must be called within a synchronized code block otherwise an IllegalMonitorException results. The thread that requires a synchronisation signal from another thread will call on the wait() method for an object. This will set the thread into a suspended mode until another thread sends a trigger by using the notify() method on the same object.
 
Is this answer useful? Yes | No
May 11, 2009 11:53:06   #3  
Radhakrishna P Member Since: May 2009   Contribution: 2    

RE: Explain interthread communication.
When threads are running in shared resources we can manage the threads by using native methods (wait() notify() notifyAll()) from Object class.

This is inter process communication between the threads while sharing shared resources




 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape