- 博客(1)
- 收藏
- 关注
原创 两个线程交替打印奇偶数
在这里插入代码片 #include <stdio.h> #include <stdlib.h> #include <pthread.h> typedef struct { int thread_num; }My_Arr; int arr[5000]; int flag = 0; pthread_mutex_t lock; //创建线程锁 int s =...
2020-03-05 20:28:12
173
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人