[Tutor] simple threads program

Andreas Zwinkau andi@buxach.de
Fri Jul 18 06:29:01 2003


I didn't really read your script, i must admit, but here is the shortest
usage of threading i can think of:

import thread
def my_thread():
	# do second thread things ...
	pass
thread.start_new_thread(my_thread, ())
# do first thread things ...
pass

Note: start_new() is obsolete, use start_new_thread()
I'm not very experienced, but it works for me this way :)

mfg
Andreas Zwinkau
 | web: andi.dasstellenwirinsinternet.de
 | mail: andi@buxach.de
 | jabber: beza1e1@amessage.de