New answers tagged fork
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 ...
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 ...
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 ...
Top 50 recent answers are included
Related Tags
fork × 184process × 61
linux × 41
bash × 29
c × 21
shell × 17
exec × 16
shell-script × 10
system-calls × 10
systemd × 9
signals × 9
memory × 8
background-process × 8
file-descriptors × 8
pipe × 7
daemon × 6
debian × 5
ubuntu × 5
linux-kernel × 5
virtual-memory × 5
strace × 5
zsh × 4
process-management × 4
subshell × 4
ulimit × 4