Yes, you can execute them in child_process. Also where may be already existing modules, try look for maintained forks of "webworkers" or "backgrounder". Also you can use queues: kue or geaman-node
понедельник, 9 апреля 2012 г., 14:34:05 UTC+4 пользователь Jeremy Rudd написал: > > Hi all, > > I've got a couple of long-running functions that use BigIntegers and the > like for some financial calculations. These take a few seconds to execute. > Now a few seconds of CPU on the main node thread means all other activity > grinds to a halt. What's the easiest way to call these functions > asynchronously? ie, on another thread? > > Should I be making a module? Is it possible without a module? Should I be > using child_process? > > Any pointers or tips appreciated. > Thank you. > -- 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
