in reply to strange behaviour, would appreciate any comment / alternative method
I don't have an answer to your main question (yet), but I can tell you that this:
my $t = scalar (@temp); splice (@temp,$t-1,1) if ($t ); @jobstack=@temp;
Is a really slow, clumsy and silly way of doing this:
pop @jobstack.
which is exactly equivalent and about 100 times faster (depending upon how mush data is in @jobstack.
But the way you are using @jobstack suggests that you really ought to be using a Thread::Queue.
Whether that would have any influence upon your main problem I don;t have the facilities to test, but it would definitely make it easier to reason about the possible causes by eliminating one possible source of errors.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: strange behaviour, would appreciate any comment / alternative method
by djamu (Initiate) on Jul 27, 2011 at 03:07 UTC | |
by BrowserUk (Patriarch) on Jul 27, 2011 at 03:39 UTC | |
by djamu (Initiate) on Jul 27, 2011 at 04:14 UTC | |
|
Re^2: strange behaviour, would appreciate any comment / alternative method
by djamu (Initiate) on Jul 27, 2011 at 03:16 UTC | |
|
Re^2: strange behaviour, would appreciate any comment / alternative method
by Anonymous Monk on Jul 27, 2011 at 04:29 UTC |