摘要: 摘自:https://www.cnblogs.com/lzpong/p/5881380.html 调试器(如VS2008和老版GDB)往往只支持all-stop模式,调试多线程程序时,如果某个线程断在一个断点上,你的调试器会让整个程序freeze,直到你continue这个线程,程序中的其他线程才会 阅读全文
posted @ 2021-04-13 14:46 LiuYanYGZ 阅读(1488) 评论(0) 推荐(0) 编辑
摘要: 摘自:https://blog.csdn.net/zhangye3017/article/details/80382496 1. 线程的查看首先创建两个线程: 1 #include <stdio.h> 2 #include <unistd.h> 3 #include <pthread.h> 4 #i 阅读全文
posted @ 2021-04-13 11:34 LiuYanYGZ 阅读(854) 评论(0) 推荐(0) 编辑