mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-23 20:02:22 +00:00
add timewheel
This commit is contained in:
parent
67be4ecf55
commit
73b45d6dc5
@ -89,4 +89,8 @@ Go 自身的 timer 就是用时间堆来实现的,不过并没有使用二叉
|
||||
|
||||
小顶堆的性质,父节点比其 4 个子节点都小,子节点之间没有特别的大小关系要求。
|
||||
|
||||
四叉堆中元素超时和堆调整与二叉堆没有什么本质区别。
|
||||
|
||||
### 时间轮
|
||||
|
||||

|
||||
|
BIN
images/ch6-timewheel.png
Normal file
BIN
images/ch6-timewheel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
Loading…
x
Reference in New Issue
Block a user