Created
November 6, 2015 17:14
-
-
Save andrerocker/114f9cdecd119880784e to your computer and use it in GitHub Desktop.
python threads cpu gil
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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