'''
1. create a class that inherits from threading.Thread
2. overwrite "run"
3. create its object
4. start the object
'''
import threading
import time
class MyThread(threading.Thread):
def run(self):
print('I am %s\t'%(self.name))
time.sleep(1)
for i in range(5):
t = MyThread()
t.start()