Linux

Explain the fork() system call

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

fork() is used for creating a new process. It does so by cloning the calling process but the child process has its own PID and any memory locks, I/O operations and semaphores are not inherited.