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?

  1. A.

    0 to the child process and a positive value (child's PID) to the parent process

  2. B.

    1 to the child process and 0 to the parent process

  3. C.

    A negative value if the fork fails

  4. D.

    Both first and third statements

  5. E.

    None of the above

Attempted by 438 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…