import os import subprocess import time from multiprocessing import Process def f(name): os.system('python hhh_phantom.py') if __name__ == '__main__': for i in range(10): p = Process(target=f, args=('bob',)) p.start() # p. # p.join() # p.join()