linux下的C\C++多进程多线程编程简易例子

多进程编程   #include <stdlib.h> #include <sys/types.h> #include <unistd.h> int main() { pid_t child_pid; /* 建立一个子进程 */ child_pid = fork(); if(child_pid == 0) { printf("child pid\n"); exit(0);
相关文章
相关标签/搜索