Skip to content

Commit

Permalink
add link
Browse files Browse the repository at this point in the history
  • Loading branch information
guoguangkun committed Nov 14, 2018
1 parent 598741b commit 3b42980
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
21 changes: 10 additions & 11 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion _posts/2018-11-14-node的nextTick,eventLoop,和timers.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ categories: 技术文章


因为任何的这些操作可能会安排更多的操作,并且新的事件在轮询阶段被内核插入队列,轮询事件可以被插入队列
当轮询事件被执行的时候。结果,长时间执行的回调会允许轮询阶段会被允许比定时器的时间更长。更多详情请查看timers和poll的相关章节。

当轮询事件被执行的时候。结果,长时间执行的回调会允许轮询阶段会被允许比定时器的时间更长。更多详情请查看[timers](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#timers)[poll](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#poll)的相关章节。


注意:在实际调用中,windows 和Unix和Linux系统会有很小的差异,但是对此次示范操作无关紧要,最重要的地方在这儿。有实际上有七八个步骤但是我们实际关心的也就是nodejs实际上使用的是上面的那些。
Expand Down Expand Up @@ -395,3 +396,6 @@ myEmitter.on('event', () => {


原文链接:https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/


参考:http://www.ruanyifeng.com/blog/2013/10/event_loop.html

0 comments on commit 3b42980

Please sign in to comment.