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 IHttpAsyncHandl er. (Recommended by the
famous Fritz Onion article on IHttpAsyncHandl er...)
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 1 2149
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.co m> 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 IHttpAsyncHandl er. (Recommended by the famous Fritz Onion article on IHttpAsyncHandl er...)
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 documentatio n?
thanx
buzz This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 might have some
thoughts on this perplexing .NET blocking issue.
(see below)
=====
Hi,
|
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 page.I am using the Custom
thread pool as given in the article's sample.
Implementation:
===============
In AsyncPage.aspx I inhereted AsyncPage class instead of
System.Web.UI.Page.
SyncPage.aspx is like any other Web page which inherits
|
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 via a socket
connection (no remoting, no ASP.NET). The client sends a message to the
server that contains some instructions and the server responds in an
asynchronous fashion. In other words, the client doesn't block while waiting
for the...
|
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 message, does some
processing and then sends out a string reply on the same connection.
I'm using the asynchrounous IO completion port based socket methods in
..NET 2.0 to handle the comms side of things (giving extremely good
performance) and the...
|
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/
I compile the cs code into a class.
I reference it in my VB.NET project.
I get the following error
| |
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 mysql
connections open so I end up with quite a few at the end. Is there a
different way that I should do this?
class Program
{
static string categories = { "emulation" , "audio" ,
"console" , "anime" , "xxx" , "tv" , "pictures" , "video" };
|
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 and run in multiple threads. I heard
about .Net Thread pool class but it has some limitations like we can't have
more than 25 threads in it and read some articles which explain the problems
with the Standard thread pool in case any of thread throws...
|
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.
|
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 EndProcessRequest never runs and the page hangs
forever. Any idea why?
Public Class MyAsyncWebHandler
Implements IHttpAsyncHandler
Implements IReadOnlySessionState
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |