Can python threads take advantage of use dual core ?

Stefan Behnel stefan.behnel-n05pAM at
Fri Aug 17 18:13:24 CEST 2007

Diez B. Roggisch wrote:
> nikhilketkar schrieb:
>> What are the implications of the Global Interpreter Lock in Python ?
>> Does this mean that Python threads cannot exploit a dual core
>> processor and the only advantage of using threads is in that
>> computation and IO-bound operations can continue in parallel ?
> Essentially, yes. That is unless the computation is done in C-code which
> released the GIL beforehand.

Which virtually all computation-intensive extensions do. Also, note the
processing package, which allows you to use a separate process more or less
like a thread, thus avoiding GIL issues completely.


More information about the Python-list mailing list