The child process is a complete copy of the parent process, which is exactly the same.
选项:
A:正确;
B:错误
发布时间:2024-05-06 16:03:07
以下文字与答案无关
提示:有些试题内容 显示不完整,文字错误 或者 答案显示错误等问题,这是由于我们在扫描录入过程中 机器识别错误导致,人工逐条矫正总有遗漏,所以恳请 广大网友理解。
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、不输出任何信息
">4.请分析以下程序。 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、不输出任何信息