title: How to start a stopped thread
body: <p>I create a new thread and start it from a main thread.</p>
  
  <pre><code>m_MyThread = new Thread(HandleMyThread);
  m_MyThread.IsBackground = true;
  m_MyThread.Start();
  
  private void HandleMyThread()
  {
      while (true)
      {
          Thread.Sleep(5000);
          return;
      }
  }
  </code></pre>
  
  <p>After 5 seconds, this thread will finish and its ThreadState is Stopped. I want to start it again when user clicks on button but I get a <code>ThreadStateException (Thread is running or terminated; it cannot restart)</code>:</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
  {
      m_MyThread.Start(); // -&gt;raise exception
  }
  </code></pre>
  
  <p>Please help me how to restart a stopped thread. Thanks.</p>