Thread performance on Python 2.6
Jan Kaliszewski
zuo at chopin.edu.pl
Thu Dec 31 07:39:45 EST 2009
31-12-2009 Rodrick Brown <rodrick.brown at gmail.com> wrote:
> I started dabbling with threads in python and for some odd reason the
> performance seems extremely poor on my 2 core system.
> It this a simplified version spawn 2 threads write some data to a file
> and time the results vs doing the same sequentially.
> Why is the performance so much slower with the threaded version?
I suppose here is the answer: http://www.dabeaz.com/python/GIL.pdf
(anyway -- very interesting material).
AFAIU, in Python 3.2 some of the problems will be corrected (though GIL
itself stays alive) -- see:
http://docs.python.org/dev/py3k/whatsnew/3.2.html#multi-threading
Cheers,
*j
More information about the Python-list
mailing list