Home > OS >  There are big answers the questions about the process?
There are big answers the questions about the process?

Time:11-20

There are bosses to solve the problem?

Linux in the parent process created through the fork, which structure is different in the process of father and son? Which structure is the same?

Linux in the C language source program that executes fork after the call, interrupt will happen? Is there any change in the state of the CPU? What is the difference between system calls and subroutine calls?

CodePudding user response:

After the fork,
Same part have a parent and child process: global variables, data, the text, heap, stack, environment variables, user ID, host directory, process working directory, signal processing methods such as
Different parts have a parent and child process: the process ID, fork return value, the parent process ID, process time, timer, etc.
  • Related