[mod_python] Re: mod_python

Graham Dumpleton graham.dumpleton at gmail.com
Wed Feb 20 15:27:00 EST 2008


There is only one GIL across all interpreters within the process.

On 20/02/2008, Jean-Nicolas Bes <jnbes at atreal.net> wrote:
> Graham Dumpleton wrote:
> > On 20/02/2008, Jean-Nicolas Bes <jnbes at atreal.net> wrote:
> >> Hi!
> >>
> >> I was wondering how mod_python manages to launch multiple python
> >> interpreters within the same process. I had a look at the source code,
> >> but I'll be pleased if someone could explain me quickly how it works.
> >
> > It inherits the main Python interpreter instance from the
> > Py_Initialize() call and It uses the Py_NewInterpreter() call to
> > create additional sub interpreters when required. See Python C API
> > documentation for more information.
>
>
> Yeah, I figured this out, but what I wanted to know if the GIL was
> common to every interpreter or if mod_python managed a separate GIL for
> every interpreter.
>
>
> Regards,
>         Jean-Nicolas.
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>


More information about the Mod_python mailing list