
February 19th, 2013, 04:36 AM
|
|
Registered User
|
|
Join Date: Feb 2013
Posts: 7
Time spent in forums: 3 h 1 m 4 sec
Reputation Power: 0
|
|
|
What happen if one of the two non-daemon threads completed
Hi,
If i spawn two threads in a python using this call
t1 = Thread(target = check_Input_Status_Action.thresholdCheck, args = (thresholdTime,))
t1.start()
t2 = Thread(target = check_Input_Status_Action.main, args = (sys.argv,))
t2.start()
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.
Thanks
|