[mod_python] Re: mod_python

Jean-Nicolas Bes jnbes at atreal.net
Wed Feb 20 06:39:53 EST 2008


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.



More information about the Mod_python mailing list