On 1/31/06, zentara <[EMAIL PROTECTED]> wrote:
>
> >Since the actions of 'fork' and 'tie' happen so frequently,is there any
> >performance drawback to the program?thanks again.
>
> Well, in reality, probably no one reading this list knows for sure.
> Set up your script and run it, and see if it se
write_log("can't clean item:",$mid);
}
}
}
}
-Original Message-----
>From: Jay Savage <[EMAIL PROTECTED]>
>Sent: Feb 2, 2006 8:15 AM
>To: Jeff Pang <[EMAIL PROTECTED]>, beginners perl
>Subject: Re: how to share variable acro
On 2/1/06, Jeff Pang <[EMAIL PROTECTED]> wrote:
> hello,
> You have misunderstood my meanings.
> I fork the child process in socket server's parent process,and the socket
> server accept the requests from socket clients,which are distributed in about
> 200 different hosts.
> I don't do the IPC co
>
>
>
>
>
>
>
>
>
>
> --
> I'm not really a human, but I play one on earth.
> http://zentara.net/japh.html
>
>
>
>
>
&g
--Original Message-
>From: zentara <[EMAIL PROTECTED]>
>Sent: Feb 1, 2006 6:55 AM
>To: beginners@perl.org
>Subject: Re: how to share variable across multi-processes
>
>On Tue, 31 Jan 2006 11:13:16 -0500 (EST), [EMAIL PROTECTED] (Jeff
>Pang) wrote:
>
>>hi,Zentar
those ways apartly.Thanks for all.
-Original Message-
>From: zentara <[EMAIL PROTECTED]>
>Sent: Jan 31, 2006 10:32 AM
>To: beginners@perl.org
>Subject: Re: how to share variable across multi-processes
>
>On Tue, 31 Jan 2006 11:38:14 +0800 (GMT+08:00), [EMAIL PROTEC
I have seen this doc:
http://search.cpan.org/~bsugars/IPC-Shareable-0.60/lib/IPC/Shareable.pm
I'm interested in using the IPC::Shareable module.Does this method suit for my
situation?Because there are so many socket requests coming into my socket
program on everytime,when each request coming,I fo
On 1/30/06, Jeff Pang <[EMAIL PROTECTED]> wrote:
> hello,lists,
>
> I have a hash var in my script,and I want to get it be shared across
> multi-processes.Fox example:
>
> my %hash;
>
> while(1)
> {
> die "can't fork:$!" unless defined (my $child = fork());
>
> if ($child==0)
> {
>