import threading
import time
 
def a():
    th = threading.Thread(target=b)
    th.start()
 
def b():
    time.sleep(2)
    print('end b')
 
a()
print('end a')
time.sleep(4)
print('end main')
