G
Guest
Hello
I'm trying to avoid using the win32 api just to utilize the WaitForMultipleObjects call. Is there an eqivalent in c#
The reason is, I'm trying to kickoff multiple threads, then block until one, any or all of the threads has returned then continue some other task.
Psuedo Code
MAX = 1
count =
start main loop to kick off 100 thread
Increment coun
If count gte MAX thread
.....DO SOME(alot of) WAITING....
decrement coun
els
start new threa
end loo
.....DO SOME WAITING FOR REMAINIG THREADS TO COMPLETE....
cleanup and exi
I'm trying to avoid using the win32 api just to utilize the WaitForMultipleObjects call. Is there an eqivalent in c#
The reason is, I'm trying to kickoff multiple threads, then block until one, any or all of the threads has returned then continue some other task.
Psuedo Code
MAX = 1
count =
start main loop to kick off 100 thread
Increment coun
If count gte MAX thread
.....DO SOME(alot of) WAITING....
decrement coun
els
start new threa
end loo
.....DO SOME WAITING FOR REMAINIG THREADS TO COMPLETE....
cleanup and exi