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