Im trying to run a single external program with multiple arguments in python. For that I use something like
for i in range(10):
subprocess.Popen(["./foo", i])
The processes are completly independent. Nevertheless, they run only on a single core on my Mac OS X. Is there a simple way to distribute the processes over all cores (4 in my case)?
Below is an example of a program that uses multiprocessing to convert several pictures in parallel;