Which of the following statements correctly describe the return values of the…
Which of the following statements correctly describe the return values of the fork() system call in a Unix-like operating system?
- A.
0 to the child process and a positive value (child's PID) to the parent process
- B.
1 to the child process and 0 to the parent process
- C.
A negative value if the fork fails
- D.
Both first and third statements
- E.
None of the above
Attempted by 438 students.
Sign up free to check your answer
Sign up freeLoading lesson…