Status of Python threading support (GIL removal)?

Aahz aahz at pythoncraft.com
Fri Jun 19 19:36:32 EDT 2009


In article <f9ff1a89-813b-4367-9e95-570ab2bac306 at h23g2000vbc.googlegroups.com>,
=?windows-1252?Q?Jure_Erzno=9Enik?=  <jure.erznoznik at gmail.com> wrote:
>On Jun 19, 11:59=A0pm, Jesse Noller <jnol... at gmail.com> wrote:
>> 
>> Sorry, you're incorrect. I/O Bound threads do in fact, take advantage
>> of multiple cores.
>
>Incorrect. They take advantage of OS threading support where another
>thread can run while one is blocked for I/O.  That is not equal to
>running on multiple cores (though it actually does do that, just that
>cores are all not well utilized - sum(x) < 100% of one core).  You wil
>get better performance running on single core because of the way GIL is
>implemented in all cases.

You should put up or shut up -- I've certainly seen multi-core speedup
with threaded software, so show us your benchmarks!
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"as long as we like the same operating system, things are cool." --piranha



More information about the Python-list mailing list