time and thread modules.
Aahz
aahz at pythoncraft.com
Thu Oct 10 12:25:14 EDT 2002
In article <mailman.1034263815.6731.python-list at python.org>,
<sismex01 at hebmex.com> wrote:
>
>Does invoking time.sleep() automagically allow a thread switch in
>Python?
Depends. time.sleep() with a non-zero value causes the current thread
to block because time.sleep() uses select() to do its dirty work -- but
that doesn't mean any other thread will run.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
Project Vote Smart: http://www.vote-smart.org/
More information about the Python-list
mailing list