Re: how to share variable across multi-processes

2006-02-02 Thread Jay Savage
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

Re: how to share variable across multi-processes

2006-02-01 Thread Jeff Pang
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

Re: how to share variable across multi-processes

2006-02-01 Thread Jay Savage
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

Re: how to share variable across multi-processes

2006-02-01 Thread linc
g > Subject: > Re: how to share variable > across multi-processes > Date: > Wed, 01 Feb 2006 06:55:05 -0500 > > On Tue, 31 Jan 2006 11:13:16 -0500 (EST), >

Re: how to share variable across multi-processes

2006-02-01 Thread Jeff Pang
--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

Re: how to share variable across multi-processes

2006-01-31 Thread Jeff Pang
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

Re: how to share variable across multi-processes

2006-01-30 Thread Jeff Pang
age- >From: Jeff Pang <[EMAIL PROTECTED]> >Sent: Jan 30, 2006 2:38 PM >To: beginners@perl.org >Subject: how to share variable across multi-processes > >hello,lists, > >I have a hash var in my script,and I want to get it be shared across >multi-processes.Fox

Re: how to share variable across multi-processes

2006-01-29 Thread Chas Owens
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) > { >

how to share variable across multi-processes

2006-01-29 Thread Jeff Pang
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) { do_something_to_hash(); # here I need to do some operations to the