Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^5: Doing an Input->process->Output cycle with AnyEvent? (was: error: "recursive blocking wait detected")

by james2vegas (Chaplain)
on Oct 17, 2010 at 01:23 UTC ( #865755=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Doing an Input->process->Output cycle with AnyEvent? (was: error: "recursive blocking wait detected")
in thread Doing an Input->process->Output cycle with AnyEvent? (was: error: "recursive blocking wait detected")

Yes, from your description you seem to be trying to shoehorn a sequential program into an event loop. AnyEvent (or POE, or IO::Async, or whatever) is not a hammer for every nail, it is not always appropriate, but I'm not certain I'd recommend threads either, perhaps a combination of fork and some form of IPC (using one of the fine modules on CPAN, such as Parallel::ForkManager) might be better. It would definitely make good use of your pre-emptive, multi-tasking operating system.


Comment on Re^5: Doing an Input->process->Output cycle with AnyEvent? (was: error: "recursive blocking wait detected")

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://865755]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2015-07-31 08:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (276 votes), past polls