(threads, seconds)
| 16 | print basename(argv[0]), '<threads> <seconds>' |
| 17 | |
| 18 | def engine(threads, seconds): |
| 19 | print 'Suite starting at', ctime() |
| 20 | for thread in range(threads): |
| 21 | temp = Thread(target = threadWork) |
| 22 | temp.setDaemon(True) |
| 23 | temp.start() |
| 24 | sleep(seconds) |
| 25 | |
| 26 | def threadWork(): |
| 27 | while True: |