Will Python 3.0 remove the global interpreter lock (GIL)

TheFlyingDutchman zzbbaadd at aol.com
Tue Sep 18 21:09:26 EDT 2007


On Sep 2, 5:38 pm, "Eduardo O. Padoan" <eduardo.pad... at gmail.com>
wrote:
> > No.http://www.artima.com/weblogs/viewpost.jsp?thread=211430
>
> Ops, I meant:http://www.artima.com/forums/threaded.jsp?forum=106&thread=211200
>
> --http://www.advogato.org/person/eopadoan/
> Bookmarks:http://del.icio.us/edcrypt

"No. We're not changing the CPython implementation much. Getting rid
of the GIL would be a massive rewrite of the interpreter because all
the internal data structures (and the reference counting operations)
would have to be made thread-safe. This was tried once before (in the
late '90s by Greg Stein) and the resulting interpreter ran twice as
slow."

How much faster/slower would Greg Stein's code be on today's
processors versus CPython running on the processors of the late
1990's? And if you decide to answer, please add a true/false response
to this statement - "CPython in the late 1990's ran too slow".




More information about the Python-list mailing list