I can't really comment on your code (don't use threads but preforking in my code, haven't done threads for years), just let me say this:

While there are some minor indentation problems in your code, i find the code layout and the comprehensive information provided by you most enjoyable. Thank you for caring :-)

As i said, i use forking/preforking in my bigger projects. For interprocess communication i use two systems in combination: When race conditions don't really matter (either because only one process writes the data or because the data integrity isn't that important), i use memcache because it's quite fast.

When data integrity really matters and speed has a lower priority than integrity, i generally use a database. ACID compliant databases are a modern marvel when it comes to data integrity.

It of course all depends what your final goal is and what your application is trying to achieve if you can go one of these routes (or a combination thereof).

BREW /very/strong/coffee HTTP/1.1
Host: goodmorning.example.com

418 I'm a teapot

In reply to Re: any module with streaming pipe implementation for use with threads by cavac
in thread any module with streaming pipe implementation for use with threads by Rohan_Bhatia

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.