On Oct 1, 2014, at 7:06 AM, Kleyson Rios <[email protected]> wrote:

> I would like to know how exactly parallel execution works.
> 
> I'm using nimble module to execute some functions in parallel, and the result 
> of those executions be used for a final calculation. When I run flow.parallel 
> what exactly happens ? I mean, is it created a thread for each function ? 
> those threads share the same CPU or the threads are spread over all CPU's ?

Perhaps surprisingly, node doesn't execute any javascript functions in 
parallel. It's actually strictly a single-threaded process. Anything that would 
block on IO or a timer gets deferred until the resource is available, but those 
tools are for managing asynchronous, not actually concurrent functions.

Aria

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/8F49CDB7-0B08-4295-9911-430848510DA2%40nbtsc.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to