Exercise. Fixed-sized partitions, allocation policies
Statement.
System memory size is 64 units and Operating
System size is 4 units. The processes are allocated in the exercise
table order.
Given exercise processes data, answer the questions:
- Fill in the table indicating which process is allocated in
partitions according to allocation policy:
Start
partition address |
First Fit |
Best Fit |
Worst Fit |
| @ 4 |
|
|
|
| @ 14 |
|
|
|
| @ 19 |
|
|
|
| @ 23 |
|
|
|
| @ 38 |
|
|
|
| @ 48 |
|
|
|
- How much memory is wasted (Internal Fragmentation) for each
policy: first fit, best fit, worst fit
- What is the advantage of first fit compared to the
other
Data. Initial memory partitions and processes
Partitions
| Start address |
Size
Units |
| @ 4 |
10 |
| @ 14 |
5 |
| @ 19 |
4 |
| @ 23 |
15 |
| @ 38 |
10 |
| @ 48 |
14 |
|
Processes
| Process |
Size
Units |
| P1. |
5 |
| P2 |
10 |
| P3 |
3 |
|