Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from multiprocessing import Pool
- pool = Pool(processes=2) # define number of processes
- results = [pool.apply(loop_a) for x in range(2)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement