Principles of Operating Systems
CMSC 421-01 - Fall 2018
Homework 3
50 points total
Due by 11:59PM EST on Tuesday, December 11th
Please provide written responses to the following question. Be sure to fully
answer all questions as they are asked, providing a response of an appropriate
length to fully answer the question.
-
(5 points)
Assuming a 1KiB page size, what are the page numbers and offsets for the
following address references (all numbers are provided in base-10):
- 3040
- 4265
- 215395
- 650341
- 2000004
-
(10 points)
Consider the following segment table:
Segment |
Base |
Length |
0 |
220 |
650 |
1 | 2300 | 20 |
2 | 95 | 105 |
3 | 1325 | 583 |
4 | 1954 | 95 |
What are the physical addresses for the following logical
addresses?
- 0, 425
- 1, 10
- 2, 49
- 4, 27
- 3, 405
-
(10 points)
On a system with paging, a process cannot access memory that it does not own. Why?
How could an operating system allow access to other memory owned by another process?
Is this useful? If so, why? If not, why not?
-
(25 points)
Given six partitions of 300KiB, 600KiB, 350KiB, 200KiB, 750KiB, and 125KiB (in that
order) with a contiguous memory allocation scheme, how would the first-fit, best-fit,
and worst-fit algorithms place processes of size 115KiB, 500KiB, 358KiB, 200KiB, and
375KiB (in that order). Rank the algorithms in terms of how efficiently they use the
available memory (how well they resist both internal and external fragmentation) and
explain your answer. Assume that the first-fit algorithm begins its search at the
beginning of the list of memory holes for each search.
You must submit a PDF file of the answers to these questions on the Homework
3 assignment on Blackboard. You may prepare your responses in any word
processing application of your choosing, but you must submit a PDF file.
Do not submit Microsoft Word/Apple Pages/LibreOffice
documents with your responses. You must convert to a PDF file before
submitting or you will lose points.
Last modified