I have a computer with 32 (physical) cores and need to run a total of 10,000 statistical simulations. Each simulation is started with:
> program.exe "scriptName.txt"
where 'scriptName.txt' is 'script1.txt' , 'script2.txt', etc.
The program automatically quits after completion, but each program has a varying runtime.
Now my question: I have found information on how to start programs sequentially as well as simultaneously (using batch files), but does anyone know how to start 10,000 programs in groups of 32? The idea is to run 32 programs simultaneously, and whenever a program quits, a new one should be opened automatically in order for the 32 available cores to be efficiently used.