(How) Does TPL use (CLR) Thread Pool?

前端 未结 1 1258
说谎
说谎 2021-01-02 00:34

I am currently researching Task Parallel Library and I read somewhere that TPL actually uses thread pool mechanism from CLR-Level. I couldn\'t find any article confirming th

相关标签:
1条回答
  • 2021-01-02 01:00

    In TPL, a TaskScheduler is responsible for actually queuing the tasks up for execution. The Default scheduler will use the thread-pool - but I believe it's the new thread pool implementation which actually does the work-stealing cleverness.

    Daniel Moth has a blog post with some more details which you may find useful.

    0 讨论(0)
提交回复
热议问题