Homework 10
Out: Mon, Nov. 3
Due: Mon, Nov. 10, 11:59pm
45 points
- (15 points) Given memory partitions (i.e., "holes") of
size 100Kb, 500Kb, 200Kb, 300Kb, and 600Kb (in that order), how
would a sequence of processes of size 212Kb, 417Kb, 112Kb, and
426Kb, coming in in that order, be placed in memory using:
- first fit
- best fit
- worst fit
(Assume that compaction is not used.)
- (15 points)
Suppose a process has the following segment table:
| Segment
| Base
| Limit
|
| 0 |
219 |
600 |
| 1 |
2300 |
14 |
| 2 |
90 |
100 |
| 3 |
1327 |
580 |
| 4 |
1952 |
96 |
If the process generates the following logical addresses, what are
the corresponding physical addresses?
- 0,430
- 1,10
- 2,500
- 3,400
- 4,112
- (15 points)
Suppose we have a (tiny) system with a page size of 256 bytes.
Suppose a process has the following page table:
| Frame
| Valid
|
| 8 |
V |
| 7 |
V |
| 6 |
V |
| 9 |
V |
| 0 |
I |
If the process generates the following logical addresses, what are
the corresponding physical addresses? Note: logical addresses are
in hexadecimal, give your answer in hexadecimal also
(this makes the math much easier).
- 0000
- 010F
- 023C
- 03A4
- 0444
Please save your answers in the file hw10.txt and use
~cs352/bin/turnin hw10
to submit.