diff --git a/ch6-cloud/ch6-10-delay-job.md b/ch6-cloud/ch6-10-delay-job.md index 78e34d9..70d5cd9 100644 --- a/ch6-cloud/ch6-10-delay-job.md +++ b/ch6-cloud/ch6-10-delay-job.md @@ -89,4 +89,8 @@ Go 自身的 timer 就是用时间堆来实现的,不过并没有使用二叉 小顶堆的性质,父节点比其 4 个子节点都小,子节点之间没有特别的大小关系要求。 +四叉堆中元素超时和堆调整与二叉堆没有什么本质区别。 + ### 时间轮 + +![timewheel](../images/ch6-timewheel.png) diff --git a/images/ch6-timewheel.png b/images/ch6-timewheel.png new file mode 100644 index 0000000..63b23f4 Binary files /dev/null and b/images/ch6-timewheel.png differ