[Tutor] Differences in running a multithreaded script under IDLE and otherwise
Hans.Dushanthakumar at navman.com
Thu Aug 25 06:28:25 CEST 2005
While running the foll script by double-clicking it (under WinXP), it
runs as expected. However, when I run it via IDLE, it hangs after a few
secs (no runtime errors - just hangs). Why does this happen?
num = ''
def __init__(self, local_num):
num = local_num
print "__init__: ", num
for k in range (20):
print "run: ", num
num = num + 1
incr_num_thread = incr_num(501)
print "Wait for thread to finish"
print "Thread finished"
More information about the Tutor