Answers

Question and Answer:

  Home  Linux System Calls

⟩ What do fork() internally call?

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.

 116 views

More Questions for you: