D
Dave
Hi all,
I have an application which has some worker threads which often have to stop
and wait for some further information from other threads. These pauses will
often take a long time (a couple of minutes) and I want the thread to be
able to begin work ASAP once the new information arrives so Thread.Sleep
isn't the best solution. In .NET 1.1 I used .Suspend and .Resume to handle
these pauses but in .NET 2.0 these methods are no longer favoured. I have
been using .Sleep(Infinite) and .Interupt instead and this seems to be
working okay, but is this the best way to replace .Suspend and .Resume? Are
there better alternatives available?
Dave
I have an application which has some worker threads which often have to stop
and wait for some further information from other threads. These pauses will
often take a long time (a couple of minutes) and I want the thread to be
able to begin work ASAP once the new information arrives so Thread.Sleep
isn't the best solution. In .NET 1.1 I used .Suspend and .Resume to handle
these pauses but in .NET 2.0 these methods are no longer favoured. I have
been using .Sleep(Infinite) and .Interupt instead and this seems to be
working okay, but is this the best way to replace .Suspend and .Resume? Are
there better alternatives available?
Dave