Can python threads take advantage of use dual core ?

Diez B. Roggisch deets at nospam.web.de
Fri Aug 17 12:08:27 EDT 2007


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. But a certain tradeoff is to expected 
nontheless.

Diez



More information about the Python-list mailing list