Are there two event loops in node.js? How do they work?

72 views
Skip to first unread message

Vaibhav Jain

unread,
Nov 17, 2014, 6:31:09 AM11/17/14
to nod...@googlegroups.com
Hi,

I have just started learning node.js and I am already confused about how the event loop is implemented. 
Node uses v8 and libev (now libuv). As far as I know, v8 has its own javascript event loop. Is that the main event loop in node? If yes, then
what is the role of libev event loop? How do the two event loops coordinate?

Thanks

Matt

unread,
Nov 17, 2014, 11:53:13 AM11/17/14
to nod...@googlegroups.com
The "v8 has its own js event loop" comment is only relevant to the browser. It's not used in Node. The only event loop in Node is the libuv one.

--
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 nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/be96425c-6e32-49b7-9840-568a0f5e6d1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages