Timing Wheel
时间轮, hashed timing wheel, hierarchical timing wheel1987
把定时器放入与其到期时间对应的环形数组槽位,并像时钟指针一样逐格推进来处理到期的结构。论文提出了哈希式和多级分层式变体,其中哈希式的定时器启动与停止均为 O(1) 时间。
起源
George Varghese, Tony Lauck (1987). Hashed and hierarchical timing wheels: data structures for the efficient implementation of a timer facility. SOSP 1987 (11th ACM Symposium on Operating Systems Principles).doi:10.1145/41457.37504 — 2026-11-08 已通过 Crossref 核验书目信息
谱系
2 个算法,1 条关系
本算法的源头
从何派生而来
Hash Table (Separate Chaining)1953
作者陈述哈希时间轮把到期时间哈希到环形数组槽位的链表中存放定时器。 — doi:10.1145/41457.37504
代表性实现
已按 GitHub 默认分支核实路径
- torvalds/linux/kernel/time/timer.cC
- apache/kafka/server-common/src/main/java/org/apache/kafka/server/util/timer/TimingWheel.javaJava
更多查找: GitHub · Semantic Scholar · Google Scholar · arXiv
贡献申明与异议
加载中…