import threadimport timedef print_time(threadName, delay): while 1: time.sleep(delay) print "%s: %s" % (threadName, time.ctime(time.time()))#Start threads to print time at different intervalsthread.start_new_thread(print_time, ("Thread01",2,))thread.start_new_thread(print_time, ("Thread02",4,))while 1: pass
Name (required)
email (will not be published) (required)
Website