title: How to stop multithread start by for loop condition
body: <p>This code will show you how I started multiple threads:</p>
  
  <pre><code>for (int i = 0; i &lt; 8; i++)
  {
      doImages    = new DoImages(this, TCPPORT + i);
      var thread  = new Thread(doImages.ThreadProc);
      thread.Name = "Imaging";
      var param = (i + 1).ToString();                      
      thread.Start(param);
  }
  </code></pre>
  
  <p>Now I'm trying to stop the threads before closing my application but I don't know how to do that? </p>