Skip to content

Commit 902ed73

Browse files
committed
section: event-async, fix typo: ElemeFE#61
1 parent 67e5b99 commit 902ed73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sections/zh-cn/event-async.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,6 @@ function sleep(ms) {
222222

223223
并行 (Parallel) = 2 队列对应 2 咖啡机.
224224

225-
Node.js 通过事件循环来挨个抽取事件队列中的一个个 Task 执行, 从而避免了传统的多线程情况下 `2个队列对应 1个咖啡机` 的时候上线文切换以及资源争抢/同步的问题, 所以获得了高并发的成就.
225+
Node.js 通过事件循环来挨个抽取事件队列中的一个个 Task 执行, 从而避免了传统的多线程情况下 `2个队列对应 1个咖啡机` 的时候上下文切换以及资源争抢/同步的问题, 所以获得了高并发的成就.
226226

227227
至于在 node 中并行, 你可以通过 cluster 来再添加一个咖啡机.

0 commit comments

Comments
 (0)