svystun-taras's picture
created the updated web ui
0fdb130
raw
history blame
219 Bytes
from multiprocessing import Pool, freeze_support, cpu_count
def f(x, y):
return x*x + y
if __name__ == '__main__':
with Pool(5) as p:
print(p.starmap(f, [[1, 1], [2, 1],[3, 1]]))
print(cpu_count())