Python threads and Numeric/SciPy exploit Dual Core ?

Robert Kern robert.kern at
Mon Oct 2 19:01:42 CEST 2006

robert wrote:
> Fredrik Lundh wrote:
>> "robert" wrote:
>>> Simple Python code obviously cannot use the dual core by Python threads.
>>> Yet, a program drawing CPU mainly for matrix computations - preferably
>>> with Numeric/SciPy -  will this profit from a dual core when using 2 (or
>>> more) Python threads?
>> as long as the binding releases the GIL, sure.
> Thus - does Numeric/SciPy release it?

Depends. Some of the linear algebra functions in scipy do. Most operations do 
not. People are looking at adding more.

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

More information about the Python-list mailing list