线程同步1.使用信号量实现线程同步使用的api123int sem_init(sem_t *sem,int shared,int value); //初始化无名信号灯int sem_wait(sem_t *sem); //p操作,
2022-04-17