yielding control
Benjamin Binford
bbin__ at hotmail.com
Tue Oct 15 13:03:11 EDT 2002
On Wed, 16 Oct 2002 00:35:41 +0800, Rob Hall wrote:
> I have a long-running CPU intensive task under W98 and Python 2.2. The
> trouble is, it hogs the CPU when I am trying to do other things. Even the
> mouse is sluggish.
>
> Is there a way for me to yield control to the OS occasionally in my main
> loop?
>
lookup time.sleep
(http://www.python.org/doc/current/lib/module-time.html#l2h-1385)
> Thanks in advance.
>
> Rob
More information about the Python-list
mailing list