是否有任何警告或短的缺憾,以使用新的任务API中的 System.Threading.Task
ASP.NET中的IIS下主办?
Are there any caveats or short comings to using the new Task API in System.Threading.Task
in ASP.NET hosted under IIS?
我知道之前,.NET 4.0的工作与任何线程池的行为的IIS里面总是建议要避免的。
I know prior to .NET 4.0 working with any of the ThreadPool actions inside of IIS was always recommended to be avoided.
推荐答案
什么注意事项,使用线程池与IIS依然有效使用 System.Threading.Task
,作为任务API是抽象的只是一个附加层以上的System.Threading
。
Any caveats to using ThreadPool with IIS would still be valid using System.Threading.Task
, as the Task API is just an additional layer of abstraction over System.Threading
.
有关在后台长时间运行的任务,我用的是线程池
里面的Windows服务。这IIS以外的保持它。
For long-running tasks in the background, I use a ThreadPool
inside a Windows Service. This keeps it outside of IIS.
相关推荐
最新文章