How does the Node.js event loop work?

前端 未结 2 720
面向向阳花
面向向阳花 2021-02-03 12:56

After playing with Node.js and reading about async i/o & evented programming a lot I\'m left with some question marks.

Consider the following (pseudo) code:

2条回答
  •  迷失自我
    2021-02-03 13:23

    Have you seen this? I'm still getting the hang of it all and I can't answer your question in detail, but basically you're right about the thread-pool... Ryan explains quite a lot in the video.

    EDIT: And this one from about a year later, when he goes into more detail.

提交回复
热议问题