The stupid question is the question not asked | |
PerlMonks |
Re^2: Remote Monitoring using multi-threadingby ikegami (Patriarch) |
on Mar 15, 2010 at 18:09 UTC ( [id://828760]=note: print w/replies, xml ) | Need Help?? |
Coro is a cooperative multithreading environment that uses the same interface as threads. It integrates into other event loops such as AnyEvent's. You could use Coro to do some unrelated processing while AnyEvent::FastPing is busy pinging machines. (It appears you can do related processing in a registered callback.) Update: Very bad example removed.
In Section
Seekers of Perl Wisdom
|
|