ASP.NET and my own thread

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
 
D

David Browne

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
 
G

Gawel

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

Gawel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,117
Latest member
Matilda564
Top