Skip to content

Instantly share code, notes, and snippets.

View IanChen83's full-sized avatar

Ian Chen IanChen83

  • Taipei, Taiwan
View GitHub Profile
@IanChen83
IanChen83 / mp.py
Created March 13, 2018 17:54 — forked from NelsonMinar/mp.py
multiprocessing Pool example
#!/usr/bin/env python2
"Demonstrate using multiprocessing.Pool()"
import multiprocessing, time, logging, os, random, signal, pprint, traceback
logging.basicConfig(level=logging.DEBUG)
_L = logging.getLogger()
class JobTimeoutException(Exception):