[Python-Dev] Fixing the GIL (with a BFS scheduler)

Victor Stinner victor.stinner at haypocalc.com
Sun May 16 22:52:59 CEST 2010


Hi,

Le dimanche 16 mai 2010 22:07:06, Nir Aides a écrit :
> *Evolving the GIL into a scheduler*
> 
> The problem addressed by the GIL has always been *scheduling* threads to
> the interpreter, not just controlling access to it. The patches by Antoine
> and David essentially evolve the GIL into a scheduler, however both cause
> thread starvation or high rate of context switching in some scenarios (see
> data below).

I didn't followed last development around the GIL. Can you explain me why 
Python should have its own scheduler whereas each OS has already its own 
scheduler? The OS has useful informations to help scheduling that Python 
doesn't have. Linux and FreeBSD schedulers are faster each year since... 5 
years?, especially with multiple CPU/cores.

-- 
Victor Stinner
http://www.haypocalc.com/


More information about the Python-Dev mailing list