title: How to know threadid for each thread spawn by parallel.foreach
body: <p>I have a scenario something like this</p>
  
  <pre><code>int arr[100];
  
  Parallel.Foreach(arr, (a) =&gt; { some processing});
  </code></pre>
  
  <p>Now, this code will spawn 100 child threads, how can I know thread id for each child thread in "some processing" logic.</p>