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.
| [reply] [d/l] |