The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Yes, they can...

Posted by Kishori Sharan on April 19, 2001 at 2:25 PM

Threads cannot communicate directly. They can communicate via shared memory, I mean the process that created the thread can pass an object to all five threads and all five threads can read/update the object state. This way all threads are communicating with each other. So, create a thread passing the object from the main thread. This will be the object you want to change.

Thanx
Kishori



Replies:
  • Thanks calahans April 20, 2001 at 8:16 AM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us