Linux C语言多进程入门

fork函数使用 #include <unistd.h> #include <stdio.h> int main(void) { pid_t pid; pid = fork(); if(pid==-1) printf("fork error\n"); else if(pid==0) { printf("the returned value is %d\n", pid); p
相关文章
相关标签/搜索