Is Task.Factory.StartNew() guaranteed to create at least one new thread?

前端 未结 6 1996
一生所求
一生所求 2021-01-24 14:38

I understand that the TPL does not necessarily create a new thread for every task in a parallel set, but does it always create at least one? eg:

private void MyF         


        
6条回答
  •  长发绾君心
    2021-01-24 15:25

    DoSomethingTimely will get called very quickly, but what does that have to do with creating a new thread, or adding the task to a queue?

提交回复
热议问题