title: Is "while (true)" usually used for a permanent thread?
body: <p>I'm relatively new to coding; most of my "work" has been just simple GUI apps that only function for one thing, so I haven't had to thread much.</p>
  
  <p>Anyway, one thing I'm wondering about threading is if you want to keep a thread alive forever to do whatever job it's doing (processing, waiting for input, whatever), is it normal to format it like so:</p>
  
  <pre><code>while (true) {
      // do stuff
      Thread.Sleep(1000);
  }
  </code></pre>
  
  <p>(or something along those lines)...? Or is this not safe and should it be avoided if possible?</p>