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

后端 未结 4 1428
情话喂你
情话喂你 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条回答
  •  [愿得一人]
    2020-12-11 07:18

    The IsBackground property can be assigned to. I'm not sure if this is "okay" or "not-pants-on-head-dumb" though.

    Happy coding.

提交回复
热议问题