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

Re^2: ithreads or fork() what you recommend?

by pawan68923 (Novice)
on May 21, 2012 at 15:19 UTC ( #971643=note: print w/replies, xml ) Need Help??

in reply to Re: ithreads or fork() what you recommend?
in thread ithreads or fork() what you recommend?

The model that I like to use for big, long-running activities is one that has been around forever: batch jobs. x jobs are running simultaneously within a management framework that I didnít write, and the remaining y are queued.

Yes, after analyzing all advantages and disadvantages of process and threads, I also felt individual process is best can not take the risk of failing all jobs if any one job fails, (even it has to avoid single failure) )...huge data is leaded for main process, whcih will not be ideal scenario to start threads....and batch is simple, tested concept whcih works, so on my way of getting this done using process.

Choose your language-of-choice in which to implement them.

If it had been from scratch, I would have thought of this option, but in this case everything is written in Perl and written well (except multiprocessing part) working reliably from past 6 years (with agile mode updates).

  • Comment on Re^2: ithreads or fork() what you recommend?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://971643]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2018-01-17 06:10 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (196 votes). Check out past polls.