title: How can I kill a thread? without using stop();
body: <pre><code>Thread currentThread=Thread.currentThread();
          public void run()
          {               
  
               while(!shutdown)
              {                               
                  try
                  {
                      System.out.println(currentThread.isAlive());
                  Thread.interrupted();
  
                  System.out.println(currentThread.isAlive());
                  if(currentThread.isAlive()==false)
                  {
                      shutdown=true;
                  }
                  }
                  catch(Exception e)
                  {
                      currentThread.interrupt();
                  }                   
              }
          }
  
      });
      thread.start();
  </code></pre>