Why does PLINQ use only two threads?

前端 未结 4 2028
野趣味
野趣味 2020-12-16 23:41

Say I have an IO-bound task. I\'m using WithDegreeOfParallelism = 10 and WithExecution = ForceParallelism mode, but still the query only uses two threads. Why?

I und

4条回答
  •  攒了一身酷
    2020-12-17 00:33

    10 is maximum

    Sets the degree of parallelism to use in a query. Degree of parallelism is the maximum number of concurrently executing tasks that will be used to process the query.

    From here:

    MSDN

提交回复
热议问题