| Python 2.2 für Einsteiger | ||
|---|---|---|
| <<< Previous | Einführung anhand von Beispielen | Next >>> |
#!/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"
| <<< Previous | Home | Next >>> |
| File Lock | Up | HTTP-Server mit CGI |