what is mean by event loop in node.js ? javascript event loop or libuv event loop? -


in node.js lot talk event loop, want know event loop talking about, javascript event loop or libuv event loop ? guess libuv event loop provides abstraction multiple operating system of multiplexing i/o ? right? if not please explain how stuff works? need internal knowledge, know event loop is, want know how connected?

currently node uses the event loop provided libuv - namely default event loop: uv_default_loop(). see: an introduction libuv nikhil marathe:

a default loop provided libuv , can accessed using uv_default_loop(). should use loop if want single loop.

note: node.js uses default loop main loop. if writing bindings should aware of this.

there linuv architecture diagram on design overview page in libuv api documentation:

libuv architecture

in past, libev's event loop used in node. see understanding node.js event loop mikito takada:

internally, node.js relies on libev provide event loop, supplemented libeio uses pooled threads provide asynchronous i/o. learn more, have @ libev documentation.

some resources on node event loop:

thanks saúl ibarra corretgé clarification in comments.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -