W
Wernt Me
I need to run an arbitrary number of external executables, with as many as
possible running concurrently.
I have an exaggerated example. Let's say I have a billion processes to create
from arbitrary executables. I want to run the first n that will be able to
run without exhausting storage, then the next n, etc. Each process requires 2
threads one for the process and it's output and the other for it's error
stream.
How can I determine how many processes I should try to create at a time?
possible running concurrently.
I have an exaggerated example. Let's say I have a billion processes to create
from arbitrary executables. I want to run the first n that will be able to
run without exhausting storage, then the next n, etc. Each process requires 2
threads one for the process and it's output and the other for it's error
stream.
How can I determine how many processes I should try to create at a time?