"This my @threadList = (); declares the array, but this array is then reused over and over within a subroutine, within nested loops:"

Yeah, I realised that after reading the first reply - moving the declaration into the scope of the runTests() subroutine fixes the initial problem but I'm still seeing the script hang. To check it wasnt the non-Perl interpreter which I'm trying to load-test that's crashing, I changed the script slightly to run DOS batch files instead, but I still get problems.

"The keys to this hash are strings, but you are using the numeric comparator (<=>), which means you are also getting a load of Argument "..." isn't numeric in numeric comparison (<=>) at... which you are apparently ignoring."

I don't seem to be getting those warnings. Any ideas?

"Finally, I'm not sure what your script is trying to achieve, so this comment may be way off base, but in general, "threads" and "timing" do not go together."

My company sells a proprietary system that sits on top of Apache, and we're trying to profile part of our software so that we can make accurate recommendations to customers when they ask what sort of hardware they should use with our software. My plan is to run the bulk of the code many times to get an average speed (see timethis($numCompleteTestRuns, 'runTests');).


In reply to Re^2: "Thread already joined at..." and "A thread exited while x threads were running" errors by nickos
in thread "Thread already joined at..." and "A thread exited while x threads were running" errors by nickos

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.