Threading unfairness

James J. Besemer jb at cascade-sys.com
Tue May 21 00:43:16 EDT 2002


Peter Hansen wrote:

> We had been unthinkingly using time.sleep(0.01) for a while, just
> kind of blindly using it as a free "yield timeslice".

Too bad there is no such implementation for this useful function.

It'd be great if time.sleep(0) did the job.  Or even better would be if there was
an explicit thread.yield().

--jb

--
James J. Besemer  503-280-0838 voice
http://cascade-sys.com  503-280-0375 fax
mailto:jb at cascade-sys.com







More information about the Python-list mailing list