Skip to content

Instantly share code, notes, and snippets.

@xd547
Created November 15, 2014 08:12
Show Gist options
  • Select an option

  • Save xd547/30ae513e063de7535d26 to your computer and use it in GitHub Desktop.

Select an option

Save xd547/30ae513e063de7535d26 to your computer and use it in GitHub Desktop.
from multiprocessing import Pool
def loop(x):
while True:
pass
Pool().map(loop, range(100))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment