New answers tagged

0 votes

After fork(), where does the child begin its execution?

Very precisely the child process begins it's execution while the fork() system call is being executed in the kernel: There, after having created a new process (and a process control block) the ...
U. Windl's user avatar
  • 1,269
0 votes

Parent process always printing output after child

While in principle both processes could run in parallel, the parent process is already active on a CPU, while the child process has to exec to a new process before its output can be created. Chances ...
U. Windl's user avatar
  • 1,269
1 vote

What after exec() in ls command: Is the parent process printing the output to the console or the child?

Strictly speaking neither of parent and child do the actual output to the screen; instead the operating system kernel (specifically the tty driver) does the output. The processes only send the data to ...
U. Windl's user avatar
  • 1,269

Top 50 recent answers are included