Sleeping threads

Marcel Lanz marcel.lanz at isoe.ch
Sat Apr 17 13:11:41 EDT 1999


Matthew Robert Gallagher wrote:
> 
> I've been looking at threads and time but how do you sleep threads

hi,
if you use low-level threads:
simply sleep with the time.sleep() method in the thread-method you
choosed.

import time, thread
...
...
def x():
 print 'too high'
 time.sleep(0.5)

thread.start_new_thread(x, ())

greetings
	marcel




More information about the Python-list mailing list