什么是线程敏捷在ASP.Net意思? [英] What is the meaning of thread-agility in ASP.Net?

查看:204
本文介绍了什么是线程敏捷在ASP.Net意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我阅读有关的HttpContext和CallContext中的一篇文章,看看线程灵活性。
这是什么意思?

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

推荐答案

这意味着,IIS可以自由使用多个线程来处理一个请求,虽然不是平行的。

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

基本上,IIS尝试异步执行I / O操作,从而释放了操作的持续时间调用线程。该线程返回到池中,可用于处理在其间的其它请求。

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.

当异步的I / O操作完成时,控制可以返回到最初处理的请求(因为该线程可以忙其他地方)的以外的线程,因此可以继续请求被尽快处理。

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.

这篇关于什么是线程敏捷在ASP.Net意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆