Re: Modperl with threads
Mithun Bhattacharya <[email protected]> Thu, 19 Dec 2024 16:10:01 -0600
| Newsgroups | gmane.comp.apache.mod-perl |
|---|---|
| Message-ID | <CAHTPV9LS29Uyob8H430=BVrMCvxVxQhsd+FhMiXCXKAR=W24GA@mail.gmail.com> |
--00000000000044f3d00629a6cb91 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=E2=80=AFPM Ed Sabol <[email protected]> wro= te: > On Dec 19, 2024, at 12:47 PM, Bitfox <[email protected]> wrote: > > Mod_perl doesn=E2=80=99t 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 <[email protected]> for some clues as to how. > I haven't done it myself, but Joe says it is possible (and the performanc= e > 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 > > --00000000000044f3d00629a6cb91 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><p dir=3D"ltr">I think the bigger problem is that not all= of the Perl modules are thread safe.</p><p dir=3D"ltr">Has DBI itself beco= me thread safe or is it still a great area ?</p></div><br><div class=3D"gma= il_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Th= u, Dec 19, 2024, 3:46=E2=80=AFPM Ed Sabol <<a href=3D"mailto:edwardjsabo= [email protected]">[email protected]</a>> wrote:<br></div><blockquote cla= ss=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid = rgb(204,204,204);padding-left:1ex">On Dec 19, 2024, at 12:47 PM, Bitfox <= ;<a href=3D"mailto:[email protected]" target=3D"_blank" rel=3D"noreferrer"= >[email protected]</a>> wrote:<br> > Mod_perl doesn=E2=80=99t support threads, am I right?<br> <br> If you mean mod_perl with ithreads and using the Apache mpm_event module, t= hen that's incorrect, I think. Search the archives of this mailing list= for posts by Joe Schaefer <<a href=3D"mailto:[email protected]" target= =3D"_blank" rel=3D"noreferrer">[email protected]</a>> 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 i= s that it's not exactly trivial to set up and may involve compiling Per= l with custom options, iirc.<br> <br> Regards,<br> Ed<br> <br> </blockquote></div> --00000000000044f3d00629a6cb91--