develooper Front page | perl.perl5.porters | Postings from January 2005

Re: Maintaining a pool of Perl interpreters

Thread Previous | Thread Next
From:
Stas Bekman
Date:
January 2, 2005 13:32
Subject:
Re: Maintaining a pool of Perl interpreters
Message ID:
41D86871.8010404@stason.org
Jeremy Redburn wrote:
> I am looking for an example of maintaining a persistent pool of Perl 
> interpreters for use from my C program. I've looked through the mod_perl 
> source code, but am a bit overwhelmed and as far as I can tell it seems 
> to maintain a single interpreter per Apache process. If anyone has any 
> advice or a pointer to examples, it will be greatly appreciated.

modperl1 (which I suppose you've looked at), as it seems you have 
realized, doesn't implement perl pools and the code is quite a mess.

mod_perl 2 does implement perl interpreter pools and the code is very 
clean and relatively clear (though could use more internal docs). Check 
the modperl_interp.[ch] in src/modules/perl in the mp2 distro:
http://perl.apache.org/download/index.html

Also see:
http://perl.apache.org/docs/2.0/devel/core/mod_perl_specific.html#Perl_Interpreters

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About