Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Parallel::ForkManager

by Clownburner (Monk)
on Aug 28, 2001 at 20:07 UTC ( #108483=modulereview: print w/replies, xml ) Need Help??

Item Description: Provides a simplified way to run multiple parallel forks within a program.

Review Synopsis:



Description
Parallel::ForkManager automates the sometimes tedious process of running multiple parallel forks from a script. It also allows you to control how many forks run at once, and keeps that many running, which simplifies a rather complex task. It is extremely simple in operation and well documented.

Who should use it?

Anyone who wants to implement forking in a script. I wrote a fair bit of forking code before discovering this module, and I must say, I don't think I'll go back. It makes life much easier, and isn't that what good perl modules are supposed to do?

Who should NOT use it?

There are some forking scenarios which are probably too complex for it, although I haven't found any of those myself yet. It might be difficult to use for socket server applications, since controlling the timing of the forks could be tricky. Or fun, depending on your perspective.

Documentation

Excellent - clear examples and concise wording. Even I understood it.

Personal Notes

I've converted almost all of my old fork code to run with this module. It took just minutes, and performance improved (I was spawning forks N at a time, waiting for them all to die, and then spawning N more. This thing keeps N forks running all the time without Ne+02 lines of code ;-). Highly recommended!!

Replies are listed 'Best First'.
Re: Parallel::ForkManager
by RhetTbull (Curate) on Aug 29, 2001 at 05:36 UTC
    Great write-up. Just to make it easier to look up, here's a link to the CPAN page: Parallel::ForkManager.
    --RT
Re: Parallel::ForkManager
by andye (Curate) on Feb 21, 2007 at 17:57 UTC
    Just wanted to add my agreement to Clownburner's excellent review: this module is indeed the best thing since the invention of the breadknife.

    Very easy to use, documentation very clear. Lets you get on with whatever-it-was that you wanted to be doing in parallel, instead of fiddling around with PIDs and so on.

    5 Stars. 10/10. 100%.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: modulereview [id://108483]
help
Chatterbox?
erix .oO( that sounds Boyer-Mooreish )
[Corion]: erix: Yes, but that's mostly for skipping characters you'll never read, but this approach skips the problem of needing to load more data while looking at a half-match
[Corion]: I mostly wonder how I can add this "reversal" to my toolchest, and if it's worth it or just clever

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (14)
As of 2016-12-06 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (108 votes). Check out past polls.