Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q.2)(10pts) Suppose an operating system supports virtual address spaces with a page size of 1KB. A process executes the following code: char buf[1000]; // a

image text in transcribed

Q.2)(10pts) Suppose an operating system supports virtual address spaces with a page size of 1KB. A process executes the following code: char buf[1000]; // a buffer to hold file data int d; //file descriptor d= Open("test.dat"); //open a file returning a file descriptor Read(d,buf,1000);// fill the buffer with 1000 bytes from the file. a. What is the maximum number of pages in the process's address space that will be updated (changed) by the operating system as a result of the execution of the above code? Explain. b. At the time of the Read system call the process's page table is given below. Suppose that the buffer starts at address 5100 . Where the buffer is located in process' physical memory ? (Indicate where the entire buffer is located, not just the start of the buffer) Explain

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

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

What does stickiest refer to in regard to social media

Answered: 1 week ago

Question

Prepare for a successful job interview.

Answered: 1 week ago

Question

Describe barriers to effective listening.

Answered: 1 week ago

Question

List the guidelines for effective listening.

Answered: 1 week ago