Strange. I created the four data files required and ran your code as is and it produced the following output (I've wrapped the numbers onto single lines to save screen space!):

c:\test>555304 Thread 1 Thread 2 Thread 3 Thread 4 Via system: 1 2 3 4 5 6 7 8 9 Via system: 1 2 3 4 5 6 7 8 9 Via system: 1 2 3 4 5 6 7 8 9 Via system: 1 2 3 4 5 6 7 8 9 Via backticks 1 2 3 4 5 6 7 8 9 Via backticks 1 2 3 4 5 6 Via backticks 1 2 3 4 5 6 7 8 9 7 8 9 Via backticks 1 2 3 4 5 6 7 8 9 Via pipe 1 2 3 4 5 6 7 8 9 Via pipe 1 2 3 4 5 6 7 8 9 Via pipe 1 2 3 4 5 6 7 8 9 Via pipe 1 2 3 4 5 6 7 8 9

As you can see, all four threads ran all 3 methods without problems. The "sorted" output is a little mixed up as you might expect with four threads all outputting to the screen concurrently, but no hangs or errors. I did this with AS811 and AS817 with the same results. I don't have AS813 installed, but I do not expect it to fail, but if it is, the answer is to upgrade.

If upgrading doesn't fix your problem, then we'll need to look more closely at your environment to try and understand what is broken on your system/installation.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

In reply to Re^3: Behavior of threads on XP-- system() works, backtic & popen don't... by BrowserUk
in thread Behavior of threads on XP-- system() works, backtic & popen don't... by Sync

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.