title: TPL - set Task to Thread.Sleep for a long time
body: <p>I have a test to use .NET Task Parallel Library:</p>
  
  <pre><code>static void Main(string[] args)
  {
      for(int i = 0; i &lt; 1000; i++)
      {
          int n = i;
          Task.Factory.StartNew(() =&gt; TaskTest(n));
      }
  }
  
  static void TaskTest(int i)
  {
      // Will sleep for a long time
      Thread.Sleep(TimeSpan.FromMinutes(i));
      // Do something here
  }
  </code></pre>
  
  <p>One thing I'm not sure: When Thread.Sleep in the above code execute, what will happen? I know it will not occupy a thread in the ThreadPool, is there any drawback if I set multiple tasks to Thread.Sleep for a really long time like 24 hours? </p>