'system' and parallel execution (was: Re: How to call a perl script....)
From: Wiggins D Anconia (wiggins_at_danconia.org)
Date: 06/25/04
- Next message: Patrick Pritchard: "Help with 3D lists"
- Previous message: Wiggins D Anconia: "Re: perl module installation"
- Next in thread: U235sentinel: "Re: 'system' and parallel execution (was: Re: How to call a perl script....)"
- Reply: U235sentinel: "Re: 'system' and parallel execution (was: Re: How to call a perl script....)"
- Maybe reply: DBSMITH_at_OhioHealth.com: "Re: 'system' and parallel execution (was: Re: How to call a perl script....)"
- Maybe reply: Wiggins D Anconia: "Re: 'system' and parallel execution (was: Re: How to call a perl script....)"
- Maybe reply: DBSMITH_at_OhioHealth.com: "Re: 'system' and parallel execution (was: Re: How to call a perl script....)"
- Maybe reply: Wiggins D Anconia: "Re: 'system' and parallel execution (was: Re: How to call a perl script....)"
- Maybe reply: Wiggins D Anconia: "Re: 'system' and parallel execution (was: Re: How to call a perl script....)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 25 Jun 2004 09:13:10 -0600 To: u235sentinel <u235sentinel@comcast.net>, beginners@perl.org
> Beau E. Cox wrote:
>
> >On Thursday 24 June 2004 08:32 pm, Charlene Gentle wrote:
> >
> >
> >You can use the 'system' command:
> >
> >##--master--
> >...
> >my $rc = system "perl slave.pl";
> >...
> >
> >
> Does this mean it runs in parallel with the parent Perl Program?
> Reading through "Learning Perl 3rd Edition" and I thought I caught a
> reference to something like this.
>
> Just curious.
>
Not exactly, it has been forked and does technically run in parallel,
however 'system' blocks your current process waiting for the child to
finish, so your process is in fact running, but it won't be doing any
work except for waiting for a signal from the child.
There are other ways to have parallel execution,
perldoc perlipc
perldoc -f fork
perldoc -f system
Will get you started. "Network Programming with Perl" by Lincoln Stein
also has excellent chapters on this subject, though lacks a chapter
(probably because of its age) on POE.
- Next message: Patrick Pritchard: "Help with 3D lists"
- Previous message: Wiggins D Anconia: "Re: perl module installation"
- Next in thread: U235sentinel: "Re: 'system' and parallel execution (was: Re: How to call a perl script....)"
- Reply: U235sentinel: "Re: 'system' and parallel execution (was: Re: How to call a perl script....)"
- Maybe reply: DBSMITH_at_OhioHealth.com: "Re: 'system' and parallel execution (was: Re: How to call a perl script....)"
- Maybe reply: Wiggins D Anconia: "Re: 'system' and parallel execution (was: Re: How to call a perl script....)"
- Maybe reply: DBSMITH_at_OhioHealth.com: "Re: 'system' and parallel execution (was: Re: How to call a perl script....)"
- Maybe reply: Wiggins D Anconia: "Re: 'system' and parallel execution (was: Re: How to call a perl script....)"
- Maybe reply: Wiggins D Anconia: "Re: 'system' and parallel execution (was: Re: How to call a perl script....)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]