Z
Zunbeltz Izaola
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
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