Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a simulator that compares between the following memory management algorithms: First Fit, Next Fit and Best Fit. The simulator will read the following file,
Write a simulator that compares between the following memory management algorithms: First Fit, Next Fit and Best Fit. The simulator will read the following file, which has the number of coming programs, the required pages for each program and the allocation program. Each program has a different allocation time Assume the total memory size is 20 pages and each program could ask for any number of page between 1 and 10 You need to print the memory after each change (ex. every 1 seconds) and the current system time (ex. a loop counte Compare about the above algorithms: average finished time for all jobs, average waiting time for all jobs and finished time for all jobs. Which algorithm is the best? r) The example of the input files. P1 P2 P3 P4 P5 P6 10 Example of output file: First Fit Timer Memory Pages 11111222333344444440 (1 means P1, 2 means F2 0 means free page) 11112000555000 Write a simulator that compares between the following memory management algorithms: First Fit, Next Fit and Best Fit. The simulator will read the following file, which has the number of coming programs, the required pages for each program and the allocation program. Each program has a different allocation time Assume the total memory size is 20 pages and each program could ask for any number of page between 1 and 10 You need to print the memory after each change (ex. every 1 seconds) and the current system time (ex. a loop counte Compare about the above algorithms: average finished time for all jobs, average waiting time for all jobs and finished time for all jobs. Which algorithm is the best? r) The example of the input files. P1 P2 P3 P4 P5 P6 10 Example of output file: First Fit Timer Memory Pages 11111222333344444440 (1 means P1, 2 means F2 0 means free page) 11112000555000
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