none
How to limit the number of threads (including non-concurrent!) RRS feed

  • Question

  • Hi All,

    I want to use parallel_for with combinable class.

    I understand that I can limit the number of threads running IN PARALLEL with SchedulerPolicy using MaxConcurrency key. This works as expected. However, parallel_for is using more threads than defined in MaxConcurrency. As a consequence, the combinable class needs more nodes.

    As I have very memory consuming tasks I have to limit the number of threads involved in parallel_for.

    Is there any chance to do this?

    Thanks and regards,

    Klaus

    Friday, September 28, 2012 5:57 PM