๐ฅ๏ธ What is this Simulator?
This is a 3D Operating System Memory Allocation Simulator. It visually demonstrates how an OS manages RAM โ allocating memory to processes, detecting fragmentation, and reclaiming space. The 3D blocks represent memory partitions. Taller blocks = more memory used.
โก Mode Switcher (Top Center)
โก Basic
Basic Mode โ Great for beginners. Shows 5 fixed memory blocks. Processes stack inside them. Learn how First Fit, Best Fit, and Worst Fit algorithms search for space. Blocks glow red/green as they're checked.
๐ฌ Advanced
Advanced Mode โ Realistic simulation. Blocks split when allocated (real OS behavior). Enables fragmentation analysis, coalescing, compaction, waiting queue, and algorithm comparison panel.
๐๏ธ Left Panel โ Controls
Algorithm
Algorithm Selector โ Choose how the OS searches for a free block:
โข First Fit: picks the first block with enough space (fastest)
โข Best Fit: picks the smallest sufficient block (least waste)
โข Worst Fit: picks the largest block (leaves big remainders)
Process Size
Process Size (KB) โ Type how much memory (10โ600 KB) you want to allocate.
โถ Allocate
Allocate Process โ Runs the selected algorithm and drops a new colored process block into memory. Watch the 3D scan animation!
โบ Reset
Reset Memory โ Clears everything and returns memory to fully free state.
โฌก Coalesce
Coalesce Free Blocks (Advanced only) โ Merges adjacent free blocks into one larger block.
โ Compact
Compact Memory (Advanced only) โ Shuffles all live processes to the front of memory, creating one large contiguous free block at the end.
๐ Terminal Log & Export
Terminal Log
Top-right panel โ Live log of every action the OS takes: which blocks were checked (โ/โ), where processes land, splitting events, fragmentation alerts, and free operations.
PDF Export
PDF Export button โ Saves a full report of current memory state + terminal log as a downloadable PDF.
๐ฎ Camera Controls
Mouse
Left-drag โ Rotate the 3D view
Right-drag โ Pan
Scroll wheel โ Zoom in and out
โฃ Memory Grid (Bottom Right)
Grid Table
Memory Grid State โ A table showing every block/segment: its segment number, address range, size, and current state (FREE or which process). Click Free to deallocate a specific process instantly.