Chinaunix首页 | 论坛 | 博客
  • 博客访问: 16718
  • 博文数量: 9
  • 博客积分: 1505
  • 博客等级: 上尉
  • 技术积分: 95
  • 用 户 组: 普通用户
  • 注册时间: 2008-07-07 10:01
文章分类
文章存档

2009年(9)

我的朋友
最近访客

分类: LINUX

2009-04-19 17:23:06

1.
       high efficiency algorithm
2.         divide the timers based on their expirations
3.         always handling the timers in the first L2 queue
4.         when one of the L2 queue is empty, move the coming timers from it’s next one
5.         algorithm analysis: add and delete 1 timer: O(1), search 1 timer: O(avg(L2queue’s length))
 
 
阅读(450) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~