linux互斥锁的应用 //使用互斥锁同步线程#include #include #include #include pthread_mutex_t mutex;static int tickets = 100;void *thrd_func1(void *arg);void *thrd_func2(void *arg);int main(){ pthread linux多线程及同步 2023-10-06 46 点赞 0 评论 69 浏览