in reply to Problem with threading code

this fails with any thing beyond 9 @stores..

Define "fails"? Because I've just run it here with $max_th..(got bored)... that variable set to 100, and it appears to run to completion, and exactly as I would expect it to.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."

Replies are listed 'Best First'.
Re^2: Problem with threading code
by theknightsofni (Novice) on Nov 28, 2008 at 23:02 UTC
    I am getting the following error when it gets to Thread 10: replacing perl -wle "print q(store003 stage 2);sleep(rand(10));print q(store003 stage 2 done)" with store010 store003 stage 2 Instead, it should be something like replacing perl -wle "print q(storeplaceholder stage 2);sleep(rand(10));print q(storeplaceholder stage 2 done)" with store010