【Linux】gdb 调试多进程

首先写一个两个进程运行的程序:web #include<stdio.h> #include<pthread.h> #include<errno.h> void A_process() { int i=0; while(1) { sleep(1); printf("father:%d i=%d\n",getpid(),i);
相关文章
相关标签/搜索