发布时间:2015-02-05 22:23:20
#include <stdio.h>#include <unistd.h>int main(){ int pid; pid = fork(); if (pid == 0) // child process { printf("child process PID=%d, parent process PID=%d\n", getpid(), getppid()); } .........【阅读全文】
阅读(535) | 评论(0) | 转发(0)