I am trying to create 86 instances of task.py to run simultaneously.
import sys
import subprocess
for file in range(86):
subprocess.call([sys.executable,'task.py',str(file)+'in.csv',str(filen)+'out.csv'])
I am trying to create 86 instances of task.py to run simultaneously.
import sys
import subprocess
for file in range(86):
subprocess.call([sys.executable,'task.py',str(file)+'in.csv',str(filen)+'out.csv'])
subprocess.call
waits for command to complete. Usesubprocess.Popen
instead: