liuweichuan has asked for the wisdom of the Perl Monks concerning the following question:

MCE module, how to know all tasks are done. because i will use 'pppoe', so if one task is restart pppoe, then all will be restart. could you help me the solution for this.
  • Comment on MCE module, how to know all tasks are done

Replies are listed 'Best First'.
Re: MCE module, how to know all tasks are done
by ww (Archbishop) on Sep 21, 2016 at 13:39 UTC

    Did you read the CPAN summary for MCE (v 1.805)?

    It appears to suggest a host of approached to your (code-less) question:

    MCE::Signal Temporary directory creation, cleanup, and signal handling. MCE::Util Utility functions for Many-Core Engine. MCE EXTRAS ^ There are 4 add-on modules for use with MCE. MCE::Candy Provides a collection of sugar methods and output iterators for pr +eserving output order. MCE::Mutex Provides a simple semaphore implementation supporting threads and +processes. MCE::Queue Provides a hybrid queuing implementation for MCE supporting normal + queues and priority queues from a single module. MCE::Queue exchange +s data via the core engine to enable queuing to work for both childre +n (spawned from fork) and threads. MCE::Relay Enables workers to receive and pass on information orderly with ze +ro involvement by the manager process while running.

    If none of these are helpful, please reply with code and verbatim messages about failure modes.


    Yet another gimmé request!
    Sorry, we expect SOPW to seek wisdom, not to ask us to do so for them.