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
- Host: GitHub
- URL: https://github.com/cizr/lru-algorithm-in-c
- Owner: Cizr
- Created: 2022-03-17T21:30:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-17T21:42:32.000Z (over 3 years ago)
- Last Synced: 2025-01-27T06:43:28.039Z (10 months ago)
- Topics: algorithm, c, lru
- Language: C
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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