You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Bitfox <hi...@bitfox.ddns.net> on 2024/12/19 17:47:12 UTC

Modperl with threads

Mod_perl doesn’t support threads, am I right?
This may limit its capabilities from my view.
Any alternative stack?

Thanks

Re: Modperl with threads

Posted by Ruben Safir <ru...@mrbrklyn.com>.
it has had thread for many years to my knowledge


On Fri, Dec 20, 2024 at 01:47:12AM +0800, Bitfox wrote:
> Mod_perl doesn’t support threads, am I right?
> This may limit its capabilities from my view.
> Any alternative stack?
> 
> Thanks

-- 
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com 

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive 
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com 

Being so tracked is for FARM ANIMALS and extermination camps, 
but incompatible with living as a free human being. -RI Safir 2013


Re: Modperl with threads

Posted by Ed Sabol <ed...@gmail.com>.
On Dec 19, 2024, at 5:10 PM, Mithun Bhattacharya <mi...@gmail.com> wrote:
> Has DBI itself become thread safe or is it still a great area ?

AFAIK, as long as each thread instantiates it's own handle, it should work. I don't believe you can share the same DBI handle between multiple threads.

Regards,
Ed


Re: Modperl with threads

Posted by Mithun Bhattacharya <mi...@gmail.com>.
I think the bigger problem is that not all of the Perl modules are thread
safe.

Has DBI itself become thread safe or is it still a great area ?

On Thu, Dec 19, 2024, 3:46 PM Ed Sabol <ed...@gmail.com> wrote:

> On Dec 19, 2024, at 12:47 PM, Bitfox <hi...@bitfox.ddns.net> wrote:
> > Mod_perl doesn’t support threads, am I right?
>
> If you mean mod_perl with ithreads and using the Apache mpm_event module,
> then that's incorrect, I think. Search the archives of this mailing list
> for posts by Joe Schaefer <jo...@sunstarsys.com> for some clues as to how.
> I haven't done it myself, but Joe says it is possible (and the performance
> is much, much better than mpm_prefork), but my understanding is that it's
> not exactly trivial to set up and may involve compiling Perl with custom
> options, iirc.
>
> Regards,
> Ed
>
>

Re: Modperl with threads

Posted by Ed Sabol <ed...@gmail.com>.
On Dec 19, 2024, at 12:47 PM, Bitfox <hi...@bitfox.ddns.net> wrote:
> Mod_perl doesn’t support threads, am I right?

If you mean mod_perl with ithreads and using the Apache mpm_event module, then that's incorrect, I think. Search the archives of this mailing list for posts by Joe Schaefer <jo...@sunstarsys.com> for some clues as to how. I haven't done it myself, but Joe says it is possible (and the performance is much, much better than mpm_prefork), but my understanding is that it's not exactly trivial to set up and may involve compiling Perl with custom options, iirc.

Regards,
Ed