Definitely no problem with UNIX.

For Perl, Perl only started to really support thread in 5.8.0. For the Perl part, there are some very useful information in perldoc, check out the threads, and threads::shared pragmas.

As for online material, go google, and search for pthread (do not search for thread), it will give you whole bunch of result, I just checked it. Really useful stuffs. Those are not about Perl’s thread, but as you never used thread before, understand POSIX thread will definitely help you, and Perl’s thread mimics POSIX thread a lot, at least at the interface and concept level, so this would also help you to understand Perl thread.

I am a little bit concerned whether it is good to use Perl to learn thread (considering it just started and a little bit prime). My path is I understood thread first, then came across Perl. Check whether you have pthread lib installed on your unix box, if yes, play it with c, while you are working on Perl at the same time. (if no pthread installed, there is always the native thread, but I would think that’s less ideal.)

There is a good book from O’Relly called “Pthreads programming”, not thick, good for both beginners and experienced programmers, and it has a section about why “shared memory” is a bad choice.

Update

You might also search my write-ups for the word “threads”, I have some quick examples there. As all those examples say “use threads”, this search should work.

In reply to Re: Re: Re: communication between forked processes by pg
in thread communication between forked processes by gnu@perl

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.