def main():
    ' Setup environment\n    '
    core_num = int(((multiprocessing.cpu_count() * 4) / 5))
    print(('Using %d cores' % core_num))
    with multiprocessing.Pool(core_num) as p:
        runs = [i for i in p.imap_unordered(work, range(10))]
    plot_runs(runs)
Setup environment
def main():
    ' \n    '
    core_num = int(((multiprocessing.cpu_count() * 4) / 5))
    print(('Using %d cores' % core_num))
    with multiprocessing.Pool(core_num) as p:
        runs = [i for i in p.imap_unordered(work, range(10))]
    plot_runs(runs)