hw02Solutionsa - CS 411 Operating Systems II Homework...

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

View Full Document Right Arrow Icon
CS 411 Operating Systems II Spring 2009 Homework Assignment #2 Solutions 1. Given the following memory partitions and processes 0 - 3 to be loaded (in numerical order) using contiguous allocation . Specify any processes that can not be loaded, and continue the loading cycle. Partition # Size in KB Process # Size in KB 0 100 0 312 1 300 1 117 2 500 2 312 3 400 3 226 4 200 A. Show memory allocation using the first-fit storage allocation algorithm. Process #3 can’t be loaded B. Show memory allocation using the best-fit storage allocation algorithm. C. Show memory allocation using the worst-fit storage allocation algorithm. Process #2 can’t be loaded 2. Suppose that the TLB search takes 100 nanoseconds, and a memory access takes 1 microsecond. (1 μs = 1000 ns) A. How long does it take to get the base address of a page frame that is in the TLB ? __1100__ns TLB relates logical page# to physical frame#. B. How long does it take to get the base address of a page frame that is not in the TLB ? __2100__ns TLB access(100), find physical frame#(1000), find base address(1000) C.
Image of page 1

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern