Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do this Objective: Write a C++ -program that will implement 4 Memory Management algorithms A) Best-Fit B) First-Fit C) Next-Fit D) Worst-Fit Your program

Please do this
image text in transcribed
Objective: Write a C++ -program that will implement 4 Memory Management algorithms A) Best-Fit B) First-Fit C) Next-Fit D) Worst-Fit Your program must do the following: 1. Program Input a. User will input to the program, Number of s for each partitions, and Memory Size partition/partitions b. User will input the name for each process, and the amount of memory the process needs 2. For each algorithm, your program should have a data structure(class) that include the job status (Run/Wait), and the partition number assigned to the job (if the job was allocated) You can create an array or list of the class to represent the job queue 3. Program output a. Calculate and display a list of initial memory allocation, i.e which partitions contain which process after the first round of allocation b. Program will calculate and display the memory waste for each partition c. A list of Processes not assigned to any partition Deliver to black board: 1)Source code from the program/programs 2)Screen shots of the output/results from each algorithm

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

b. Will new members be welcomed?

Answered: 1 week ago

Question

a. What is the purpose of the team?

Answered: 1 week ago