开发者

Number of threads in ThreadPool

I have a windows service which uses thread-pool in .n开发者_StackOverflowet. When I configure maximum threads to be 1 in the thread pool I can still see more than one threads by using task manager for that service. What is the difference between these thread count?


The number of threads in use by your application is not under the control of the thread pool. There are numerous other things that will create threads in your application. The thread pool maintains a group of threads in addition to the ones used by your application directly.

Also, limiting thread pool threads to 1 is not a good idea. You may cause all sorts of problems plus it doesn't do what you think it is doing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜