Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2017-12-18 07:15 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (471 votes). Check out past polls.