Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please, answer this as soon as you can and please try to avoid handwritten answers. I'll give you thumbs up fr!! a) Assume that the
Please, answer this as soon as you can and please try to avoid handwritten answers. I'll give you thumbs up fr!! a) Assume that the main memory has the following 5 fixed partitions with the following sizes: 100KB, 500KB, 200KB, 300KB and 600KB (in order)
- Explain the following allocation algorithms: First-fit, Best-fit and Worst-fit.
- How would each of the First-fit, Best-fit and Worst-fit algorithms place processes of 212KB, 417KB, 112KB and 426KB (in order)?
- Compute the total memory size that is not used for each algorithm.
- Which algorithm makes the efficient use of the memory?
b) Consider the following Page tables and show the process allocation in main memory having 19 frame
Process 0 | Process 1 | process 2 | process 3 | |||||||
page # | Frame | Page # | Frame | Page # | Frame | Page # | Frame | |||
0 | 3 | 0 | 0 | 0 | 1 | 0 | 2 | |||
1 | 4 | 1 | 5 | 1 | 6 | 1 | 11 | |||
2 | 7 | 2 | 8 | 2 | 13 | 2 | 12 | |||
3 | 9 | 3 | 15 | 3 | 14 | |||||
4 | 10 | 4 | 16 | |||||||
5 | 17 |
|
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started