hw6 - CPSC435 (W2008) Operating Systems Answer Key for...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CPSC435 (W2008) Operating Systems Answer Key for Assignment 6 (problems) 1. Given the following information for a paging/segmentation system, determine (s,p,d) for the virtual address v = 97, where each page is 10 bytes. segment number segment length s 0 30 s 1 50 s 3 20 s 4 40 s = 3, p = (97-80)/10 = 1, d = (97-80)%10 = 7, so (s,p,d) = (3,1,7) 2. Given that main memory is composed of three page frames for public use and that a program requests pages in the following order: 3 2 1 0 3 2 4 3 2 1 0 4 (a) Using the FIFO page replacement algorithm do a page trace analysis indicating page faults with asterisks (*). * * * * * * * * * 3 2 1 0 3 2 4 3 2 1 0 4 f0 3 3 3 0 0 0 4 4 4 4 4 4 f1 - 2 2 2 3 3 3 3 3 1 1 1 f2 - - 1 1 1 2 2 2 2 2 0 0 A total of 9 page faults. (b) Increase the size of memory so it contains four page frames for public use. Using the same page requests as above and FIFO do another page trace analysis indicating page faults with asterisks (*). * * * * * * * * * * 3 2 1 0 3 2 4 3 2 1 0 4
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

hw6 - CPSC435 (W2008) Operating Systems Answer Key for...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online