wenfh2020 / wenfh2020.github.io

make blog : github + jekyll
MIT License
4 stars 3 forks source link

[libco] libco 定时器(时间轮) #106

Open wenfh2020 opened 3 years ago

wenfh2020 commented 3 years ago

https://wenfh2020.com/2021/03/30/libco-timer/

libco 定时器核心数据结构:数组 + 链表,有点像哈希表,通过空间换时间。libco 定时器也被称为时间轮,我们看看这个 “轮” 是怎么转的。