Process control (contd.)
All the above are done in the kernel mode in the process context. When the kernel completes these it does one of the following as a part of the dispatcher:
- Stay in the parent process. Control returns to the user mode at the point of the fork call of the parent.
- Transfer control to the child process. The child process begins executing at the same point in the code as the parent, at the return from the fork call.
- Transfer control another process leaving both parent and child in the Ready state.