Status of Python threading support (GIL removal)?

Ross Ridge rridge at csclub.uwaterloo.ca
Sat Jun 20 01:46:31 CEST 2009


Jesse Noller <jnol... at gmail.com> wrote:
> Sorry, you're incorrect. I/O Bound threads do in fact, take advantage
> of multiple cores.

<jure.erznoznik at gmail.com> wrote:
>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.

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

By definition an I/O bound thread isn't CPU bound so won't benefit from
improved CPU resources.

					Ross Ridge

-- 
 l/  //	  Ross Ridge -- The Great HTMU
[oo][oo]  rridge at csclub.uwaterloo.ca
-()-/()/  http://www.csclub.uwaterloo.ca/~rridge/ 
 db  //	  



More information about the Python-list mailing list