Exercises, examples and other material relating to training module P223. This topic is presented on public course
Perl Extra
Perl Extra - Subjects not covered on regular public courses!
Individual Perl users will need different advanced
topics depending on their application. ... http://www.wellho.net/course/pxfull.html [course] |
div class= introhead Running processes in parallel
/div
Perl is a great glueware language which includes a number of facilities that allow you to ... http://www.wellho.net/solutions/perl-con ... -perl.html [longer article] |
It's always a pleasure to run private courses - for when a questions that's a little bit away from the normal comes up, I can take time to provide a full ... http://www.wellho.net/mouth/1918_Per ... mples.html [short article] |
print "hello world\n";
# Start five child processes at intervals of 1 second
for (1..5) {
$bill = (10,40,60,70,43,54,65)[$_];
sleep ... http://www.wellho.net/resources/ex.php4?item=p223/f1.pl [code sample] |
There are times that you'll be writing an application that you want to go off and perform task "x" and AT THE SAME TIME have it perform task "y", co-ordinating ... http://www.wellho.net/mouth/604_Perl ... tions.html [short article] |
#!/usr/bin/perl
# h_report - host report
print "About to rup and rusers.\n";
print "Please wait.\n";
pipe H_IN,H_OUT;
unless ($pid = fork) {
close H_IN;
... http://www.wellho.net/resources/ex.php4?item=p223/h_report [code sample] |
# Forking out a series of processes which may take
# a while to run. System waits for any signal to be
# received back so that it can get the faster ... http://www.wellho.net/resources/ex.php4?item=p223/pinga3 [code sample] |
Overview
This topic is presented on public course
Perl Extra
Examples from our training material
| f1.pl | Forking a process |
| fdem | Forking in Perl, then communicating between processes |
| h_report | Two processing in parallel (via fork) communicating (via a pipe) |
| pinga2 | Parallel (forked) processes communicating via signals and files |
| pinga3 | Parallel (forked) processes communicating via signals and pipes |
| pingalong | Parallel (forked) processes communicating via pipes |
| pingpong | piping from another process |
| talker | Simple talker written in Perl |
| two_roles | Forking in Perl - two processes |
Pictures
Forking a Perl Process, and pipe
Background information
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
http://www.training-notes.co.uk.
Topics covered in this module
Overview.
forks.
Parent and child communications.
Pipes.
Other ways of communicating.
Signals.
pid files.
Transferring information.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.