Miscellany
public text v1 · immutableimport 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()