Python threading (was: Re: global interpreter lock not working as it should)
Martin v. Loewis
martin at v.loewis.de
Sun Aug 4 15:34:29 EDT 2002
a-steinhoff at web.de (Armin Steinhoff) writes:
> > Just because they're POSSIBLE
> > doesn't mean they necessarily HAPPEN. It just means the OS's
> > scheduler can decide to switch threads there if it wants to. It might
> > not want to.
>
> Interesting :) IMHO, scheduler rules are event (IRQ, timers) and
> priority driven ... so there is no room for 'may or may not'
There is certainly room. If priorities are adjusted dynamically, it is
difficult to predict whether a thread switch will occur - since the
priorities may change depending on other load of the system.
Regards,
Martin
More information about the Python-list
mailing list