If you've been wondering what multi-process programming is all about, here's a link to a good online tutorial. This shows the concepts of parallel programming using processes and threads. The articles themselves have nothing to do with Perl, but all the concepts apply. The examples are very simple, and I feel that if you can read Perl, you should be able to read the 'C' examples.

It is my personal conviction that people using these facilities under Perl are served well by having a good understanding of the actual underlying libraries they are built on. This becomes particularly true when chasing race conditions, and the odd data corruption bugs.

I've seen one or two decent tutorials for Perl in the ORA books, but these tutorials are better written, and contain more detailed explanation of what happens, and why.

http://users.actcom.co.il/~choo/lupg/tutorials/index.html

Be aware, Perl does not currently do multi-threading well, but it's perfectly capable of multi-processes.

Also, if you are interested in threads, particularly the Pthreads (a concatentation of POSIX Threads) libraries, the ORA Pthreads Programming book is very good. And for POSIX functionality in general, ORAs POSIX: Real World Programming is a must have.

--Chris

e-mail jcwren
  • Comment on Parallel Processing, Processes, and Threads

Replies are listed 'Best First'.
Re: Parallel Processing, Processes, and Threads
by turnstep (Parson) on Mar 15, 2001 at 02:56 UTC
Re: Parallel Processing, Processes, and Threads
by AgentM (Curate) on Mar 15, 2001 at 01:40 UTC
    I also humbly suggest the excellent "Programming with POSIX Threads" (Addison -Wesley/Author: Butenhof) as well as the excellent series from the late W. Richard Stevens, particularly "UNIX Network Programming: Volume One" which covers pthreads and sockets (threaded servers).
    AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.
Re: Parallel Processing, Processes, and Threads
by casiano (Pilgrim) on May 22, 2008 at 12:41 UTC
    I have also written a very small tutorial (GRID::Machine::perlparintro) that through a simple example introduces how to have "Parallel Compting" in Perl

    Hope it Helps

    Casiano