title: Using ThreadPool within loops in C#
body: <p>I'm not too clued up with threading but is the following code acceptable (I'm more worried about using thread pools within a loop):</p>
  
  <pre><code>      string[] filePaths = GetFilePaths();
  
        foreach (string filePath in filePaths )
        {
          ThreadPool.QueueUserWorkItem(DoStuff, filePath); 
        }
  </code></pre>
  
  <p>Is there any other way that this can be done?</p>
  
  <p>EDIT:</p>
  
  <p>N.B. Each execution of DoStuff will in turn create multiple sub threads (about 200). These sub-threads simulate users of the system and is only responsible for receiving and sending information via TCP.</p>