62

剖析nodejs的事件循环

 5 years ago
source link: https://juejin.im/post/5af1413ef265da0b851cce80
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
本文首发在github,感兴趣请点击此处 nodejs是单线程执行的,同时它又是基于事件驱动的非阻塞IO编程模型。这就使得我们不用等待异步操作结果返回,就可以继续往下执行代码。当异步事件触发之后,就会通知主线程,主线程执行相应事件的回调。 以上是众所周知的内

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK