c线程使用锁控制并发
摘要:
// // Created by gxf on 2019/12/16. // #include #include #include void increase_num(); int sharedi=0; pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; int main(){ pthread_t t1, t2, t3; ... 阅读全文
posted @ 2019-12-16 20:39 luckygxf 阅读(717) 评论(0) 推荐(0) 编辑