in reply to using parallel processing to concatenate a string, where order of concatenation doesn't matter

You expect the timeline of your processes to be:

____ / \ ---<------>--- \____/

But it really is:

_________ / ---<---------- \_________

The problem is that the updated $content dies with its process. You need some sort of IPC. Welcome :^).

Update: Or threads, like RMGir correctly suggests.

--
David Serrano

  • Comment on Re: using Paralell::ForkManager to concatenate a string, where order of concatenation doesn't matter
  • Select or Download Code