[英]How does event queue is processed in Node js?
I am learning through the architecture of Node.js.我正在学习 Node.js 的架构。 I have following questions.
我有以下问题。
1) Is event loop a part of libuv or v8? 1) 事件循环是 libuv 还是 v8 的一部分?
2) If event loop is responsible for delegating the blocking call to libuv and putting the callback to the event queue, than how does the callback present in event queue goes to call stack for execution? 2)如果事件循环负责将阻塞调用委托给libuv并将回调放入事件队列,那么事件队列中存在的回调如何进入调用堆栈执行?
3) How v8 and libuv interact with each other in Node.js? 3) v8 和 libuv 在 Node.js 中如何交互?
Diagram showing the Node Js architecture.显示 Node Js 架构的图表。
**Can anybody explain me how does v8 gets back the data from event queue to process it in the given diagram? **谁能解释一下 v8 如何从事件队列中取回数据以在给定的图表中处理它?
Now can someone tell me which diagram shows the correct position of event loop in Node js architecture?现在有人可以告诉我哪个图表显示了 Node js 架构中事件循环的正确位置吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.