Question about thread

Valkyrie valkyrie at cuhk.edu.hk
Fri Nov 19 15:42:52 CET 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