问题描述:
[单选]
请分析以下程序。 int main(){ pid_t pid; pid = fork(); if(pid==0)printf("I am the child process, my process ID is%d\n",getpid()); else printf("I am the parent process, my process ID is%d\n",getpid());} 那么,该程序正确运行后的结果是
A.I am the child process, my process ID is 3744 I am the parent process, my process ID is 3987
B.I am the child process, my process ID is 3744
C.I am the parent process, my process ID is 3987
D.不输出任何信息
参考答案:查看无
答案解析:无
☆收藏
答案解析:无
☆收藏
上一篇:请分析下列程序。 int main(){ printf("This is in main program"); if(fork()==0)printf("I am in child process"); else printf("I am in parent process");} 程序正确运行后结果是
下一篇:假设8086CPU的主频为5MHz,内存芯片的存取时间为250ns,下面说法中正确的是
- 我要回答: 网友(216.73.216.96)
- 热门题目: 1.画出此程序各函数的控制流程图 2.画出此程序主函数的控制流程图 3.关系数据库中的关系要满足一定
