Demo entry 6758170

python

   

Submitted by anonymous on Aug 09, 2018 at 13:49
Language: Python. Code size: 130 Bytes.

from multiprocessing import Pool
def f(x):
    ...
if __name__ == '__main__':
    with Pool(4) as p:
        p.map(f, x_list)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).