Answered step by step
Verified Expert Solution
Question
1 Approved Answer
We rst encounter a call to savu in the newproc function { the context is shown below: savu(u.u_rsav); rpp = p; u.u_procp = rpp; rip
We rst encounter a call to savu in the newproc function { the context is shown below:
savu(u.u_rsav);
rpp = p;
u.u_procp = rpp;
rip = up;
n = rip->p_size;
a1 = rip->p_addr;
rpp->p_size = n;
a2 = malloc(coremap, n);
Note that up refers to the \parent" process, while p refers to the new process being created.
Why is it so important that savu be called here, within the newproc function, and before the call
to malloc (and the subsequent initialization of the new process's user data area)? Explain.
Page 8
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