473,324 Members | 2,214 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Woodring's custom thread pool with IHttpAsyncHandler

I am evaluating Mike Woodring's custom thread pool classes
(Developmentor) for use with an ASP.NET project that will be
implementing pages derived from IHttpAsyncHandler. (Recommended by the
famous Fritz Onion article on IHttpAsyncHandler...)

I understand most of the code, however I am at a losss of the purpose of
the ThreadInfo class. It appears that it is used to get the current
HTTP context object for a worker thread?? But, can't the HTTP context
object be passed to a worker thread via the WorkRequest object? Is it
due to the HTTP context object being created(?) with respect to the
request thread?

If anyone has used the custom thread pool code, can you give me an
executive summary on the ThreadInfo class, or point me to some
documentation?

thanx

buzz
Nov 18 '05 #1
1 2111
buzz:

It looks like Thread info does a number of other useful things, like
propogate the first thread's current principal, the CallContext, and
sometime in the future perhaps any code access security information
from the other thread. It is all neatly encapsulated in one class for
the caller to use instead of coding it each time.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 22 Nov 2004 16:56:26 -0500, buzz <bu**@buzz.com> wrote:
I am evaluating Mike Woodring's custom thread pool classes
(Developmentor) for use with an ASP.NET project that will be
implementing pages derived from IHttpAsyncHandler. (Recommended by the
famous Fritz Onion article on IHttpAsyncHandler...)

I understand most of the code, however I am at a losss of the purpose of
the ThreadInfo class. It appears that it is used to get the current
HTTP context object for a worker thread?? But, can't the HTTP context
object be passed to a worker thread via the WorkRequest object? Is it
due to the HTTP context object being created(?) with respect to the
request thread?

If anyone has used the custom thread pool code, can you give me an
executive summary on the ThreadInfo class, or point me to some
documentation?

thanx

buzz


Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: David Sworder | last post by:
This message was already cross-posted to C# and ADO.NET, but I forgot to post to this "general" group... sorry about that. It just occured to me after my first post that the "general" group readers...
0
by: Santa | last post by:
I am using Fritz Onion's "Asynchronous Pages" approach as mentioned in the article http://msdn.microsoft.com/msdnmag/issues/03/06/Threading/default.aspx to increase the performance of my ASPX...
7
by: David Sworder | last post by:
Hi, I'm developing an application that will support several thousand simultaneous connections on the server-side. I'm trying to maximize throughput. The client (WinForms) and server communicate...
5
by: Kieran Benton | last post by:
Hello, I'm currently in the tail end process of developing a high scalability server for my employer. Essentially it receives short socket based connections with an ASCII message, parses that...
1
by: nb.home | last post by:
Hi: I'm trying to increase the number of threads and i/o connections in the System.ThreadPool class. A widely popular Custom ThreadClass is Mike Woodring's at http://www.bearcanyon.com/dotnet/...
5
by: admin | last post by:
ok This is my main. Pretty much it goes through each category and starts up 4 worker threads that then ask for groups to gether from. My problem is that when the thread gets done it keeps the...
3
by: Venkat | last post by:
Hi, I am working on an application (developed using c#2.0) which needs to do a big job and when you start the job in a single thread it takes long time to complete. So, we want to break the job...
34
by: Creativ | last post by:
Why does Thread class not support IDisposable? It's creating quite some problem. Namely, it can exhaust the resource and you have not control over it.
2
by: =?Utf-8?B?U3RldmUgV3JpZ2h0?= | last post by:
Hi All, This is my first time using this interface, so I am sure I am just missing something stupid. When my Http Handler gets called, the Begin runs and the delegate runs, but the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.