laziness, impatience, and hubris | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Why, when chunk_size is set to `1`, is the same process reused? Workers persist from start to finish. chunk_size refers to how many items a given worker receives per user_func.
Why, when the interrupt is given, is nothing inside the SIG handlers being executed? The overriding of SIG handlers must be done before calling mce_loop or before workers are spawned. What is the purpose of emptying the hash in the INT signal handler? The worker or parent receiving the signal displays the content and subsequently clears the hash before notifying others to exit. Thus, causing other workers to call the handler. We only need to display the content once. In reply to Re^3: Interrupt multi-process program while using MCE::Shared hash: END block code does not (all) run
by Anonymous Monk
|
|