mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-03 18:46:50 +08:00
Update others/lru_cache.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
* * In such an implementation, every time a cache-line is used, the age of
|
* * In such an implementation, every time a cache-line is used, the age of
|
||||||
* all other cache-lines changes
|
* all other cache-lines changes
|
||||||
*
|
*
|
||||||
* ### Algorithm explanation:
|
* ### Algorithm explanation
|
||||||
* For a cache of page frame x:
|
* For a cache of page frame x:
|
||||||
* * Check if the page is present in cache.
|
* * Check if the page is present in cache.
|
||||||
* * If not present, then check is the cache is full or not:
|
* * If not present, then check is the cache is full or not:
|
||||||
|
|||||||
Reference in New Issue
Block a user