Skip to content

Commit a73e80c

Browse files
Fix need_for_speed.md: correct Multithreading section heading and garbled body text
Agent-Logs-Url: https://github.com/QuantEcon/lecture-python-programming.zh-cn/sessions/336ee7bd-5e55-4f44-bccf-ce3f9734101f Co-authored-by: HumphreyYang <39026988+HumphreyYang@users.noreply.github.com>
1 parent b5edbd6 commit a73e80c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lectures/need_for_speed.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -393,13 +393,9 @@ with qe.Timer():
393393

394394
让我们回顾一下科学计算中常用的两种主要 CPU 并行化方式,并讨论它们的优缺点。
395395

396-
#### 多进程
397-
398-
多进程是指使用多个处理器并发执行多条逻辑线程。
399-
400-
多进程可以在一台拥有多个 CPU 的机器上进行,也可以在通过网络连接的机器集群上进行。
396+
#### 多线程
401397

402-
在多进程中,*每个进程都有自己的内存空间*,尽管物理内存芯片可能是共享的
398+
多线程是指在单个进程中运行多个执行线程
403399

404400
所有线程共享同一内存空间,因此它们可以在不复制数据的情况下对同一数组进行读写。
405401

0 commit comments

Comments
 (0)