J
JB
I'm wanting a loop that executes threads via BeginInvoke. The user can
control the number of threads they want, on the fly. Anybody know a good
scheme on how to do this? I was using the Interlocked class to increment
when I call BeginInvoke and a decrement when the thread was done, to know
when all of the threads are done executing, and the ammount of current
threads. This appears to fail sometimes, therefore I'm looking for a
different logic model. Any help would be great.
JB
control the number of threads they want, on the fly. Anybody know a good
scheme on how to do this? I was using the Interlocked class to increment
when I call BeginInvoke and a decrement when the thread was done, to know
when all of the threads are done executing, and the ammount of current
threads. This appears to fail sometimes, therefore I'm looking for a
different logic model. Any help would be great.
JB