Thread::Queue would work just as well, though it would consume a little more memory without some additional code to limit the size of the queue.
But for the OPs 10k items and 20 threads that would still come in at less than 40mb.
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] |
| [reply] |