<reponame>bx3/perigee-bandit
import multiprocessing
import os

def run_process(cmd):
    os.system(cmd)

def run_cmds(cmds,noJobs):
    #cmds is a tuple of strings
    #noJobs is a an integer with the no of Jobs to run in parallel
    p = multiprocessing.Pool(noJobs)
    p.map(run_process,cmds)

import multiprocessing
import os

def run_process(cmd):
    os.system(cmd)

def run_cmds(cmds,noJobs):
    #cmds is a tuple of strings
    #noJobs is a an integer with the no of Jobs to run in parallel
    p = multiprocessing.Pool(noJobs)
    p.map(run_process,cmds)
#cmds is a tuple of strings #noJobs is a an integer with the no of Jobs to run in parallel