Without sight of the modified script, plus the bat files, I could only guess. A word of caution though, if your not already using 5.8.4 or 5.8.5, upgrade before continuing. Many early bugs in ithreads where fixed in these builds. There is no point in re-discovering them:)

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

No!?

use Benchmark qw[ timethis ]; timethis( 10, sub { my $x = 'A' <=> 'B' } ); Argument "B" isn't numeric in numeric comparison (<=>) at (eval 12) li +ne 1. Argument "A" isn't numeric in numeric comparison (<=>) at (eval 12) li +ne 1. timethis 10: 0 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU) (warning: too few iterations for a reliable count)
... and we're trying to profile part of our software so that we can make accurate...

I can only re-emphasis. "Timing" + "threads" !== "accurate". In fact, it will not even be consistant. This is not an error (of threads or Perl's ithreads), it's just a fact of life with preemptive multi-processing.

With the additional information, and another look at your script, it looks like your trying to simulate a server environment and draw conclusions based upon that simulation. This will not work. Your simulation is simply not accurate, nor representative enough to be of any merit.

If you need to profile, then you should be using a real profiler on the real code in the real environment, or as close to it as is possible to achieve.

That's a pretty flat judgement based on very little information, so don't be offended. You may know what your doing is good enough for your purpose--it just doesn't look like it from where I am sitting :)


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon

In reply to Re^3: "Thread already joined at..." and "A thread exited while x threads were running" errors by BrowserUk
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.