title: How to use shared memory on Java threads?
body: <p>I am implementing a multi-threaded program in Java, where each <code>thread</code> is of a type <code>class Node extends Thread</code>.</p>
  
  <p>All these classes generate certain values which will be used by other classes.</p>
  
  <p>For <code>main</code> it's easy to get the values from the generated <code>threads</code>, but from within <code>threads</code> itself, how  can I get the values on other <code>threads</code>?</p>
  
  <pre><code>//Start the threads from a list of objects
  for (int i = 0; i &lt; lnode.size(); i++) { 
      lnode.get(i).start();
  }
  </code></pre>
  
  <p>thanks</p>