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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |