Does the Linux scheduler prefer to run the child process after fork()
to the father process?
Usually, the forked process will execute exec
of some kind so, it is better to let child process to run before father process(to prevent copy on write).
I assume that the child will execute exec
as first operation after it will be created.
Is my assumption (that the scheduler will prefer child process) correct. If not, why? If yes, is there more reasons to run child first?