Skip to content

Commit 8a1530a

Browse files
Update p1-ipcoverview.md
1 parent 341f235 commit 8a1530a

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

lec10/p1-ipcoverview.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,13 @@ Child: read msg:test
456456
- 不足:需要同步机制协调数据访问
457457

458458
![w:550](figs/shmem.png)
459-
459+
460+
461+
---
462+
#### 共享内存实现机制
463+
464+
![w:900](figs/shm-imp.jpg)
465+
460466

461467
---
462468
#### 共享内存的系统调用
@@ -468,10 +474,7 @@ Child: read msg:test
468474

469475
注:需要信号量等同步机制协调共享内存的访问冲突
470476

471-
---
472-
#### 共享内存实现机制
473477

474-
![w:900](figs/shm-imp.jpg)
475478

476479

477480

@@ -668,8 +671,22 @@ Signals and Inter-Process Communication https://compas.cs.stonybrook.edu/~nhona
668671
---
669672
#### 信号实现机制
670673

674+
为什么需要通过sigreturn切换到用户态正常执行流程?
675+
676+
![bg right:70% 60%](figs/signal-2.png)
677+
678+
679+
---
680+
#### 信号实现机制
681+
682+
为什么需要通过sigreturn切换到用户态正常执行流程?
683+
684+
- 权限需求:只有内核能安全操作硬件上下文。
685+
- 安全校验:防止用户态篡改攻击。
686+
671687
![bg right:70% 60%](figs/signal-2.png)
672688

689+
673690
---
674691

675692
#### 信号应用编程

0 commit comments

Comments
 (0)