regluit/sysadmin/loadtest.py

12 lines
260 B
Python

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(10):
t = ThreadClass()
t.start()