title: Java:Get a value from a thread...?
body: <p>How can return a variable from a thead (I have the threads handle too). Static variables will not work in this case.</p>
  
  <p><strong>Update</strong>: Here is one twist, how can I do this without having to block and wait for the result? I need to be able to poll the created thread and kill it if it is hanging for too long (eg> 1 minute), then continue on in the main thread if the spawned thread is taking too long.</p>