Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: A basic 'worker' threading example.

by sundialsvc4 (Abbot)
on Dec 31, 2013 at 14:39 UTC ( #1068801=note: print w/ replies, xml ) Need Help??

in reply to A basic 'worker' threading example.

It's also worth noting, in addition to this most-excellent post, that there are a lot of Perl workflow/thread/process management packages already out there ... POE, Parallel::ForkManager, and so on and on and on.   This type of threading is a FIP = Frequently Implemented Program, so look around in CPAN for "prior art" that you can readily use in your project.

Yes, you can always build a door from scratch.   But you can also buy a pre-hung door or even a complete wall with doors, windows and electrical wiring, or a mobile home.   Therefore, “choose wisely, because the choice is yours to make.”   No matter exactly what-it-is that you are doing, you usually always have the option to start from somewhere other than “from scratch.”   (Or not.)   The set of options that are available to you in CPAN are very large indeed, so “build vs. borrow” should be an engineering decision that you consider and make from the earliest possible point.

Actum Ne Agas:   Do Not Do A Thing Already Done.

Comment on Re: A basic 'worker' threading example.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2015-11-26 17:50 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (705 votes), past polls