title: C#: Make Task run simultaneously
body: <p>I am trying to run Several Tasks continously, non-stop.
  Here is my code:</p>
  
  <pre><code>int maxThread = 100;
  Task[] tasks = new Task[maxThreads];
  while(true)
  {
     for(int i = 0;i&lt;maxThreads;i++)
     {
       tasks[i] = new Task.Factory.StartNew(someTask);
     }
     Task.WaitAll(tasks);
  }
  </code></pre>
  
  <p>So this function waits for all tasks to be completed and runs next batch of tasks. But I would like to start a task as soon as one is finished, without waiting for the other tasks. </p>
  
  <p>Thanks!</p>