Threads


#!/usr/bin/python
import thread, time

def Thread1():
while (1):
print "Ich bin thread !"
time.sleep(1)

thread.start_new_thread(Thread1, ())
print "about to call time.sleep(4)"
time.sleep(4)
print "just slept for 4 seconds"