Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

A Memory Management Simulation System that simulates the allocation and deallocation of memory for processes in an operating system environment. This simulation involves storing processes in memory based on different allocation policies like First Fit and Buddy System

License

Notifications You must be signed in to change notification settings

PauloMaced0/Memory-Management-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

somm23

SO Memory Management Simulation System



Prerequisites

On Ubuntu you need the following packages installed: build-essential, cmake, doxygen, and git.

sudo apt install build-essential cmake doxygen git

In other Linux distributions you need equivalent packages installed.


Cloning the repo

In a directory of your choice, clone the project to your computer

cd «directory-of-your-choice»
git clone https://[email protected]:detiuaveiro/«your-project»

Preparing the compilation environment

In a terminal, enter the base directory of your project, create the build directory, and use cmake to prepare make

cd «directory-of-your-choice»
cd «your-project»
mkdir build
cd build
cmake ../src

If you prefer ninja, instead of make,

cd «directory-of-your-choice»
cd «your-project»
mkdir build
cd build
cmake -G Ninja ../src

Compiling the code

In a terminal, enter the build directory of your project and run make or ninja

cd «directory-of-your-choice»
cd «your-project»«your-project»«your-project»/build
make

or

cd «directory-of-your-choice»
cd «your-project»/build
ninja

Generating documentation

The code is documented in doxygen. So, you can easily generate html documentation pages.

cd «directory-of-your-choice»
cd «your-project»/doc
doxygen

Then, you can display the pages running (inside the doc directory)

firefox html/index.html &

Of course, you can replace firefox with your favourite browser.


Setting your user name and email in Git

Commands

cd «directory-of-your-choice»
cd «your-project»
git config user.name "«your name»"
git config user.email "«your email»"

allows you to set your user name and email for this repository.

If you want to apply the settings to all repositories in the computer, run the followings commands instead.

cd «directory-of-your-choice»
cd «your-project»
git config --global user.name "«your name»"
git config --global user.email "«your email»"

Testing the code

On the project root:

./test.sh

About

A Memory Management Simulation System that simulates the allocation and deallocation of memory for processes in an operating system environment. This simulation involves storing processes in memory based on different allocation policies like First Fit and Buddy System

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages