auto commit
This commit is contained in:
@ -455,17 +455,9 @@ down 和 up 操作需要被设计成原语,不可分割,通常的做法是
|
||||
|
||||
|
||||
```c
|
||||
<<<<<<< HEAD
|
||||
|
||||
typedef int semaphore;
|
||||
|
||||
=======
|
||||
<<<<<<< HEAD
|
||||
typedef int semaphore ;
|
||||
=======
|
||||
typedef int semaphore;
|
||||
>>>>>>> bedf25d3f0312d8e38953d742d42dbf87585980e
|
||||
>>>>>>> parent of b64ecc6... auto commit
|
||||
semaphore mutex = 1;
|
||||
|
||||
void P1() {
|
||||
@ -509,17 +501,9 @@ void P2() {
|
||||
```c
|
||||
|
||||
#define N 100
|
||||
<<<<<<< HEAD
|
||||
|
||||
typedef int semaphore;
|
||||
|
||||
=======
|
||||
<<<<<<< HEAD
|
||||
typedef int semaphore ;
|
||||
=======
|
||||
typedef int semaphore;
|
||||
>>>>>>> bedf25d3f0312d8e38953d742d42dbf87585980e
|
||||
>>>>>>> parent of b64ecc6... auto commit
|
||||
semaphore mutex = 1;
|
||||
|
||||
semaphore empty = N;
|
||||
|
@ -35,15 +35,11 @@
|
||||
|
||||
|
||||
|
||||
需要说明的一点是,文中的 UML 图和规范的 UML 不大相同,其中组合关系使用以下箭头表示:
|
||||
需要说明的一点是,文中的 UML 类图和规范的 UML 类图不大相同,其中组合关系使用以下箭头表示:
|
||||
|
||||
<<<<<<< HEAD
|
||||
|
||||
|
||||

|
||||
=======
|
||||

|
||||
>>>>>>> parent of 8e81bfc... auto commit
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user