Python Basics8(Threading)
import threading.*;
class Thread1(threading.thread) :
def run(self) :
for i in range(10) :
print("thread1"+str(i));
time.sleep(2);
t1=Thread1();
t1.start();
class Thread1(threading.thread) :
def run(self) :
for i in range(10) :
print("thread1"+str(i));
time.sleep(2);
t1=Thread1();
t1.start();
Comments
Post a Comment