in reply to Re: Proper undefine queue with multithreads
in thread Proper undefine queue with multithreads
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Proper undefine queue with multithreads
by BrowserUk (Patriarch) on Jun 03, 2014 at 20:08 UTC | |
Would that still be doable with the normal way you just explained? Yes. But you're going to have to explain what output you get from this "omnidb" command; because I've never heard of it. Would you mind showing a small example? Given that your example code is incomplete, which leaves us none the wiser as to and how a whole bunch of global variables used by pullDataFromDbWithDirectory() -- eg. $itemCount, $maxNumberOfItems, $omnidb, $filesystem, $label, @data -- are initialised/used, it would require gobs of time and guesswork to try and construct a working example. Post your full code. Post a sample output from the command. Explain what you are going to do with the list of files you are building in @data. Then maybe we stand a chance of helping you. BTW: Ignore/downvote both existing and any further replies you get from sundialsvc4. He has no working knowledge of using Perl's threading and has a history of posting long, rambling, always useless, often dangerous "suggestions". He even knows this: " Clearly, none of my suggestions would apply to this particular case. ", but he continues to waste everyones time by posting these useless, over generic replies on subjects that he has been proven, time & time again, to have no first hand knowledge. Why? I think the poor ol' thing is getting so senile that he genuinely forgets that he's only regurgitating things he's read rather than his own experiences. Sadly, whilst he seems to be able to retrieve odd snippets of generally good advice; he always seems to forget the correct context, rendering them useless. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
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.
| [reply] |
by sanc (Initiate) on Jun 04, 2014 at 05:56 UTC | |
The output of omnidb looks as folows
Explain what you are going to do with the list of files you are building in @data. Right now I am just printing out the output. Nothing fancy. Here the full code of my script. I am not really a perl programmer. Might not be developed the most efficient way.,?p>
| [reply] [d/l] [select] |
by BrowserUk (Patriarch) on Jun 05, 2014 at 12:55 UTC | |
Untested and without trying to understand the rest if your code, try the following minimal changes to your posted code:
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
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.
| [reply] [d/l] |
by sanc (Initiate) on Jun 05, 2014 at 13:44 UTC | |
by BrowserUk (Patriarch) on Jun 05, 2014 at 14:33 UTC | |
| |
by BrowserUk (Patriarch) on Jun 05, 2014 at 14:24 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. | |