Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nodejs 和浏览器事件循环实现有什么区别? #9

Closed
wmzy opened this issue Nov 9, 2016 · 5 comments
Closed

nodejs 和浏览器事件循环实现有什么区别? #9

wmzy opened this issue Nov 9, 2016 · 5 comments

Comments

@wmzy
Copy link

wmzy commented Nov 9, 2016

nodejs 和浏览器(比如chrome)在事件循环的实现有没有什么不同?能详细讲一下么?

@yjhjstz
Copy link
Owner

yjhjstz commented Nov 9, 2016

先看图 chrome:
3259161542-575018ce29d44_articlex

nodejs 和 chrome 的事件驱动实现上:

node.js 事件由 libuv 驱动,chrome 由 webkit 实现。

@wmzy wmzy closed this as completed Feb 15, 2017
@rawbin-
Copy link

rawbin- commented Jul 2, 2017

nodejs 使用v8 作为JavaScript解析,同样的chrome 内核 webkit 也是用v8作为JavaScript解析
nodejs 使用libuv,chrome 难道不是么?

@hyj1991
Copy link

hyj1991 commented Jul 3, 2017

@rawbin- 浏览器不用 libuv

@rawbin-
Copy link

rawbin- commented Jul 3, 2017

那在哪里可以看得到,浏览器用的什么库或者怎么实现的呢?

@yjhjstz
Copy link
Owner

yjhjstz commented Jul 3, 2017

clone webkit 看看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants