There's more than one way to do things | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi Have seen a lot of posts about not using Perl library 'X' for pools/etc. For 5.24 (or better) is that still the prevailing perspective? (eg: no better mouse trap) :) what are you asking? I've seen all the posts, you don't know what you're asking, and that is an answer in itself Have seen the use of "usleep", is that the best method for "idling" a worker thread? That is pretty much the only method for idiling, nothing else is idle. Is there a way to achieve the benefit of the while loop (avoid CPU cycle consumption while idle), but then issue of providing results to <STDOUT> the moment (or very close to when) they are available? What is a moment? Thats not just a question, that is the answer , that is how long you should (ask to) idle. In reply to Re: Threading with a twist
by Anonymous Monk
|
|