Linux System Calls Question: Download Linux System Calls PDF

What do fork() internally call?

Tweet Share WhatsApp

Answer:

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.

Download Linux System Calls PDF Read All 35 Linux System Calls Questions
Previous QuestionNext Question
What does exec family return?How to create secured appeche web sever?