Re: Thread won't start?
- From: "Bruce Barker" <brubar_nospamplease_@xxxxxxxxxx>
- Date: Tue, 2 Aug 2005 18:18:28 -0700
not quite true.
the lifetime of a thread is tied to the process. if the hosting appdomain is
unloaded, an abort request is sent to the thread by the clr
if you use create thread as the example did, a new process thread is
created, a thread is not taken from the clr thread pool. you need to use clr
thread pool api to do this.
-- bruce (sqlwork.com)
"Brock Allen" <ballen@xxxxxxxxxxxxxxxxx> wrote in message
news:1057108632585983337812500@xxxxxxxxxxxxxxxxxxxxxxx
> I'm not sure where you got this information, except perhaps you're
> confusing this with other environments.
>
>> The lifetime of a child thread is limited to the lifetime of the
>> parent thread.
>
> This is not correct. If a parent thread is terminated it does not
> implicitly affect a child thread.
>> As an ASP.Net Page instance lasts for several
>> milliseconds, your thread is dying almost immediately, when the Page
>> class is unloaded.
>
> ASP.NET threads are not created and terminated for each request nor are
> their lifetimes tied to the lifetime of the page (or handler). Threads are
> are drawn from the CLR thread pool to execute requests in ASP.NET. Once
> the request is done the thread is returned to the CLR thread pool. The
> thread pool may, over time, create and destroy threads, but this is based
> upon load upon the server. It is not tied to each request and/or page.
>
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>
>
.
- Follow-Ups:
- Re: Thread won't start?
- From: Brock Allen
- Re: Thread won't start?
- References:
- Re: Thread won't start?
- From: Kevin Spencer
- Re: Thread won't start?
- From: Brock Allen
- Re: Thread won't start?
- Prev by Date: Re: Upload a file without file Upload control - ASP.Net
- Next by Date: DataSet Questions!
- Previous by thread: Re: Thread won't start?
- Next by thread: Re: Thread won't start?
- Index(es):
Relevant Pages
|