Created
April 13, 2016 07:16
-
-
Save Torxed/8cbe5ac75e7098f13ed73949acfeec9c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from threading import * | |
from time import sleep | |
import uuid | |
class worker(Thread): | |
def __init__(self): | |
Thread.__init__(self) | |
self.start() | |
def run(self): | |
x = uuid.uuid1().hex | |
sleep(60) | |
for i in range(1000000): | |
worker() | |
while len(enumerate()) > 2: | |
sleep(3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment