wait,exit,fork
摘要:
wait,用来收尸。 /*一下代码 两个进程在执行*/ if(subpid >0){ /* main process code */ /** #include <sys/types.h> #include <sys/wait.h> pid_t wait(int *status);,注意里面是地址 阻 阅读全文
posted @ 2023-01-31 19:29 鸡鸡歪 阅读(79) 评论(0) 推荐(0)
posted @ 2023-01-31 19:29 鸡鸡歪 阅读(79) 评论(0) 推荐(0)