Can python threads take advantage of use dual core ?
Alex Martelli
aleax at mac.com
Fri Aug 17 23:00:06 EDT 2007
Stefan Behnel <stefan.behnel-n05pAM at web.de> wrote:
...
> Which virtually all computation-intensive extensions do. Also, note the
gmpy doesn't (release the GIL), even though it IS computationally
intensive -- I tried, but it slows things down horribly even on an Intel
Core Duo. I suspect that may partly be due to the locking strategy of
the underlying GMP 4.2 library (which I haven't analyzed in depth). In
practice, when I want to exploit both cores to the hilt with gmpy-based
computations, I run multiple processes.
Alex
More information about the Python-list
mailing list