1
0
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:
Xargin 2018-07-01 18:04:18 +08:00
parent 67be4ecf55
commit 73b45d6dc5
2 changed files with 4 additions and 0 deletions

View File

@ -89,4 +89,8 @@ Go 自身的 timer 就是用时间堆来实现的,不过并没有使用二叉
小顶堆的性质,父节点比其 4 个子节点都小,子节点之间没有特别的大小关系要求。
四叉堆中元素超时和堆调整与二叉堆没有什么本质区别。
### 时间轮
![timewheel](../images/ch6-timewheel.png)

BIN
images/ch6-timewheel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB