15-112 Agenda 6-June

import time
from threading import Thread

def routine(i):
    for j in range(5):
        time.sleep(.0001)
        print(j)
    print("Thread %i is done!" % i)

for i in range(100):
    t = Thread(target=routine, args=(i,))
    t.start()