什么是ThreadPool? [英] What is ThreadPool ?
本文介绍了什么是ThreadPool?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
线程池是线程的集合,可用于在后台执行许多任务.这使主线程可以自由地异步执行其他任务.
有关详细信息,请查看MSDN:
http://msdn.microsoft.com/en-us/library/3dasc8as (v = vs.80).aspx [ http://msdn.microsoft.com/zh-CN /library/system.threading.threadpool(v=vs.80).aspx [ http://csharpfeeds.com/post/5415/Dont_use_the_ThreadPool_in_ASP.NET.aspx [ ^ ]
hi
I have a question about thread pool in Asp.Net
what is it?And where do use it?
解决方案
A thread pool is a collection of threads that can be used to perform a number of tasks in the background. This leaves the primary thread free to perform other tasks asynchronously.
Look at MSDN for details:
http://msdn.microsoft.com/en-us/library/3dasc8as(v=vs.80).aspx[^]
http://msdn.microsoft.com/en-us/library/system.threading.threadpool(v=vs.80).aspx[^]
I would suggest to NOT use Threadpool in ASP.Net. There is a nice article about that.
http://csharpfeeds.com/post/5415/Dont_use_the_ThreadPool_in_ASP.NET.aspx[^]
这篇关于什么是ThreadPool?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文