Question about thread

Valkyrie valkyrie at cuhk.edu.hk
Fri Nov 19 09:42:52 EST 2004


Refering to the following codes I found, there is nothing displayed in the
console, may I ask why?

def thrd(param): # the thread worker function
    print "Received",param

import thread
for i in range(5): # start five threads passing i to each one
    thread.start_new_thread(thrd,(i,))

Thanks in advance



More information about the Python-list mailing list