An open API service indexing awesome lists of open source software.

https://github.com/cizr/lru-algorithm-in-c

Execution/Implementation of LRU (Least Recently Used) Algorithm in C
https://github.com/cizr/lru-algorithm-in-c

algorithm c lru

Last synced: 9 months ago
JSON representation

Execution/Implementation of LRU (Least Recently Used) Algorithm in C

Awesome Lists containing this project

README

          

To write a c program to implement LRU page replacement algorithm

# LRU :
the page which is least recently used is replaced. Therefore, in memory, any page that has been unused for a longer period of time than the others is replaced.

# Inputs required :
1. the number of pages
2. the reference string
3. number of frames

# Output :
1. Number of pages
2. Value of pages
3. The frames
4. Number of page faults