This question already has an answer here:


according to the above blog post,"There is only one thread that executes JavaScript code and this is the thread where the event loop is running." but event loop is provided by libuv, and that is no javascript code. can someone clear this above concept and also explain where does libuv run(v8 or operating system or somewhere else) and how it coordinates the tasks??

marked as duplicate by ippi, user2675672, Pearly Spencer, Commercial Suicide, Munim Munna Jun 16 '18 at 13:07


  • it runs on your CPU – Jaromanda X Jun 16 '18 at 7:02

yes you are right (libuv (Unicorn Velociraptor Library) is a multi-platform C library that provides support for asynchronous I/O based on event loops.) here is a link maybe this blog is missing something which is not explained
