star_new_thread

worlman385 at yahoo.com worlman385 at yahoo.com
Mon Feb 12 19:45:10 EST 2007


Simpified the code to use FUNCTION only without CLASS 
http://chiu424.hypermart.net/code5-demo2.py.txt (short version)

the above code start a new thread to run the function that send /
receive data to socket, but still hangs at the timeout_h function
forever

==================================
http://chiu424.hypermart.net/code5i.py.txt (full version)
above used threads to send /receive data to socket, will hang at
function timeout_h forever

ANYONE KNOWS WHY?????

==================================
http://chiu424.hypermart.net/code5j.py.txt (full version)
above used single thread and it can receive and send data at the same
socket at same time 

ANY ONE KNOWS why the one with 2 threads doesn't work ??????

thank you 



More information about the Python-list mailing list