T
Torsten Marek
Hello to all,
I have a simple question about threads in Python. I am starting a
number of threads in my program and I want print out the amount of time
needed after all threads stopped. Do I need to explictly join the
threads, set a condition or is it possible to somehow work with
try/finally like that:
try:
for i in range(0, num_threads):
s = MyThread()
s.start()
finally:
print "all threads finished"
Thanks in advance
Torsten
I have a simple question about threads in Python. I am starting a
number of threads in my program and I want print out the amount of time
needed after all threads stopped. Do I need to explictly join the
threads, set a condition or is it possible to somehow work with
try/finally like that:
try:
for i in range(0, num_threads):
s = MyThread()
s.start()
finally:
print "all threads finished"
Thanks in advance
Torsten