Python threading (was: Re: global interpreter lock not working as it should)

Martin v. Loewis martin at
Sun Aug 4 21:34:29 CEST 2002

a-steinhoff at (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.


More information about the Python-list mailing list