sys.setcheckinterval query

Aahz aahz at pythoncraft.com
Wed Jul 23 00:01:50 EDT 2003


In article <84fc4588.0307201255.254582df at posting.google.com>,
Anand Pillai <pythonguy at Hotpop.com> wrote:
>
>"""
>setcheckinterval(interval)
> Set the interpreter's ``check interval''. This integer value
>determines how often the interpreter checks for periodic things such
>as thread switches and signal handlers. The default is 10, meaning the
>check is performed every 10 Python virtual instructions. Setting it to
>a larger value may increase performance for programs using threads.
>Setting it to a value <= 0 checks every virtual instruction,
>maximizing responsiveness as well as overhead.
>"""

Note that Python 2.3 changes the default to 100, so be careful about
hard-coding anything.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

This is Python.  We don't care much about theory, except where it intersects 
with useful practice.  --Aahz




More information about the Python-list mailing list