摘要: 1.利用pthread_t对计数器进行加锁,线程没有全到达之前进行忙等待; #include<iostream> #include<pthread.h> #define num 8 using namespace std; typedef struct thread_item{ int thread 阅读全文
posted @ 2022-11-08 19:45 jakekiller00 阅读(64) 评论(0) 推荐(0) 编辑