[Tutor] time.sleep problems

Daniel Yoo dyoo@hkn.eecs.berkeley.edu
Sun, 19 Nov 2000 02:32:06 -0800 (PST)


On Sat, 18 Nov 2000, Glen Wheeler wrote:

> Hey guys.  I was just fiddling with threads and my code kept locking
> up.  So I deicided to strip down the code.  I did so, and it still
> locks up.  I think the culprit is the time.sleep command.  The code
> has been stripped to very simple (actually it as simple before too,
> but it kept erroring on me)

Hmmm... Strange!  I tried it on my Linux machine, and it appears to work
ok.  Can you remove the time.sleep() command and see if it locks up
still?  It's very possible that Python 2.0 has a glitch with its threads,
so let's make sure that sleep() really is causing the problem.