Skip to content

evbruk/cs3013_Project4

Repository files navigation

Eva Bruklich & Noah Parker
ebruklich nparker

Our code submission for project 4 consists of 2 c files, memory_manager.c (part1) and memory_manager_2.c (part2).

Problem 1 solution progess can be found in the memory_manager.c file.
Part 1: Memory Manager
We completed the project to the best of our ability and have verified that all of our tests and different combinations of inputs provided the correct outputs. We provided a sample TestInput.txt file with a collection of inputs that could be provided and then the respective outputs in the Output.txt file. 

Part 1: Memory Manager
We created a memory manager that compeletes all of the tasks indicated in the instructions for part one. We began by not worrying about swapping and then completed that functionality in Part 2, as indicated in the instructions. We followed the simulation parameters and worked with them to provide our simulation. 

Part 2: Memory Manager 2 - can be found in the memory_manager_2.c file.
For the eviction strategy we decided on using Least-Recently-Used (LRU) as the programs way of deciding which pages should be swapped. We created a variable, useCounter, to keep track of the least recntly used page. When a page was created it was assigned 1 and the following page was was created was assigned 2, and so on. When looking for a page to swap which was least recently used, it just had to look for the page with the smallest number assigned to it. 


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors