|
Home > Archive > Apache Mod-Python > February 2006 > For the curious : how mod_perl handles threading
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
For the curious : how mod_perl handles threading
|
|
|
|
| Gregory (Grisha) Trubetskoy 2006-02-13, 5:49 pm |
|
On Mon, 13 Feb 2006, Nicolas Lehuen wrote:
> http://perl.apache.org/docs/2.0/use...Threads_Support
Which part of it - the pool of interpreters? Are they doing it out of
necessity, i.e. there is no way to run multiple threads in PERL like we do
in Python because of Python's GIL?
Grisha
| |
| Nicolas Lehuen 2006-02-14, 2:46 am |
| It seems that bu dfdefault PERL is not thread safe, and that they have
to jump through all those hoops to ensure thread safety. There is no
real lesson for mod_python, I just wanted to know how they solved this
rather difficult problem.
Not instantiating one interpreter per name per thread and using an
interpreter pool may be an interesting optimisation, though. But I
guess it's a rather complicated one.
Regards,
Nicolas
2006/2/13, Gregory (Grisha) Trubetskoy <grisha@apache.org>:
>
> On Mon, 13 Feb 2006, Nicolas Lehuen wrote:
>
t[vbcol=seagreen]
>
> Which part of it - the pool of interpreters? Are they doing it out of
> necessity, i.e. there is no way to run multiple threads in PERL like we d=
o
> in Python because of Python's GIL?
>
> Grisha
>
|
|
|
|
|