title: How to pause/suspend a thread then continue it?
body: <p>I am making an application in C# which uses a winform as the GUI and a separate thread which is running in the background automatically changing things. Ex:</p>
  
  <pre><code>public void Run()
  {
      while(true)
      {
          printMessageOnGui("Hey");
          Thread.Sleep(2000);
          // Do more work
      } 
  }
  </code></pre>
  
  <p>How would I make it pause anywhere in the loop, because one iteration of the loop takes around 30 seconds. So I wouldn't want to pause it after its done one loop, I want to pause it on time.</p>