I am learning the basics of Node.js. One thing that constantly confuses me is the event loop. From what I have learned, Node.js handles asynchronous functions using threads in libuv. How does chrome V8 engine handles this?
-
2JavaScript does not have an event loop. The event loop is only part of the engine. You could write an engine that only executes JS synchronously and has no event loop at all.Bergi– Bergi2015-10-29 21:51:35 +00:00Commented Oct 29, 2015 at 21:51
-
"Libuv is not part of normal JavaScript engine." - what is "normal" to you?Bergi– Bergi2015-10-29 21:53:10 +00:00Commented Oct 29, 2015 at 21:53
-
Thanks for replying. So node developers took V8 engine and left out the event loop part and wrote something of their own?Nithin Mohan– Nithin Mohan2015-10-29 21:53:11 +00:00Commented Oct 29, 2015 at 21:53
Add a comment
|