PyDocs

Nav

Python Runtime Services

setswitchinterval

sys

function · Added in 3.2
  • setswitchinterval(interval)
Set the ideal thread switching delay inside the Python interpreter.

The actual frequency of switching threads can be lower if the
interpreter executes long sequences of uninterruptible code
(this is implementation-specific and workload-dependent).

The parameter must represent the desired switching delay in seconds
A typical value is 0.005 (5 milliseconds).
0 Examples
No examples for sys/setswitchinterval.
See Also
No see-alsos for sys/setswitchinterval
0 Notes
No notes for setswitchinterval