首页 > 解决方案 > where does nodejs event loop run?

问题描述

https://medium.com/the-node-js-collection/what-you-should-know-to-really-understand-the-node-js-event-loop-and-its-metrics-c4907b19da4c

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??

标签: javascriptnode.jsevent-loop

解决方案


是的,你是对的(libuv(Unicorn Velociraptor 库)是一个多平台 C 库,它为基于事件循环的异步 I/O 提供支持。) 这里是一个链接,也许这个博客缺少一些没有解释的东西


推荐阅读