Created
August 10, 2014 06:41
-
-
Save sanfx/14ba658d61da8c2ee498 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from multiprocessing import Pool | |
def calculate(number): | |
return number | |
if __name__ == '__main__': | |
pool = Pool() | |
result = pool.map(calculate, range(4)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment