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

In reply to Parallel Processing, Processes, and Threads by jcwren

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.