diff --git a/notes/计算机操作系统.md b/notes/计算机操作系统.md index 0924ede9..a1189d84 100644 --- a/notes/计算机操作系统.md +++ b/notes/计算机操作系统.md @@ -270,7 +270,7 @@ down 和 up 操作需要被设计成原语,不可分割,通常的做法是 ```c typedef int semaphore ; -samaphore mutex = 1; +semaphore mutex = 1; void P1() { down(mutex); // 临界区