Skip to content

Instantly share code, notes, and snippets.

@th0m
Last active August 29, 2015 14:14
Show Gist options
  • Save th0m/352f57ff3a4dadf0296b to your computer and use it in GitHub Desktop.
Save th0m/352f57ff3a4dadf0296b to your computer and use it in GitHub Desktop.
While not challenge
#!/usr/bin/env python
from multiprocessing import Pool
import sys
p = [1, 2]
def a(n):
if n is 1:
sys.exit(1)
t = Pool(2)
t.map(a, p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment