Skip to content

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

Notifications You must be signed in to change notification settings

pulkitgarg04/memory-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published