Question: Answer the WHY? higlighted below the answer should not exceed three lines Operating System Process Life Cycle: Creation Once the initial boot process is done
"Answer the WHY? higlighted below the answer should not exceed three lines" Operating System Process Life Cycle: Creation
Once the initial boot process is done and the operating system is loaded on the machine, it will create some number of initial processes
When a user logs into a system, a user shell process is created. And then when the user types in commands, like list or emacs, then new processes get spawned from that shell parent process
Process Creation
Mechanisms for process creation:
Fork
Copies the parent PCB into the new PCB
Child continues execution at instruction after fork
EXEC
Replace child imap
Load new program and start from first instruction
More on FORK
The operating system will create a new Process Control Block for the child
Then it will copy the exact same values from the parent Process Control into the child Process Control Block
At that point, both the parent and the child will continue their execution at the instruction that's immediately after the fork. WHY?......
After the operating system completes the fork, both of these processes will start their execution at the exact same point
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
