Thread.Start() versus ThreadPool.QueueUserWorkItem()

前端 未结 7 2089
长发绾君心
长发绾君心 2020-12-12 16:20

The Microsoft .NET Base Class Library provides several ways to create a thread and start it. Basically the invocation is very similar to every other one providing the same k

相关标签:
7条回答
  • 2020-12-12 17:07

    Using the ThreadPool, you have less control of the threading system. This is a trade off to simplify the process for you. If you have all that you need from the ThreadPool, you should feel free to utilize it. If you need more control of the threads, then you need to of course use the Thread classes.

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