Suspending Threads
- From: "Dave" <fairydave@xxxxxxxxxxx>
- Date: Sun, 08 Apr 2007 01:28:23 GMT
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
.
- Prev by Date: Re: VB or C?
- Next by Date: Re: Adding compression
- Previous by thread: Form Object Disposal Checking From Thread
- Next by thread: Re: Suspending Threads
- Index(es):