Skip to content

Commit ae56f98

Browse files
committed
replace part of urls of course learning
1 parent a96edc5 commit ae56f98

File tree

5 files changed

+154
-160
lines changed

5 files changed

+154
-160
lines changed

校内课程/操作系统/操作系统 PV 程序题.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Pi(){
131131

132132
如图1所示的进程流程图中,有8个进程合作完成某一任务,试说明这八个进程之间的同步关系,用PV操作实现之,并要求写出程序描述。
133133

134-
<img src="https://img-blog.csdnimg.cn/ed2b53ab4e174e688e4fb0804a887fc5.png" alt="在这里插入图片描述" style="zoom:67%;" />
134+
<img src="https://image.davidingplus.cn/images/2025/02/01/e96de0527e103c0fe045c6317cca4990.png" alt="e96de0527e103c0fe045c6317cca4990" style="zoom:67%;" />
135135

136136
```cpp
137137
int s2=s3=s4=s35=s36=s37=s45=s46=s47=s28=s58=s68=0;
@@ -208,7 +208,7 @@ P8(){
208208

209209
如图2所示,get/copy/put三进程共用两个缓冲区s、t(其大小为每次存放一个记录)。get进程负责不断把输入记录送入缓冲区s中,copy进程负责从缓冲区s中取出记录复制到缓冲区t中,而put进程负责把记录从缓冲区t中取出打印。试用PV操作实现这3个进程之间的同步。
210210

211-
![图2](https://img-blog.csdnimg.cn/8599bd927dc745f896283746fbe3b1f6.png)
211+
![ef4647bd2c5eb8c55fe42945237c0a3c](https://image.davidingplus.cn/images/2025/02/01/ef4647bd2c5eb8c55fe42945237c0a3c.png)
212212

213213
```c++
214214
int fullS=0;
@@ -376,7 +376,7 @@ Coend
376376

377377
# 8、
378378

379-
![image-20230418190835692](https://img-blog.csdnimg.cn/ad7b6c3821b24938bf43835a7fe00586.png)
379+
![image-20230418190835692](https://image.davidingplus.cn/images/2025/02/01/image-20230418190835692.png)
380380

381381
```c++
382382
int capacity=500;//能容纳的最大人数
@@ -401,7 +401,7 @@ Visit(){
401401

402402
# 9、
403403

404-
![image-20230418191212388](https://img-blog.csdnimg.cn/209809986fc8491b9d1dae23c6ed092e.png)
404+
![image-20230418191212388](https://image.davidingplus.cn/images/2025/02/01/image-20230418191212388.png)
405405

406406
```c++
407407
int A1=x;//A信箱装的邮件数量

0 commit comments

Comments
 (0)