title: thread.sleep in asp.net
body: <p>I'm simulating the comet live feed protocol for my site, so in my controller I'm adding:</p>
  
  <pre><code>while(nothing_new &amp;&amp; before_timeout){
    Thread.Sleep(1000);
  }
  </code></pre>
  
  <p>But I noticed the whole website got slow after I added this feature. After debugging I concluded that when I call <code>Thread.Sleep</code> all the threads, even in other requests, are being blocked.</p>
  
  <p>Why does <code>Thread.Sleep</code> block all threads, not just the current thread, and how should I deal with an issue like this?</p>