Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Jay Greenspan, Brad Bulger

1st Edition

978-0764535376

More Books

Students also viewed these Databases questions

Question

Describe the factors influencing of performance appraisal.

Answered: 1 week ago

Question

What is quality of work life ?

Answered: 1 week ago

Question

What is meant by Career Planning and development ?

Answered: 1 week ago