File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ \section{Thread State and the Global Interpreter Lock
348348global interpreter lock may operate on Python objects or call Python/C
349349API functions. In order to support multi-threaded Python programs,
350350the interpreter regularly releases and reacquires the lock --- by
351- default, every ten bytecode instructions (this can be changed with
351+ default, every 100 bytecode instructions (this can be changed with
352352\withsubitem {(in module sys)}{\ttindex {setcheckinterval()}}
353353\function {sys.setcheckinterval()}). The lock is also released and
354354reacquired around potentially blocking I/O operations like reading or
Original file line number Diff line number Diff line change @@ -394,8 +394,8 @@ \section{\module{sys} ---
394394\begin {funcdesc }{setcheckinterval}{interval}
395395 Set the interpreter's `` check interval'' . This integer value
396396 determines how often the interpreter checks for periodic things such
397- as thread switches and signal handlers. The default is \code {10 },
398- meaning the check is performed every 10 Python virtual instructions.
397+ as thread switches and signal handlers. The default is \code {100 },
398+ meaning the check is performed every 100 Python virtual instructions.
399399 Setting it to a larger value may increase performance for programs
400400 using threads. Setting it to a value \code {<=} 0 checks every
401401 virtual instruction, maximizing responsiveness as well as overhead.
Original file line number Diff line number Diff line change @@ -1361,7 +1361,7 @@ getrefcount(object Returns the reference count of the object. Generally one
13611361) higher than you might expect, because of object arg temp
13621362 reference.
13631363setcheckinterval( Sets the interpreter's thread switching interval (in number
1364- interval) of virtual code instructions, default:10 ).
1364+ interval) of virtual code instructions, default:100 ).
13651365settrace(func) Sets a trace function: called before each line ofcode is
13661366 exited.
13671367setprofile(func) Sets a profile function for performance profiling.
You can’t perform that action at this time.
0 commit comments