Perl threads and libwww wierdness

Yitzchak Scott-Thoennes sthoenna at
Sun Dec 18 01:57:04 GMT 2011

On Thu, Dec 15, 2011 at 5:38 PM, Toby Wintermute <tjc at> wrote:
> Which is the reason I was using threads - it's easy to do IPC between
> them by sharing access to some data structures.
> Whereas with forking you need to set up pipes, posix shared memory,
> sockets, or some other means.
> In the end, I bit the bullet yesterday and did rewrite the code to use
> fork(), and then used Net::STOMP::Client with RabbitMQ to perform the
> IPC.

If all you need is to return results of a discrete bit of work to the
parent, Parallel::ForkManager makes it trivial.

More information about the mailing list