threads
Zunbeltz Izaola
zunbeltz at wm.lc.ehu.es.XXX
Tue Nov 11 09:35:09 EST 2003
Hi
I have create two threads (from threading module). I want to
synchronize this two in the folowwing way
def Threa1func():
do stuff..
while something
if test:
CHANGE TO Thread2
do stuff...
def Thread2func():
do stuff ...
CHANGE TO Thread1
Thread1 = threading.Thread(target=Thread1func)
Thread2 = threading.Thread(target=Thread2func)
them i've started this two threads
Thread1.start()
Thread2.start()
I want to know if it is posible to do this CHANGE of threads.
thanks in advance
Zunbeltz
--
Remove XXX from email: zunbeltz at wm.lc.ehu.esXXX
More information about the Python-list
mailing list