Skip to content

Commit a4b51d7

Browse files
committed
update 线程实现
1 parent f250267 commit a4b51d7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ConcurrencyProgramming/0-基础/线程实现/线程实现.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
- 程序一般不直接使用内核线程,而是操作内核线程更高级的接口——轻量级进程(LWP,Light Weight Process),这个轻量级进程就是我们通常意义上的**线程**
5353
- 因为每个轻量级进程都会有一个内核线程支持,所以必须先要支持内核线程才能有轻量级线程
5454

55+
## 优点
56+
57+
- 由于有轻量级线程,CPU的资源分配(进程)和执行(轻量级进程,也就是线程)分开了
58+
5559
# 使用用户线程实现
5660

5761
# 二者混合实现

0 commit comments

Comments
 (0)