Skip to content

Instantly share code, notes, and snippets.

@andrerocker
Created November 6, 2015 17:14
Show Gist options
  • Save andrerocker/114f9cdecd119880784e to your computer and use it in GitHub Desktop.
Save andrerocker/114f9cdecd119880784e to your computer and use it in GitHub Desktop.
python threads cpu gil
import threading
def cegela():
while True:
pass
map(lambda y: y.start(), map(lambda x: threading.Thread(target=cegela), range(0,4)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment