This repository contains a Python program for visualizing various memory allocation algorithms, including First Fit, Best Fit, Worst Fit, and Next Fit.
- images: This folder contains images used in the README file.
- main.py: The main Python script for running the memory allocation algorithm GUI.
- MemAlloExamples.txt: Examples of memory allocation scenarios for First Fit, Best Fit, Worst Fit, and Next Fit algorithms.
-
Clone the repository to your local machine:
git clone https://github.com/Pruthvirajsinh7/Memory-Allocation-Algorithm.git
-
Navigate to the repository directory:
cd Memory-Allocation-Algorithm
-
Run the main.py script:
python main.py
-
When prompted, enter the total memory size in kilobytes.
-
Enter partition sizes separated by commas when prompted.
-
The GUI will display the total memory with partitions. You can enter process sizes and choose the allocation algorithm from the menu.
Check the MemAlloExamples.txt file for detailed examples of memory allocation scenarios. The examples cover First Fit, Best Fit, Worst Fit, and Next Fit algorithms.
Feel free to explore and experiment with different scenarios to understand how each memory allocation algorithm behaves.