Perl threads and libwww wierdness
Dave Hodgkinson
davehodg at gmail.com
Sun Dec 18 07:43:26 GMT 2011
On 18 Dec 2011, at 02:57, Yitzchak Scott-Thoennes wrote:
> On Thu, Dec 15, 2011 at 5:38 PM, Toby Wintermute <tjc at wintrmute.net> 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.
And the best way to return those results...?
More information about the london.pm
mailing list