Thread.IsThreadPoolThread is useful for reverse-engineering some of these
aspects.

Thread.CurrentThread.IsThreadPoolThread will tell you if the current
thread was allocated from the thread pool.

http://www.peterRitchie.com/

On Wed, 21 Sep 2005 23:35:04 +0000, Tony Hal <[EMAIL PROTECTED]> wrote:

>Hi
>I have 2 questions on threading in the context of async call in .NET:
>
>1. In AST.NET, if you implement http async handler, ASP.NET thread will
call
>the BeginProcessRequest method. How is this ASP.NET thread implemented ?
>Is it one of the managed thread pool thread ? (which one ? worker thread
or
>completion port thread ?)
>Is it implemented using a custom thread pooling which is different from
the
>.net thread pool ?
>
>
>2. When you call the async Socket's BeginWrite and pass a callback, which
>thread will invoke the callback ?
>Is it the one of the managed thread pool ? (again, which one ?)
>Or is it implemented using its own private thread pool ? (in this case, is
>it based on NT completion port ?)
>The main thing is I want to know if the thread is based on NT completion
>port.
>Has anyone had any experience using the .net async Socket ? Is the perf
>close to the unmanaged/native one ?

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to