Skip to content

Instantly share code, notes, and snippets.

@Torxed
Created April 13, 2016 07:16
Show Gist options
  • Save Torxed/8cbe5ac75e7098f13ed73949acfeec9c to your computer and use it in GitHub Desktop.
Save Torxed/8cbe5ac75e7098f13ed73949acfeec9c to your computer and use it in GitHub Desktop.
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