473,407 Members | 2,320 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,407 software developers and data experts.

New request, new thread not always ?

Using Thread.CurrentThread.GetHashCode() and AppDomain.GetCurrentThreadId()
I observerd that a few requests are serverd by the same thread. Usually 3-5
requests.
Is it possible to force, that every request will be served by new thread ?
Gawel
-------------------------------
Pierwszy ³yk z pucharu nauk przyrodniczych czyni ateist±, ale na dnie
pucharu czeka Bóg.
Werner Heisenberg
Nov 18 '05 #1
1 1214
why do you need to change this behavior? Any particular reason?

Requests are serviced using a thread pool. The first available thread
services the request.
It may be a repeat thread depending on the state of the machine and thread
pool usage or it may not be. This behavior is pretty much out of the
programmers hands. A pool is used so that multiple concurrent requests can
be serviced without service degradation as would be experienced if you could
implement requests on a single thread.

Put another way, under load, a queue system (single thread) would bottleneck
and crawl to a halt. Then fall over dead from a coronary. Efforts to revive
said thread would be useless. Funeral arrangements would have to be made
quickly to dispose of the rotting thread.
"Gawel" <ga*****@wywalto.gazeta.pl> wrote in message
news:bs**********@inews.gazeta.pl...
Using Thread.CurrentThread.GetHashCode() and AppDomain.GetCurrentThreadId() I observerd that a few requests are serverd by the same thread. Usually 3-5 requests.
Is it possible to force, that every request will be served by new thread ?
Gawel
-------------------------------
Pierwszy ³yk z pucharu nauk przyrodniczych czyni ateist±, ale na dnie
pucharu czeka Bóg.
Werner Heisenberg

Nov 18 '05 #2

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

Similar topics

1
by: Polaris | last post by:
Hi: I have some lengthy operations need to be finished before I can respond to client's request. Just wonder, is it possible to use a thread of my own to respond to client's web request? As a...
2
by: Michael Per | last post by:
Does anybody know of a best way to limit system resources (CPU/memory) for each particular request? In my application based on user's parameters a request may take considerable amount of time and...
3
by: ExclusiveResorts | last post by:
Can the CallContext be used reliably for storing request specific data? We are developing an application library that uses the CallContext to keep an IdentityMap (hashtable of business objects...
6
by: Steve | last post by:
Hi there, I'm trying to create a new website that will have a common aspx file serve as a template. I want all other pages to use this file and 'inject' their own content i.e. user controls,...
4
by: customerservice | last post by:
I have been tracking website traffic on my site www.grabbagvideo.com:84 and also https://www.grabbagvideo.com for a few weeks now. I am using the request.browser.crawler property in attempt to...
2
by: Steve | last post by:
After running into a design wall with my traditional thread approach, I realized that a BackgroundWorker object would fit my needs pretty good. Never really used them before. In a nutshell, my...
47
by: Max | last post by:
Due to the behaviour of a particular COM object, I need to ensure that a request for a particular ASP page is finalized before another request for the page is processed. Does IIS have a way to...
8
by: ThunderMusic | last post by:
Hi, What I want to do is send Http requests for a stress test application. The url I query will send me a 404, 400, maybe others or redirect me to a different url. I need to do that...
18
by: Thomas Lunsford | last post by:
I have inherited a set of asp pages that I now need to augment. In order to minimize changes to production code, I would like to make a "call" to an asp page from a new asp page. Existing code is...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
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...

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.