3

Is it possible to determine number of maximum cores used in Parallel.For ?

1 Answer 1

3

If you want to limit the CPU usage in parallel programming, ParallelOptions.MaxDegreeOfParallelism is a good idea.

Sign up to request clarification or add additional context in comments.

2 Comments

Ok so how can I know how many cores machine on which Im running app has ?
@gruber: You need Environment.ProcessorCount

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.