Multiple threads or app instances?



ASP.NET QuickStart Tutorial says that:
....
ASP.NET maintains a pool of HttpApplication instances over the course of a
Web application's lifetime. ASP.NET automatically assigns one of these
instances to process each incoming HTTP request that is received by the
application. The particular HttpApplication instance assigned is responsible
for managing the entire lifetime of the request and is reused only after the
request has been completed. This means that user code within the
HttpApplication does not need to be reentrant.
....
A Note on Multiple Threads

If you use objects with application scope, you should be aware that ASP.NET
processes requests concurrently and that the Application object can be
accessed by multiple threads....
To make this code thread safe, serialize the access to the Application
object using the Lock and UnLock methods.
....

What do all above mean? ASP.NET/IIS launches multiple web applications for
every
request/session or one application (which starts when first request comes)
with multiple threads where each thread is responsible for each
request/session?


.



Relevant Pages

  • Re: Thread wont start?
    ... the lifetime of a thread is tied to the process. ... a thread is not taken from the clr thread pool. ... > ASP.NET threads are not created and terminated for each request nor are ... > are drawn from the CLR thread pool to execute requests in ASP.NET. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Thread wont start?
    ... I was indeed confusing this with other environments. ... >> The lifetime of a child thread is limited to the lifetime of the ... > the request is done the thread is returned to the CLR thread pool. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: we screen them, then we once again call Kenneth and Mohammars curious double
    ... Daoud's mug sounds above our request after we repair with it. ... Julie takes the lifetime as for hers and longer feeds. ...
    (sci.crypt)
  • Re: Instantiate an object in two ways???
    ... > variables are stored in the heap and objects stored on the heap can be ... >> is not a way to go - you have to start worrying about multiple threads ... Imagine a request makes this object be ... >>> multiple threads working at the same time,right? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Multiple threads or app instances?
    ... > with multiple threads where each thread is responsible for each ... The re-entrancy part has to do with the fact that an IIS request is ... guaranteed to be serviced by one httpapplication instance - a queue. ... > request/session or one application (which starts when first request comes) ...
    (microsoft.public.dotnet.framework.aspnet)