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
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
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
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
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
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
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
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
> 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
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]
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]
11 matches
Mail list logo