using python interpreters per thread in C++ program

Grant Edwards grante at visi.com
Mon Sep 7 19:16:24 EDT 2009


On 2009-09-07, Mark Hammond <skippy.hammond at gmail.com> wrote:

>> CPython's GIL means that multithreading on multiple
>> processors/cores has limitations. Each interpreter has its own
>> GIL, so processor-intensive applications work better using the
>> multiprocessing module than with the threading module.
>
> I believe you will find the above is incorrect - even with
> multiple interpreter states you still have a single GIL.

Please explain how multiple processes, each with a separate
Python interpreter, share a single GIL.

-- 
Grant




More information about the Python-list mailing list