摘要:
一.思维导图 二.实例讲解1.wait()#include <sys/types.h>#include <sys/wait.h>#include <unistd.h>#include <stdio.h>int main(){ pid_t pc, pr; pc = fork(); if(pc<0){ printf("fork error\n"); }else if(pc == 0){ printf("this is child process.\n"); }else{ sleep(20); printf 阅读全文
posted @ 2012-05-17 15:49 fl_dream 阅读(773) 评论(0) 推荐(0) 编辑