#!/usr/bin/python import time import threading import sys class TimeThread(threading.Thread): def run(self): while True: try: print time.strptime("30 Nov 00", "%d %b %y") except Exception: sys.exit() def main(argv): threads = [] for i in xrange(1, 500): threads.append(TimeThread()) for t in threads: t.start() for t in threads: t.join() if __name__ == "__main__": sys.exit(main(sys.argv[1:]))