#import threading module
import threading
#import time module
import time
#define myThread function taking i as an argument
def myThread(i):
print("Thread {} starting".format(threading.currentThread().getName()))
time.sleep(10)
print("Thread {} ending".format(threading.currentThread().getName()))
for i in range(4):
pass
Comments
Leave a comment