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.

Stefan
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to