Answered step by step
Verified Expert Solution
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
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
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