title: How to pass parameter to an already running thread in java?
body: <p>How to pass parameter to an already running thread in java -- not in the constructor, &amp; probably without using wait() (possible ??)</p>
  
  <p>Something similar to  a comment in <a href="https://stackoverflow.com/questions/877096/how-can-i-pass-a-parameter-to-a-java-thread">How can I pass a parameter to a Java Thread?</a></p>
  
  <blockquote>
    <p>Do you mean passing a parameter to an already running thread ? Because all the current answers are about passing parameters to new threads... – Valentin Rocher May 18 '09 at 10:43 </p>
  </blockquote>
  
  <p><strong>[edited]</strong></p>
  
  <p>yes, I was looking for something like the producer/consumer pattern.</p>
  
  <p>I wanted something like a thread in which has the processing &amp; is ready 
  for keyboard input. The other thread is just to monitor network and pass 
  on the received text to the processing thread.</p>