Skip to main content
Tips

Process: forking

What?

Fork is a function that is used to create a new proces.

pid_t child_pid;
child_pid = fork();
if (child_pid == 0) {
    // Child process starts here
}
// Parent process resumes here

About 1 minCTipsccppc++processforking
Tips



Less than 1 minuteC++Tipscppc++processforking