[Baypiggies] GIL for dummies

Aahz aahz at pythoncraft.com
Fri Jun 12 22:09:25 CEST 2009


On Fri, Jun 12, 2009, Benjamin Sergeant wrote:
>
> I found that on reddit this morning, and it's very interesting for
> people like me who followed the GIL heated debates without really
> understanding a single bit ... the paper is very clear and based on
> one CPU bound program that perform (way) better in a single thread
> than in two threads (on a MacBook probably with 2 cores).
> 
> http://www.dabeaz.com/python/GIL.pdf

This is a good resource, but keep in mind that it's explaining why the
GIL has problems with CPU-bound threads rather than talking about
productive ways to write threaded programs in Python.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Many customs in this life persist because they ease friction and promote
productivity as a result of universal agreement, and whether they are
precisely the optimal choices is much less important." --Henry Spencer


More information about the Baypiggies mailing list