February 19th, 2013, 05:36 AM
What happen if one of the two non-daemon threads completed
If i spawn two threads in a python using this call
t1 = Thread(target = check_Input_Status_Action.thresholdCheck, args = (thresholdTime,))
t2 = Thread(target = check_Input_Status_Action.main, args = (sys.argv,))
Both of them are called inside the main method.
Out of the two threads if one of them gets completed and i called sys.exit(0) inside the main method than what would happen to the other thread does that killed automatically ?
Please help me out in this.