What do fork() internally call?

Answer Posted / bhushan bachhav

Linux implements fork() via the clone() system call.
The clone() system call, in turn, calls do_fork().
The bulk of the work in forking is handled by do_fork(),
which is defined in kernel/fork.c.This function calls
copy_process() and then starts the process running.
If copy_process() returns successfully, the new child is
woken up and run. Deliberately, the kernel runs the child
process first.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I would like to know whether Simado and Setu products are they EPBX or not ?

1926


what are different ways the context switch happens from user to kernel space or vice-versa ?

2138


Explain process management system calls in linux?

544


What are system calls used for process management in linux?

583