title: Java stop thread all threads running from class
body: <p>what I need to do is be able to stop all threads running from one thread class that implements runnable. This is what I mean: here is the beginning of my "thread" class: </p>
  
  <pre><code>public class HTTP extends Thread
  {   
      int threadNumber;
      String host;
      int port;
      int timeLeft;
      private BufferedReader LocalBufferedReader;
  
      public HTTP(int threadNumber, String host, int port, int timeLeft)
      {
          this.threadNumber = threadNumber;
          this.host= host;
          this.port = port;
          this.timeLeft = (timeLeft * 1000);
      }
  
    public void run()
    {
  </code></pre>
  
  <p>This is how I am creating the multiple threads to do this: </p>
  
  <pre><code> for (int n = 1; n &lt;= m; n++) {
        new HTTP(n + 1, str, j, k).start();
      }
  </code></pre>
  
  <p>m is the number of threads to create. This can be anywhere from 50-1000. Now what I need to do is just abruptly stop all of them at once. How can I do that? </p>