关于fork函数生成父子进程变量虚拟地址

#include <stdio.h> #include <stdlib.h> int main(void) { pid_t pid; //pid_t是typedef定义的类型,表示进程的id,在sys/types.h中定义:typedef short   pid_t; int static count = 5; //static可以保存修改之后的值 printf("process id = %d,
相关文章
相关标签/搜索