Skip to content

Commit

Permalink
fix格式
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzitiansky committed Feb 11, 2020
1 parent 03f87c9 commit e5bc8ae
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Operating Systems.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,25 +107,25 @@ wait操作:执行wait操作的进程进入条件变量链末尾,唤醒紧急
> // 生产者进程
> void producer(){
> do{
> P(empty);
> P(mutex);
> P(empty);
> P(mutex);
>
> // 生产者进行生产
>
> V(mutex);
> V(full);
> V(mutex);
> V(full);
> } while(1);
> }
>
> void consumer(){
> do{
> P(full);
> P(mutex);
> P(full);
> P(mutex);
>
> // 消费者进行消费
>
> V(mutex);
> V(empty);
> V(mutex);
> V(empty);
> } while(1);
> }
>
Expand Down

0 comments on commit e5bc8ae

Please sign in to comment.