Skip to content
LUDA · 學思辨行

LUDA · 學思辨行

Learn extensively, Understand deeply, Discern clearly, and Act resolutely.

  • About
  • Learning Path

Category: Systems

How the clock algorithm approximates LRU

November 13, 2026By HoHo Zhao

Short answer: The clock algorithm, or second chance, approximates LRU with a circular list of frames and one reference bit each. The clock hand walks the circle. A frame whose bit is 1 gets the bit cleared and a second chance. A frame whose bit is 0 is evicted.…

Algorithms, SystemsLeave a comment

How the banker’s algorithm tests a safe state

November 13, 2026By HoHo Zhao

Short answer: The banker’s algorithm avoids deadlock by refusing a resource request that would leave the system in an unsafe state. A state is safe when there exists an order of the processes such that each one can obtain its declared maximum with the resources free at its turn,…

Algorithms, SystemsLeave a comment

How LRU replaces the least recently used page

November 13, 2026By HoHo Zhao

Short answer: LRU page replacement evicts the page whose last use is oldest. It is the optimal policy among policies that do not see the future, in the sense of the stack property: a larger memory never causes more misses than a smaller one on the same trace. Implementing…

Algorithms, SystemsLeave a comment
  • Algorithms
  • Arithmetic
  • Authelia
  • Clustering
  • Coding
  • Compression
  • Cryptography
  • CSS
  • Distributed Systems
  • Docker
  • Dynamic Programming
  • Exact Algorithms
  • Games
  • Geometry
  • Grafana
  • Graphs
  • Greedy
  • Heaps
  • Homelab
  • IPsec
  • LDAP
  • Linear Algebra
  • Logging
  • Loki
  • nginx
  • Number Theory
  • Numerical
  • Optimization
  • Parsing
  • Prometheus
  • Randomization
  • Range Queries
  • Sampling
  • Scheduling
  • Search
  • Searching
  • Sequences
  • Sketches
  • Sorting
  • Streams
  • Strings
  • SVG
  • Synchronization
  • Systems
  • Transforms
  • Trees

Docker EAP-MSCHAPv2 FreeRADIUS Grafana gzip IKEv2 IPsec LogQL Loki OpenLDAP Promtail StrongSwan

© 2026 LUDA · 學思辨行. Powered by WordPress.