title: How to check if thread is terminated?
body: <p>when does a thread reach the <strong>terminated</strong> status? Does it get terminated when the end of the <code>run()</code> method is reached?</p>
  
  <p>So what is the right way to check if a thread is terminated? Because following condition seems to be true always for me</p>
  
  <pre><code>if(!(thread.getState()).equals("TERMINATED")){}
  </code></pre>
  
  <p>Any ideas?</p>