23

JavaScript之多线程和Event Loop - JavaScript进阶之路 - SegmentFault 思否

 4 years ago
source link: https://segmentfault.com/a/1190000020889508
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.
几乎在每一本JS相关的书籍中,都会说JS是单线程的,JS是通过事件队列(Event Loop)的方式来实现异步回调的。 对很多初学JS的人来说,根本搞不清楚单线程的JS为什么拥有异步的能力,所以,我试图从进程、线程的角度来解释这个问题。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK