Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started