On Tue, Aug 19, 2003 at 06:11:32PM +0200, Markus Jansen wrote:
> Hi,
>
> I have a program where I need to execute some longish tasks in parallel.
> So far I have understood that POE is some first class choice,
> and that the way to go is to have some POE::Filter::Reference wheels
> spawned off.
>
Markus,
also check out POE::Component::Child which makes setup easier.
- e
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 6:23 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Grandwheels or wheel-wheels
On Wed, Aug 20, 2003 at 11:24:18AM +0100, Sam Vilain wrote:
>
> I would like to employ POE also - does anybody have experience
> with wheel processes (children) creating one or more wheels again?
>
> You probably want to start a new poe kernel in each sub-process, and
> pass messages if n
Markus,
Take a look at POE::Wheel::Run. Run can be initiated as spawning a separate
program or subroutine. Use a ReadWrite wheel to connect the subprocess back to
the Run Wheel. In the subroutine or separate script, run a kernel inside of
that to handle the IO, multiwhatevers, etc.
Dougie!
I would like to employ POE also - does anybody have experience
with wheel processes (children) creating one or more wheels again?
You probably want to start a new poe kernel in each sub-process, and
pass messages if necessary to the parent process (eg, via STDOUT).
--
Sam Vilain, [EMAIL