Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: My First POE - Simple Parallel Programming

by Ultra (Hermit)
on Feb 01, 2006 at 06:28 UTC ( [id://526981]=note: print w/replies, xml ) Need Help??


in reply to Re: My First POE - Simple Parallel Programming
in thread My First POE - Simple Parallel Programming

Reading [id://BrowserUK]'s post Re^3: My First POE - Simple Parallel Programming, I feel that some clarifications are needed in regards with my example code:

  • You can use the forked approach.
  • You can use the single select based process model
  • You can use multi-machine model, using POE::Component::IKC
  • Or more

With this particular simple example, it may seem that the POE solution is bigger (in terms of amount of code written) than the threaded one. Now consider extending the application, so you need to run those functions on different machines. Here POE::Component::IKC comes in handy. I guess the threaded solution would be much bigger (again in terms of amount of code written). But I don't want to start a debate on this.

Also, the use of POE::Wheel::Run and POE::Filter::Reference makes it a piece of cake to "port" a basic forked application to POE.

Last and not least, IMO POE makes more sense for those (like me) that find it easier to think in terms of a Finite State Machine.

p.s.: I deliberately ignored the "speed" issues between the different implementations.

Dodge This!
  • Comment on Re^2: My First POE - Simple Parallel Programming

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://526981]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2024-04-23 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found