##// END OF EJS Templates
testing threading
testing threading

File last commit:

r159:160
r159:160
Show More
test6.py
12 lines | 253 B | text/x-python | PythonLexer
import threading
import datetime
class ThreadClass(threading.Thread):
def run(self):
now = datetime.datetime.now()
print "%s says Hello World at time: %s" % (self.getName(), now)
for i in range(2):
t = ThreadClass()
t.start()