/memory-manager-simulator-in-python

This is a memory manager simulator in Python.

Primary LanguagePythonMIT LicenseMIT

☀️ Memory Manager Simulator

This is a memory manager simulator in Python.

💻 Requirements

Python3 and pip3.

(opcional) If you want, you can create a virtual environment:

python3 -m venv env

Activate virtual environment:

  • Unix/macOS
source env/bin/activate
  • Windows
./env\Script\activate

Install requirements:

pip3 install -r requirements.txt

For install coverage

🔥 For run it

python3 main.py

💡 How to use it

You have 4 commands:

i. RESERVAR <nombre> <cantidad>

Represents a space reservation of <number> blocks, associated with the identifier <name>.

ii. LIBERAR <nombre>

Represents a release of the space containing the identifier <name>.

iii. MOSTRAR

To show the structure

iv. SALIR

To exit.

🔍 For run the tests

cd tests
coverage3 run --source=memory_manager -m unittest test_memory_manager.py

Coverage of the tests

coverage3 report -m
Module Coverage
Memory Manager 87%