[Tutor] Thread deamon

Jorge Louis de Castro jobauk at hotmail.com
Mon Aug 22 14:02:10 CEST 2005


Ok, better question.

Are these two equivalent:

def run_server(socket):
     ...

1)
thread = Thread(target=run_server, args=(server,))
#thread.setDaemon(True)
thread.start()

2)
server.listen(1)
thread.start_new_thread(run_server,(server,))

So that I can uncomment the setDaemon() method?

chrs
j.




More information about the Tutor mailing list