Does the cluster in Node.j...
Does the cluster in Node.j...
No, when using the cluster module in Node.js, each worker process has its own event loop. This means that the event loops are not shared among the processes in a cluster[1][2][8]. Each worker process handles its own instance of the event loop, allowing Node.js to handle multiple tasks concurrently across different CPU cores, thereby improving performance and scalability[4].
Citations:
[1] https://stackoverflow.com/questions/39590174/how-does-event-loop-works-when-we-use-cluster-module
[2] https://www.reddit.com/r/node/comments/v4poj6/number_of_event_loops_i...
expert
Gợi ý câu hỏi phỏng vấn
Chưa có bình luận nào