Skip to content

About

An interactive simulation of operating system memory management to understand contiguous memory allocation, deallocation, and defragmentation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memory Management Simulator

This project is an interactive simulation of operating system memory management to understand contiguous memory allocation, deallocation, and defragmentation.

It models a simple OS memory manager using a doubly linked list, where each node represents a memory chunk (either free or allocated). The program supports dynamic allocation and freeing of processes and simulates defragmentation to reduce fragmentation.

Compilation & Execution

Prerequisites

  • GCC compiler
  • Linux / macOS terminal (or WSL on Windows)

Build

  1. Run the following commands in your terminal:

    make
  2. Run

    ./memory_sim
  3. Clean build files

    make clean

Developed as a learning project to understand OS-level memory management algorithms and assignment given in University Coding Academy.

About

An interactive simulation of operating system memory management to understand contiguous memory allocation, deallocation, and defragmentation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages