I'm planning a list of subprocesses of some.exe e.g.
max_processes = 4
proc_list = []
for i in range(100):
while len(proc_list) <= max_processes:
proc_list.append(subprocess.Popen(["some.exe", i]))
The processes should work in the background and the number of max_processes should constantly run. The std out of some.exe is not required.
This is a rough plan of what I'd like to do, is this even possible or do I have to rethink the whole concept?