All pastes #766092 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-11-08 16:45 UTC
rendered paste body
import threading, time

class Worker(threading.Thread):
        def run(self):
                lock = threading.Lock()
                lock.acquire()
                print self.setName
                time.sleep(10)
                lock.release

for i in range(10):
        Worker().start()