Click here to Skip to main content
15,920,603 members
Home / Discussions / C#
   

C#

 
AnswerRe: Equiv of DrawState() API in .NET? Pin
James T. Johnson14-May-03 14:06
James T. Johnson14-May-03 14:06 
GeneralRe: Equiv of DrawState() API in .NET? Pin
J. Dunlap14-May-03 14:12
J. Dunlap14-May-03 14:12 
GeneralRe: Equiv of DrawState() API in .NET? Pin
James T. Johnson14-May-03 14:16
James T. Johnson14-May-03 14:16 
GeneralRe: Equiv of DrawState() API in .NET? Pin
J. Dunlap14-May-03 14:42
J. Dunlap14-May-03 14:42 
GeneralRe: Equiv of DrawState() API in .NET? Pin
J. Dunlap14-May-03 20:37
J. Dunlap14-May-03 20:37 
GeneralPlease, tell me WebServices are not stupid! Pin
Daniel Turini14-May-03 11:28
Daniel Turini14-May-03 11:28 
GeneralRe: Please, tell me WebServices are not stupid! Pin
leppie14-May-03 12:15
leppie14-May-03 12:15 
GeneralRe: Please, tell me WebServices are not stupid! Pin
James T. Johnson14-May-03 13:53
James T. Johnson14-May-03 13:53 
IIRC ASP.NET makes heavy use of the CLR ThreadPool, one of the down sides to the threadpool is that it won't create a new thread (or queue a new worker item) if the CPU is at 100%*, which your sample code does [edit]by looping until the time has elapsed[/edit].

That is also why changing the loop to a call to Thread.Sleep will allow it to work properly, the thread is suspended (or whatever it really is) until the the time elapses rather than spinning, using up all excess processor time.

*The logical reason is that if you are using up all of the processor, it doesn't make sense to try to get it to do more work. The downside is that you can see longer than usual request times in ASP.NET if the processor is pegged.

James

"It is self repeating, of unknown pattern"
Data - Star Trek: The Next Generation

GeneralPass byte[] -> struct Pin
Wizard_0114-May-03 10:33
Wizard_0114-May-03 10:33 
GeneralRe: Pass byte[] -> struct Pin
Richard Deeming15-May-03 8:45
mveRichard Deeming15-May-03 8:45 
GeneralPicture Control Issues Pin
RB@Emphasys14-May-03 9:36
RB@Emphasys14-May-03 9:36 
GeneralRe: Picture Control Issues Pin
leppie14-May-03 9:41
leppie14-May-03 9:41 
GeneralDownloading Pin
Brian Delahunty14-May-03 9:23
Brian Delahunty14-May-03 9:23 
GeneralRe: Downloading Pin
leppie14-May-03 9:42
leppie14-May-03 9:42 
GeneralRe: Downloading Pin
Brian Delahunty14-May-03 10:02
Brian Delahunty14-May-03 10:02 
GeneralRe: Downloading Pin
David Stone14-May-03 10:08
sitebuilderDavid Stone14-May-03 10:08 
GeneralRe: Downloading Pin
Brian Delahunty14-May-03 10:18
Brian Delahunty14-May-03 10:18 
GeneralRe: Downloading Pin
leppie14-May-03 11:06
leppie14-May-03 11:06 
GeneralAxSHDocVw.AxWebBrowser Pin
toanlb14-May-03 9:19
toanlb14-May-03 9:19 
GeneralTesting plan for C# application... Pin
Josh Martin14-May-03 8:14
Josh Martin14-May-03 8:14 
GeneralRe: Testing plan for C# application... Pin
leppie14-May-03 9:22
leppie14-May-03 9:22 
GeneralRe: Testing plan for C# application... Pin
Jeff Martin18-May-03 8:12
Jeff Martin18-May-03 8:12 
QuestionImplementing IPersistStream? Pin
solidstore14-May-03 8:11
solidstore14-May-03 8:11 
AnswerRe: Implementing IPersistStream? Pin
leppie14-May-03 9:26
leppie14-May-03 9:26 
GeneralRe: Implementing IPersistStream? Pin
solidstore14-May-03 10:24
solidstore14-May-03 10:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.