Mailing List Archive

Sleeping threads
I've been looking at threads and time but how do you sleep threads
Sleeping threads [ In reply to ]
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