473,387 Members | 1,585 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,387 software developers and data experts.

Can't make two request at once, one blocks all.....


Hello

I have a Problem of understanding how IIS/ASPX Works.....

Why can't to request run at the "same" time ??

I have a Simple ASPX Web Application.

It has two Button.

Button 1 startst a do loop for 15 Seconds
Button 2 simply says Hello (writing hello in a Label)
I start Browser 1 and call the aspx Site
I start Browser 2 and call the aspx Site

Now in Browser 1 I click Button 1 (the loop)
Next in Browser 2 I click Button 2.

Browser 2 now waits till Browser 2 has ended the 15 Seconds Loop
and then start the Hello.

So Browser 2 is blocked untill Browser 1 is finished.........
Does that mean that ASPX is unable to server two Clients at once ?

What if 10.000 User call the Site ? Then Every User is blocked if only one
uses the "Loop" Button ?




Nov 18 '05 #1
2 1166
I don't know all of the details of the process, but the aspnet_wp process
does spawn multiple worker threads to service requests - in fact, you can
specify the maximum number of threads to spawn in your config file. If you
are using a busy wait for your 15 second delay, then you could be spinning
up your CPU to 100% and blocking that way, or it could be that, since you
are on the same machine, you were assigned to the same thread? Either way,
using a do loop and making your code just spin out of control instead of
putting that thread to sleep and letting the scheduler assign that time to
another thread or process isn't particularly good design.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Ford Prefect alias Armin" <Ar***@humsoft.com> wrote in message
news:bq*************@news.t-online.com...

Hello

I have a Problem of understanding how IIS/ASPX Works.....

Why can't to request run at the "same" time ??

I have a Simple ASPX Web Application.

It has two Button.

Button 1 startst a do loop for 15 Seconds
Button 2 simply says Hello (writing hello in a Label)
I start Browser 1 and call the aspx Site
I start Browser 2 and call the aspx Site

Now in Browser 1 I click Button 1 (the loop)
Next in Browser 2 I click Button 2.

Browser 2 now waits till Browser 2 has ended the 15 Seconds Loop
and then start the Hello.

So Browser 2 is blocked untill Browser 1 is finished.........
Does that mean that ASPX is unable to server two Clients at once ?

What if 10.000 User call the Site ? Then Every User is blocked if only one
uses the "Loop" Button ?




Nov 18 '05 #2

Thanx !

You are right :-)

if I replace the do loop and let the Thread sleep, it works.....

System.Threading.Thread.CurrentThread.Sleep(New TimeSpan(0, 0, 20))

you were assigned to the same thread?
If I start the two Browserwindows from a third Window
then (even with the Thread.sleep and no do loop) it doesn't work (blocked)

"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> schrieb im Newsbeitrag
news:eU**************@TK2MSFTNGP12.phx.gbl...
I don't know all of the details of the process, but the aspnet_wp process
does spawn multiple worker threads to service requests - in fact, you can
specify the maximum number of threads to spawn in your config file. If you
are using a busy wait for your 15 second delay, then you could be spinning
up your CPU to 100% and blocking that way, or it could be that, since you
are on the same machine, you were assigned to the same thread? Either way,
using a do loop and making your code just spin out of control instead of
putting that thread to sleep and letting the scheduler assign that time to
another thread or process isn't particularly good design.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Ford Prefect alias Armin" <Ar***@humsoft.com> wrote in message
news:bq*************@news.t-online.com...

Hello

I have a Problem of understanding how IIS/ASPX Works.....

Why can't to request run at the "same" time ??

I have a Simple ASPX Web Application.

It has two Button.

Button 1 startst a do loop for 15 Seconds
Button 2 simply says Hello (writing hello in a Label)
I start Browser 1 and call the aspx Site
I start Browser 2 and call the aspx Site

Now in Browser 1 I click Button 1 (the loop)
Next in Browser 2 I click Button 2.

Browser 2 now waits till Browser 2 has ended the 15 Seconds Loop
and then start the Hello.

So Browser 2 is blocked untill Browser 1 is finished.........
Does that mean that ASPX is unable to server two Clients at once ?

What if 10.000 User call the Site ? Then Every User is blocked if only

one uses the "Loop" Button ?





Nov 18 '05 #3

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

Similar topics

15
by: Riko Wichmann | last post by:
Dear all, is there a way in Python to comment out blocks of code without putting a # in front of each line? Somethings like C's /* block of code here is commented out */ Thanks,
1
by: Kevin C | last post by:
When designing an asynchronous service-based system, generally speaking whose responsibility is it to determine when a duplicate request is sent - the system hosting the service or the feeding...
3
by: Brian Birtle | last post by:
**** A CHALLENGE TO THE GURUS - refute the statement "It's impossible to build a file upload progress meter using ASP.NET" **** First person to prove me wrong gets "All Time .NET Programming GOD"...
2
by: Bruce W.1 | last post by:
ASP.NET processes one request at a time, sequentially. If one process blocks or sleeps then it brings down the entire application for all users. This fact is hidden under the rug by Microsoft. ...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
2
by: Mark1249 | last post by:
Hello, I am using ASP.NET 2 and using the CreateUserWizard I am wanting an email to go out to the new user informing them of their account details etc... I have a BodyFileName in the...
4
by: Joseph Geretz | last post by:
We use a Soap Header to pass a token class (m_Token) back and forth with authenticated session information. Given the following implementation for our Logout method, I vastly prefer to simply code...
5
by: Andreas Schmitt | last post by:
Hi, I recently worked on an open source project and tried to make on of the arrays they are using dynamically allocated to get rid of the max size. I used the realloc instead of the usual C++...
2
by: Vladimir Ghetau | last post by:
Hi guys, This is a weird problem, and I'm not sure if I got it right. Just a practical example, that will describe my problem: I'm connecting to google.com host on port 80 using fsock open,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
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,...
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...

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.