一次一个ASP.NET的工作线程可以处理多个请求? [英] Can an ASP.NET worker thread handle multiple requests at once?

查看:107
本文介绍了一次一个ASP.NET的工作线程可以处理多个请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道,ASP.NET将在从池中一个线程执行请求。是逆真的吗?直到请求完成,还是会ASP.NET重复使用多个并发请求的同一个线程将一个ASP.NET请求专门召开工作线程?

I know that ASP.NET will execute a request on a single thread from a pool. Is the inverse true? Will a single ASP.NET request exclusively hold a worker thread until the request completes, or will ASP.NET re-use the same thread between multiple concurrent requests?

推荐答案

即使您的第一条语句是不完全正确。

Even your first statement is not entirely true.

ASP.NET可以表现出的螺纹敏捷的 - 请求的生命周期的不同部分可以(在某些情况下 - 通常,如果一些请求是长时间运行,我相信,如果你异步响应)在不同的线程中运行。请参见这篇文章(<一个href=\"http://web.archive.org/web/20071107094255/http%3A//piers7.blogspot.com/2005/11/threadstatic-callcontext-and%5F02.html\"相对=更多信息,nofollow的>存档)。不幸的是我还没有看到清晰的,明确的,权威的文档关于这一主题的方式非常多:(

ASP.NET can exhibit thread agility - different parts of a request's lifecycle can (in some cases - usually if some requests are long-running, I believe, or if you're responding asynchronously) run in different threads. See this article (archived) for more information. Unfortunately I haven't seen very much in the way of clear, unambiguous and authoritative documentation on this topic :(

这篇关于一次一个ASP.NET的工作线程可以处理多个请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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