Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Pre-fork and Re-use a child process

by Anonymous Monk
on Jan 26, 2012 at 11:39 UTC ( #950073=note: print w/replies, xml ) Need Help??


in reply to Pre-fork and Re-use a child process

Some ideas

The article mentions a non-preforking but nicer example http://search.cpan.org/dist/Parallel-ForkManager/lib/Parallel/ForkManager.pm#Data_structure_retrieval

forks version of threads offers an opportunity for a reusable pool of threads

you can also use threads version of threads to create a cue( not a Thread::Pool but yes a Thread::Queue )

Parallel::Fork::BossWorkerAsync looks tointerface be exactly what you're looking for, pre-forking re-use, main program talks to boss, boss keeps reusing children, talking to main

Those are three things I might try

  • Comment on Re: Pre-fork and Re-use a child process

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://950073]
help
Chatterbox?
[Corion]: Oh yay. $project has faffed around for 2 years and now pushed a hasty 2 weeks solution into production without telling me. Of course, the new data also needs changes on my side to be processed correctly. Now they try to raise incidents against my ...
[Corion]: ... input systems to make the change outside of the organized project because I don't have ressources for the project to make the change.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-08-17 09:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (285 votes). Check out past polls.

    Notices?