Feb-09-2018, 01:42 PM
Hi
I'm trying to play two function at same time but one of this two function works only one time
I'm trying to play two function at same time but one of this two function works only one time
import threading, time, sys class counter : def num(self): for i in range (60): print(i) time.sleep(.5) def handler(self): print(' Processing .. ') time.sleep(3) th1 = threading.Thread(target = counter().num).start() th2 = threading.Thread(target = counter().handler).start()