From b64ecc6dbea1d11af647853e83531e6d3affbefc Mon Sep 17 00:00:00 2001 From: CyC2018 <1029579233@qq.com> Date: Sat, 3 Mar 2018 16:43:09 +0800 Subject: [PATCH] auto commit --- notes/计算机操作系统.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/notes/计算机操作系统.md b/notes/计算机操作系统.md index d07cff3e..a1189d84 100644 --- a/notes/计算机操作系统.md +++ b/notes/计算机操作系统.md @@ -269,11 +269,7 @@ down 和 up 操作需要被设计成原语,不可分割,通常的做法是 如果信号量的取值只能为 0 或者 1,那么就成为了**互斥量(Mutex)**,0 表示临界区已经加锁,1 表示临界区解锁。 ```c -<<<<<<< HEAD typedef int semaphore ; -======= -typedef int semaphore; ->>>>>>> bedf25d3f0312d8e38953d742d42dbf87585980e semaphore mutex = 1; void P1() { down(mutex); @@ -296,11 +292,7 @@ void P2() { ```c #define N 100 -<<<<<<< HEAD typedef int semaphore ; -======= -typedef int semaphore; ->>>>>>> bedf25d3f0312d8e38953d742d42dbf87585980e semaphore mutex = 1; semaphore empty = N; semaphore full = 0;