Question: Use only Python Programming for this question. 5. Study the code below and answer the following questions: 1 2 import threading, time 3 def i_am_alive():

Use only Python Programming for this question.
5. Study the code below and answer the following questions: 1 2 import threading, time 3 def i_am_alive(): print("i am alive") 4 5 6 if _name__ _main__": thd = threading.Thread(target=i_am_alive) 7 8 9 10 11 12 13 14 # 1 alive? thd.start() # 2 alive? thd.join() # 3 alive? # thd.start() ? o At each of the lines marked #1, #2 and #3, can you determine if the thd object is alive or not? And how to prove its different state during those lines? o Can the same thd object starts the second time at line 14? And why
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
