What does wait system call do?单项选择题
A
Send a specified signal (such as SIGTERM) to a process identified by its PID, allowing the process to be terminated or otherwise controlled.
B
Suspend the execution of the calling (parent) process until one of its child processes terminates, then return the child’s PID and exit status.
C
Replace the current process image with a new program. The PID stays the same, but the code, data, and stack are completely overwritten.
D
Create a new process by duplicating the calling process. The child has a new PID but initially shares the same memory image and open files as the parent.
登录即可查看完整答案
我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。
类似问题
Match each term below to the concept that makes sense 1: exec 2: fork 3: wait(NULL) 4: kernel mode
Which of these will result in the parent's waiting for any child process to finish and exit?
What are the PID values at lines A, B, C, D? Let parent be pid 100 and child be pid 101.
Which system call returns the process identifier of a terminated child?
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!