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 min
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