Assume that a process calls fork() to create a new process. The parent process has PID 500 and the child process has PID 510. What were the exact values returned by fork() to each process? Parent's return value from fork(): Child's return value from fork():
Assume that a process calls fork() to create a new process. The parent process has PID 500 and the child process has PID 510. What were the exact values returned by fork() to each process?
Parent's return value from fork():
Child's return value from fork():
A new process known as a "child process" is created with the fork system function and runs concurrently with the process that invoked fork() (parent process).
Both processes will carry out the next instruction following the fork() system call once a new child process has been started.
The same CPU registers, programme counter, and open files that the parent process utilises are used by the child process.
Given, Parent process has PID 500, and
Child process has PID 510
Step by step
Solved in 2 steps