摘要: 编译环境 Ubuntu18.04 G++ 简单的demo demo里创建了两次线程 注释掉的代码是使用pthread_join的 现在用的是pthread_detach 总结一下 pthread_create 就是创建一个线程 第一个参数就是线程id号 先int id; 然后把id的引用传进去就可以 阅读全文
posted @ 2020-04-05 11:51 Yan_Hao 阅读(304) 评论(0) 推荐(0) 编辑