RE: fork question

2006-07-26 Thread Travis Thornhill
with warm regards, Venkat Saranathan Gulf Breeze Software www.gulfsoft.com GulfBreeze Blog www.gulfsoft.com/blog -Original Message- From: Travis Thornhill [mailto:[EMAIL PROTECTED] Sent: Friday, July 21, 2006 11:47 PM To: beginners@perl.org Subject: fork question I thought I understood

RE: fork question

2006-07-22 Thread Venkat Saranathan
om: Travis Thornhill [mailto:[EMAIL PROTECTED] Sent: Friday, July 21, 2006 11:47 PM To: beginners@perl.org Subject: fork question I thought I understood this but maybe I don't. When perl forks it creates an exact copy of itself with open files, same variables, hashes, arrays, etc. But whe

Re: fork question

2006-07-21 Thread John W. Krahn
Travis Thornhill wrote: > I thought I understood this but maybe I don't. Have you read the perlipc doc: perldoc perlipc It has examples on how to use fork. > When perl forks it creates an exact copy of itself with open files, same > variables, hashes, arrays, etc. > > But when a variable in

fork question

2006-07-21 Thread Travis Thornhill
I thought I understood this but maybe I don't. When perl forks it creates an exact copy of itself with open files, same variables, hashes, arrays, etc. But when a variable in one changes, do they all change? What's wrong with how I'm trying to use the $children variable to track

Re: fork() question

2005-09-24 Thread Binish A R
Peter Rabbitson wrote: I think I am getting the idea of fork() all wrong. Here is an example: my $pid = fork(); if ($pid) { # should apply to parent only? exit; } sleep 1; print "Test\n"; exit; 'Test' does not print. If I remove the 'sleep 1' - it prints. From what I understood for

fork() question

2005-09-24 Thread Peter Rabbitson
I think I am getting the idea of fork() all wrong. Here is an example: my $pid = fork(); if ($pid) { # should apply to parent only? exit; } sleep 1; print "Test\n"; exit; 'Test' does not print. If I remove the 'sleep 1' - it prints. From what I understood fork creates two identical p

Re: Fork Question

2002-11-06 Thread John W. Krahn
Jessee Parker wrote: > > Using Perl on a Linux system, is there a way to fork off x amount of copies > then make a system wait until those copies are finished before forking off > more copies? If so can you show me an example if possible. It would be > greatly appreciated! TIA http://www.stonehen

Fork Question

2002-11-05 Thread Jessee Parker
Using Perl on a Linux system, is there a way to fork off x amount of copies then make a system wait until those copies are finished before forking off more copies? If so can you show me an example if possible. It would be greatly appreciated! TIA Jessee -- To unsubscribe, e-mail: [EMAIL PROTEC

RE: Fork() Question

2002-11-01 Thread Kipp, James
> Sent: Thursday, October 31, 2002 8:27 PM > To: [EMAIL PROTECTED] > Subject: Fork() Question > > > I know when you fork() a process the child is a duplicate of > the parent, but > does the forked copy have the same priority and time slice > assigned to it or > is it bran

Re: Fork() Question

2002-11-01 Thread Jenda Krynicky
From: "Jessee Parker" <[EMAIL PROTECTED]> > I know when you fork() a process the child is a duplicate of the > parent, but does the forked copy have the same priority and time slice > assigned to it or is it brand new? > > Jessee This is operating system dependant! Jenda = [EMAIL PROTECTED]

Fork() Question

2002-10-31 Thread Jessee Parker
I know when you fork() a process the child is a duplicate of the parent, but does the forked copy have the same priority and time slice assigned to it or is it brand new? Jessee -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]