Linux 多進程多線程編程

一 建立進程 1 進程號 進程號的類型是pid_t(typedef unsigned int pid_t)。web 得到進程和父進程ID的API以下:shell #include <sys/types.h> #include <unistd.h> pid_t getpid();//得到進程ID pid_t getppid();//得到父進程ID 2 進程複製 進程複製能夠經過fork()函數覺得進
相關文章
相關標籤/搜索