G
Guest
Hi White Spirit,
you should look at the AutoResetEvent / ManualResetEvent classes, these
are used for thread syncronization. The basic premise is that a thread is
not allowed to pass through the XXXResetEvent unless the WaitHandle is
signalled (i.e. opening the door) then threads can pass through.
http://msdn2.microsoft.com/en-us/library/system.threading.manualresetevent.aspx
In this way you can make your threads wait until they have some work to do.
Hope this helps.
Mark Dawson
http://www.markdawson.org
you should look at the AutoResetEvent / ManualResetEvent classes, these
are used for thread syncronization. The basic premise is that a thread is
not allowed to pass through the XXXResetEvent unless the WaitHandle is
signalled (i.e. opening the door) then threads can pass through.
http://msdn2.microsoft.com/en-us/library/system.threading.manualresetevent.aspx
In this way you can make your threads wait until they have some work to do.
Hope this helps.
Mark Dawson
http://www.markdawson.org