semaphore 的範例 ... n", x); sem_wait(&mutex); /* down semaphore */ /* START CRITICAL REGION */ printf("Thread %d: Now in critical region.
確定! 回上一頁