Skip to content

Instantly share code, notes, and snippets.

View petzel's full-sized avatar
💭
🗺💻🏍🎣🍺

Eric Petzel petzel

💭
🗺💻🏍🎣🍺
  • San Francisco, CA
View GitHub Profile
@petzel
petzel / multipro_template.py
Created April 13, 2021 09:51 — forked from blaylockbk/multipro_template.py
Template for Python multiprocessing and multithreading
import multiprocessing #:)
def do_this(number):
print number
return number*2
# Create a list to iterate over.
# (Note: Multiprocessing only accepts one item at a time)
some_list = range(0,10)