All,
I've been looking all day and I haven't been able to find an answer (at least one that I can understand).
The problem is simply that in a business process I have to execute the same Exe say 12 times with different parameters. The number of times will vary depending on circumstances.
Instead of running these 12 Exes sequentially, I would like to run them asynchronously. Say 3 at a time.
I'm used to spinning new threads, what I can't seem to understand is how do I control the number of running threads and when one completes how to loop around and execute the next executable with a new set of arguments.
Can someone point me in the right direction or give me an example on how to do this?
* Sine scientia ars nihil est
* Respondeat superior
I've been looking all day and I haven't been able to find an answer (at least one that I can understand).
The problem is simply that in a business process I have to execute the same Exe say 12 times with different parameters. The number of times will vary depending on circumstances.
Instead of running these 12 Exes sequentially, I would like to run them asynchronously. Say 3 at a time.
I'm used to spinning new threads, what I can't seem to understand is how do I control the number of running threads and when one completes how to loop around and execute the next executable with a new set of arguments.
Can someone point me in the right direction or give me an example on how to do this?
* Sine scientia ars nihil est
* Respondeat superior