Can threads started by Tasks Parallel Library act as foreground threads?

后端 未结 4 1431
情话喂你
情话喂你 2020-12-11 06:28

MSDN documentation indicates that threads started by the TPL will enjoy better scheduling. However, since the threads are based upon ThreadPool, they will be implemented as

4条回答
  •  -上瘾入骨i
    2020-12-11 07:21

    You could write your own TaskScheduler implementation. Have a look in the samples for examples of implementing a TaskScheduler - hopefully it's relatively simple from there.

提交回复
热议问题