有名信號量

#include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <semaphore.h> #include <sys/stat.h> void Testfun(sem_t* sem1) { static int num = 0; for(;;) { sem_wait(sem1); printf
相關文章
相關標籤/搜索