ASP.NET and my own thread

  • Thread starter Thread starter Gawel
  • Start date Start date
G

Gawel

Hajo,
I have created my own thread that makes zips.
It should work only when there are any jobs to do.
Therefore I use Suspend() and Resume(). But this does not help much.
Even when thread is suspended processor goes to 100% :(.
What is more, this situation (100% of processor in suspended mode)
occures on IIS version 5.0 (win 2000) but does NOT occure on IIS
version 6.0 (win 2003). Maybe I need some patch for IIS ?


thanks

Gawel
 
Gawel said:
Hajo,
I have created my own thread that makes zips.
It should work only when there are any jobs to do.
Therefore I use Suspend() and Resume(). But this does not help much.
Even when thread is suspended processor goes to 100% :(.
What is more, this situation (100% of processor in suspended mode)
occures on IIS version 5.0 (win 2000) but does NOT occure on IIS
version 6.0 (win 2003). Maybe I need some patch for IIS ?

You need to wait, not Suspend.

Do a Thread.Sleep and pool for work every second or two, or wait on a custom
event to be signaled.

David
 
You need to wait, not Suspend.
Thanks david, I will try.
But the question remains, why on win 2003 all is ok ?

Gawel
 
Back
Top