title: What will happen after Thread reach all code?
body: <p>I ask this because I made my program crash when using lots of Thread.currentThread().interrupt(); &lt;--- This is not my main thread.</p>
  
  <p>I want to know does I really need Thread.currentThread().interrupt(); on the last line?</p>
  
  <p>My code:</p>
  
  <pre><code>final Runnable iPlusPlus = new Runnable(){
          @Override
          public void run(){
              try{
                  do{
                      Thread.sleep(100);
                      i++;
                      if(isLiq &gt;= 5){
                         isLiq = true;
                      }
                  }while(isLiq = false);
              catch(InterruptedException e){
                      //Thread.currentThread().stop();
                      Thread.currentThread().interrupt(); //&lt;---I mean last line.
                  }
          Thread.currentThread().interrupt(); //&lt;---I mean last line.
  }
  
  
  
  new Thread(iPlusPlus){
          public void run(){
              iPlusPlus.run();
          }
      }.start();
  </code></pre>