Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?
Daniel Dittmar
daniel.dittmar at sap.com
Fri Nov 3 04:27:05 EST 2006
robert wrote:
> I'd like to use multiple CPU cores for selected time consuming Python
> computations (incl. numpy/scipy) in a frictionless manner.
>
> Interprocess communication is tedious and out of question, so I thought
> about simply using a more Python interpreter instances
> (Py_NewInterpreter) with extra GIL in the same process.
If I understand Python/ceval.c, the GIL is really global, not specific
to an interpreter instance:
static PyThread_type_lock interpreter_lock = 0; /* This is the GIL */
Daniel
More information about the Python-list
mailing list