Revert "auto commit"
This reverts commit b64ecc6dbea1d11af647853e83531e6d3affbefc.
This commit is contained in:
parent
9b77c6d035
commit
5108f48253
@ -455,9 +455,17 @@ down 和 up 操作需要被设计成原语,不可分割,通常的做法是
|
|||||||
|
|
||||||
|
|
||||||
```c
|
```c
|
||||||
|
<<<<<<< HEAD
|
||||||
|
|
||||||
typedef int semaphore;
|
typedef int semaphore;
|
||||||
|
|
||||||
|
=======
|
||||||
|
<<<<<<< HEAD
|
||||||
|
typedef int semaphore ;
|
||||||
|
=======
|
||||||
|
typedef int semaphore;
|
||||||
|
>>>>>>> bedf25d3f0312d8e38953d742d42dbf87585980e
|
||||||
|
>>>>>>> parent of b64ecc6... auto commit
|
||||||
semaphore mutex = 1;
|
semaphore mutex = 1;
|
||||||
|
|
||||||
void P1() {
|
void P1() {
|
||||||
@ -501,9 +509,17 @@ void P2() {
|
|||||||
```c
|
```c
|
||||||
|
|
||||||
#define N 100
|
#define N 100
|
||||||
|
<<<<<<< HEAD
|
||||||
|
|
||||||
typedef int semaphore;
|
typedef int semaphore;
|
||||||
|
|
||||||
|
=======
|
||||||
|
<<<<<<< HEAD
|
||||||
|
typedef int semaphore ;
|
||||||
|
=======
|
||||||
|
typedef int semaphore;
|
||||||
|
>>>>>>> bedf25d3f0312d8e38953d742d42dbf87585980e
|
||||||
|
>>>>>>> parent of b64ecc6... auto commit
|
||||||
semaphore mutex = 1;
|
semaphore mutex = 1;
|
||||||
|
|
||||||
semaphore empty = N;
|
semaphore empty = N;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user