wollez at gmx.net
Fri Aug 10 13:38:28 CEST 2007
> I'm starting some subprocesses inside a loop. The processes run
> independent and dont need any communication between each other. Due to
> memory issues I need to limit the number of running processes to around
> 10. How can I insert a break into my loop to wait until some processes
> are finished?
> Some minimal examplecode:
> import subprocess
> for i in range(0,100):
> cmd='ping localhost'
> Thanks for any ideas.
Problem solved by using "threading"
More information about the Python-list