Skip to content

UgurYeter/BeladysAnomaly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Example of Belady's Anomaly

Bélády's Anomaly is the phenomenon in which increasing the number of page frames results in an increase in the number of page faults for certain memory access patterns. This phenomenon is commonly experienced when using the first-in first-out (FIFO) page replacement algorithm.

Input Sequence

1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5

For Cache Size 3

The cache miss count (X) is 9

------------------------------------------------------------------------------------------------------------
| 1 | X || 2 | X || 3 | X || 4 | X || 1 | X || 2 | X || 5 | X || 1 | ✓ || 2 | ✓ || 3 | X || 4 | X || 5 | ✓ |
------------------------------------------------------------------------------------------------------------

For Cache Size 4

The cache miss count (X) is 10

------------------------------------------------------------------------------------------------------------
| 1 | X || 2 | X || 3 | X || 4 | X || 1 | ✓ || 2 | ✓ || 5 | X || 1 | X || 2 | X || 3 | X || 4 | X || 5 | X |
------------------------------------------------------------------------------------------------------------

About

An example of Belady's Anomaly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages