定时器: 大学无聊的时候看过linux内核的定时器,现在已经想不起来了, 也不知道当时有没有看懂,现在想要模仿linux内核的定时器, 用python写一个定时器,已经想不起来它的设计原理了,找了一篇blog http://www.cnblogs.com/leaven/archive/2010/08/19/1803382.html 再看了好一会才有些明白,开始参照着用python写了一个。 如果在设计服务器的时候,有大量需要精确到秒和秒以下的事件,自己 写一个定时器,维护一个类似与内核timer_vec的数据结构,处理服务的 定时事件,还是蛮高效的。
-
Notifications
You must be signed in to change notification settings - Fork 2
smallmelon/timer
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
timer write by python,like linux kernel timer_list
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published