Is it possible to determine number of maximum cores used in Parallel.For ?
1 Answer
If you want to limit the CPU usage in parallel programming, ParallelOptions.MaxDegreeOfParallelism is a good idea.
2 Comments
gruber
Ok so how can I know how many cores machine on which Im running app has ?
Cheng Chen
@gruber: You need Environment.ProcessorCount