Thread vs ThreadPool

后端 未结 11 2292
鱼传尺愫
鱼传尺愫 2020-11-22 15:57

What is the difference between using a new thread and using a thread from the thread pool? What performance benefits are there and why should I consider using a thread from

11条回答
  •  不要未来只要你来
    2020-11-22 16:33

    Check here for an earlier thread:

    When should I not use the ThreadPool in .Net?

    Summary is that Threadpool is good if you need to spawn many shortlived threads, whereas using Threads gives you a bit more control.

提交回复
热议问题