CampusFlow
Back to Operating Systems

Operating Systems

Memory Management Simulator

Learn how Operating Systems manage memory using page replacement algorithms like FIFO, LRU and Optimal with real-time simulation.

Virtual Memory Lab

Visualize page loading, replacement and page fault behavior.

FIFO

First In First Out removes the oldest page from memory.

LRU

Least Recently Used replaces the least recently accessed page.

Optimal

Replaces the page that will not be used for the longest time.

Page Fault

Happens when a page is not available in memory frames.

Simulation Controls

Example: 7 0 1 2 0 3 0 4 2 3 0 3 2

Page Replacement Visualization

StepPageFramesStatus
17
7
-
-
Page Fault
20
7
0
-
Page Fault
31
7
0
1
Page Fault
42
0
1
2
Page Fault
50
0
1
2
Page Hit
63
1
2
3
Page Fault
70
2
3
0
Page Fault
84
3
0
4
Page Fault
92
0
4
2
Page Fault
103
4
2
3
Page Fault
110
2
3
0
Page Fault
123
2
3
0
Page Hit
132
2
3
0
Page Hit

Total Page Faults

10

Total Hits

3

Hit Rate

23.1%

How Memory Management Works

Memory Management is responsible for allocating and managing RAM efficiently between processes.

When memory becomes full, the Operating System uses page replacement algorithms to decide which page should be removed.

Page replacement algorithms help improve system performance by minimizing page faults and maximizing page hits.