Global Interpreter Lock

Ian Crawford codic at stasis.org
Wed Sep 11 16:11:48 EDT 2002


Hi everyone,
    I'm working on a project with an embedded Python
interpreter which I'd like to be capable of parallel
execution on a multi-processor machine.  I'm still
trying to figure out one thing in particular.  Is
there a global interpreter lock per interpreter (i.e.
if I call Py_NewInterpreter, does that interpreter
have it's own lock), or will I have to embed seperate
interpreters in their own processes to have parallel
execution?

Thanks,

Andrew



More information about the Python-list mailing list