«And if your results were correct, meaningful and valid, then the answer would have been a resounding use T::Q::A. But your benchmark is invalid; which renders any results it produces meaningless; and the results you posted are bogus.»
I've posted two approaches of a simple threaded program that does the following:
I've implemented two valid approaches for this, and the test results are far from being homogeneous . If you have a better approach,fine, show it.
In reply to Re^4: Thread::Queue vs Thread::Queue::Any
by gulden
in thread Thread::Queue vs Thread::Queue::Any
by gulden
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |