What is the meaning of thread-agility in ASP.Net?

孤人 提交于 2019-12-17 07:38:25

问题


I am reading an article about HttpContext and CallContext and see thread-agility. What does it mean?


回答1:


It means that IIS is free to use more than one thread to handle a single request, although not in parallel.

Basically, IIS tries to perform I/O operations asynchronously, thus freeing the calling thread for the duration of the operation. That thread is returned to the pool and can be used to handle other requests in the meantime.

When the asynchronous I/O operation completes, control can be returned to a thread other than the one that originally handled the request (since that thread can be busy elsewhere), so the request can continue being processed as soon as possible.



来源:https://stackoverflow.com/questions/11306888/what-is-the-meaning-of-thread-agility-in-asp-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!