Yes it would still use child processes. It's essentially the same thing, just with easier management.
Sent from my Android phone. On Jan 5, 2014 7:13 PM, "Johan Alkstål" <[email protected]> wrote: > Wouldn't that still be using child processes or would it be a completely > different node app? > > > 2014/1/5 Hongli Lai <[email protected]> > >> Forever is a tool for running node processes in the background and >> keeping them running. It eases the management of processes somewhat. >> >> Sent from my Android phone. >> On Jan 5, 2014 1:15 PM, "Johan Alkstål" <[email protected]> wrote: >> >>> Tony, what do you mean? >>> >>> >>> 2014/1/5 Tony Huang <[email protected]> >>> >>>> i think use "forever" instead of raw child process may be a good idea~ >>>> >>>> >>>> On Sat, Jan 4, 2014 at 8:12 PM, Johan Alkstål >>>> <[email protected]>wrote: >>>> >>>>> Thank you all for your replies! Much appreciated. >>>>> >>>>> >>>>> 2014/1/4 Hongli Lai <[email protected]> >>>>> >>>>>> On Friday, January 3, 2014 8:14:51 PM UTC+1, Ryan Dahl wrote: >>>>>> >>>>>>> On Fri, Jan 3, 2014 at 1:47 PM, Johan Alkstål >>>>>>> <[email protected]>wrote: >>>>>>> >>>>>>>> >>>>>>>> So should this forked child process always be running (and thus >>>>>>>> having all simulations use it) or should I fork one for each >>>>>>>> simulation run? >>>>>>>> >>>>>>> >>>>>>>> I mean if the simulations should be queued and executed in order or >>>>>>>> in parallel by multiple processes? >>>>>>>> >>>>>>> >>>>>>> >>>>>>> That'll depend on how long these simulations run and how many of >>>>>>> them there will be - but I would suspect you want on child process per >>>>>>> simulation. >>>>>>> >>>>>> >>>>>> It also depends on how expensive the startup of your code is. If it >>>>>> takes 5 seconds to start your simulation program then you should not >>>>>> create >>>>>> a process per simulation. Instead, you should keep the simulation program >>>>>> running and feed it input to avoid the startup cost. >>>>>> >>>>>> -- >>>>>> -- >>>>>> Job Board: http://jobs.nodejs.org/ >>>>>> Posting guidelines: >>>>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "nodejs" group. >>>>>> To post to this group, send email to [email protected] >>>>>> To unsubscribe from this group, send email to >>>>>> [email protected] >>>>>> For more options, visit this group at >>>>>> http://groups.google.com/group/nodejs?hl=en?hl=en >>>>>> >>>>>> --- >>>>>> You received this message because you are subscribed to a topic in >>>>>> the Google Groups "nodejs" group. >>>>>> To unsubscribe from this topic, visit >>>>>> https://groups.google.com/d/topic/nodejs/5xNIbJSRMiY/unsubscribe. >>>>>> To unsubscribe from this group and all its topics, send an email to >>>>>> [email protected]. >>>>>> >>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>> >>>>> >>>>> -- >>>>> -- >>>>> Job Board: http://jobs.nodejs.org/ >>>>> Posting guidelines: >>>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >>>>> You received this message because you are subscribed to the Google >>>>> Groups "nodejs" group. >>>>> To post to this group, send email to [email protected] >>>>> To unsubscribe from this group, send email to >>>>> [email protected] >>>>> For more options, visit this group at >>>>> http://groups.google.com/group/nodejs?hl=en?hl=en >>>>> >>>>> --- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "nodejs" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> >>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>> >>>> >>>> >>>> >>>> -- >>>> ------------------------------------------------------ >>>> Tony Huang [email protected] >>>> [email protected] >>>> [email protected] >>>> >>>> -- >>>> -- >>>> Job Board: http://jobs.nodejs.org/ >>>> Posting guidelines: >>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >>>> You received this message because you are subscribed to the Google >>>> Groups "nodejs" group. >>>> To post to this group, send email to [email protected] >>>> To unsubscribe from this group, send email to >>>> [email protected] >>>> For more options, visit this group at >>>> http://groups.google.com/group/nodejs?hl=en?hl=en >>>> >>>> --- >>>> You received this message because you are subscribed to a topic in the >>>> Google Groups "nodejs" group. >>>> To unsubscribe from this topic, visit >>>> https://groups.google.com/d/topic/nodejs/5xNIbJSRMiY/unsubscribe. >>>> To unsubscribe from this group and all its topics, send an email to >>>> [email protected]. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>> >>> -- >>> -- >>> Job Board: http://jobs.nodejs.org/ >>> Posting guidelines: >>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >>> You received this message because you are subscribed to the Google >>> Groups "nodejs" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/nodejs?hl=en?hl=en >>> >>> --- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "nodejs" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/nodejs/5xNIbJSRMiY/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected]. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> -- >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: >> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >> You received this message because you are subscribed to the Google >> Groups "nodejs" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> >> --- >> You received this message because you are subscribed to a topic in the >> Google Groups "nodejs" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/nodejs/5xNIbJSRMiY/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to a topic in the > Google Groups "nodejs" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/nodejs/5xNIbJSRMiY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
