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.


In reply to Re: MCE module, how to know all tasks are done by ww
in thread MCE module, how to know all tasks are done by liuweichuan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.