[Israel.pm] Threads under mod perl
Semuel Fomberg
semuelf at 012.net.il
Mon Jul 3 01:00:37 EEST 2006
Hello There.
Maybe you should look into Apache::TIPool.
Mod_perl holds all the threads for itself,
And with this module you can ask for one.
I found it referenced in the documentations, but couldn't find the
module itself. (and I don't have mod_perl installed to test it)
The main reason why I hate mod_perl is because of it's useless docs.
Well, have fun.
Update: from searches, it seems that TIPool wasn't implemented.
Please don't take notice of my message.
I hate mod_perl.
Semuel.
> -----Original Message-----
> From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il] On
Behalf
> Of Qasem Sweilem
> Sent: Sunday, July 02, 2006 5:37 PM
> To: perl at perl.org.il
> Subject: [Israel.pm] Threads under mod perl
>
> Hi,
>
> I have a problem running threads under mod perl. I always get a "zero
> sized reply" in the browser.
>
> It works fine under normal cgi.
>
> Note: I have perl 5.8.6 and Apache2.0 with mod-perl2.0.2
>
> when typing: perl -V:useithreads -V:usemultiplicity
> I get: useithreads='define';
> usemultiplicity='define';
>
> Here the simple test script im trying to run:
>
> --------------------
> use threads;
>
> $thr = threads->new(\&sub1);
> @ReturnData = $thr->join;
>
> print "Thread returned @ReturnData \n";
>
> sub sub1 {
> return "Fifty-six", "foo", 2;
> }
> ---------------------
>
> Is there anything required which I miss?
>
> Thanks in advance
> Qasem
>
> _________________________________________________________________
> Be one of the first to try Windows Live Mail.
>
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e
-
> 4911fb2b2e6d
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://perl.org.il/mailman/listinfo/perl
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.9.6/378 - Release Date:
28/06/2006
More information about the Perl
mailing list