theads & global namespaces
ze5yr
ze5yr at p98.f112.n480.z2.fidonet.org
Thu Jul 1 12:32:47 EDT 1999
From: ze5yr <ze5yr at my-deja.com>
In article <7ldqi2$nc1$1 at nnrp1.deja.com>,
rdev at my-deja.com wrote:
> - If you're running on Solaris, the thread won't get to run
> unless you give up some time. So try putting a time.sleep(.001)
> into your while loop. On NT, this is not necessary (don't know
> why.)
It works on NT, but the looping thread will eat up horrendous amounts
of CPU time (at least it does if under pthreads, don't know if Python
threads would do the same). So it's a good idea to use time.sleep
under NT as well.
--
Cliff Crawford -><-
http://www.people.cornell.edu/pages/cjc26
empty-handed I go,
)O( and behold the spade is in my hands
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
More information about the Python-list
mailing list