diff options
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/api/init.tex | 2 | ||||
-rw-r--r-- | Doc/lib/libsys.tex | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/api/init.tex b/Doc/api/init.tex index 44bfa3e..f7d797c 100644 --- a/Doc/api/init.tex +++ b/Doc/api/init.tex @@ -348,7 +348,7 @@ Therefore, the rule exists that only the thread that has acquired the global interpreter lock may operate on Python objects or call Python/C API functions. In order to support multi-threaded Python programs, the interpreter regularly releases and reacquires the lock --- by -default, every ten bytecode instructions (this can be changed with +default, every 100 bytecode instructions (this can be changed with \withsubitem{(in module sys)}{\ttindex{setcheckinterval()}} \function{sys.setcheckinterval()}). The lock is also released and reacquired around potentially blocking I/O operations like reading or diff --git a/Doc/lib/libsys.tex b/Doc/lib/libsys.tex index 8a60cb2..558fb36 100644 --- a/Doc/lib/libsys.tex +++ b/Doc/lib/libsys.tex @@ -394,8 +394,8 @@ else: \begin{funcdesc}{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 \code{10}, - meaning the check is performed every 10 Python virtual instructions. + as thread switches and signal handlers. The default is \code{100}, + meaning the check is performed every 100 Python virtual instructions. Setting it to a larger value may increase performance for programs using threads. Setting it to a value \code{<=} 0 checks every virtual instruction, maximizing responsiveness as well as overhead. |