#!/usr/bin/python import threading, time for x in xrange(30): print x threading.Thread(target=time.sleep, args=[1]).start()