zhanghaitao1
7/16/2018 - 9:25 AM

multiprocessing with different function

multiprocessing with different function

def run_parallel():
    for fname in ['avg','std','relative_avg','relative_std','corrRetTurnover']:
        p=multiprocessing.Process(target=eval(fname))
        p.start()