Although the code about which I will talk here I wrote in F#, it is based on the .NET 4 framework, not specifically depending on any particularity of F
ParallelOptions.MaxDegreeOfParallelism limits the number of concurrent operations run by Parallel method calls