My understanding is that historically, the python Interpreter counted lines of code executed and switched threads after a fixed amount. This was then changed to being time dependent.
What I am trying to figure out is how is the time checked for the current threads running duration? Does time duration get called after every line is executed?
sysmodule). With the change to a time-based thread switch interval, I would guess that the check is still in the same place, at the top of the bytecode-executing loop, but I couldn't find it in a quick look.