In former versions of Parallel Extensions you could set the number of threads:
enumerable.AsParallel(numberOfThreads)
But now that overload is not available anymore. How to do it now?
In the new version you can specify it with the extension method ".WithDegreeOfParallelism(int degreeOfParallelism)".
IE:
enumerable.AsParallel().WithDegreeOfParallelism(numberOfThreads)