title: How to run 50 threads together from a list which calls the same method in c#
body: <p>I have a <code>list</code> which has <code>100,000</code> records.
  I want to iterate throught the <code>list</code> and call a method in C#.
  I want to run the method in <code>50</code> threads inside the list in order to <em>increase performance</em>.</p>
  
  <p>I checked the option of <code>Parallel.Foreach</code>.</p>
  
  <p>but not able to set how many threads should run</p>