【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);
相關文章
相關標籤/搜索