Thread Pool vs Thread Spawning

前端 未结 12 1656
梦如初夏
梦如初夏 2020-12-08 00:27

Can someone list some comparison points between Thread Spawning vs Thread Pooling, which one is better? Please consider the .NET framework as a reference implementation tha

12条回答
  •  鱼传尺愫
    2020-12-08 01:16

    My feeling is that you should start just by creating a thread as needed... If the performance of this is OK, then you're done. If at some point, you detect that you need lower latency around thread creation you can generally drop in a thread pool without breaking anything...

提交回复
热议问题