def myThread_B(time_): time.sleep(time_) print('?? thread B-') print('?? thread B- Sleep 5s') time.sleep(5) print('?? thread B-Wake up') _thread.exit()