阅读:1419回复:3
请教DDK驱动中定时器的一个奇怪问题
我在DDK中用KeSetTimerEx()设置了一个20ms周期定时器(notification类型), 为什么在有的机器上每秒定时notify回调来50次, 而在有的机器上则每秒只来了32次呢. 我是同一个驱动sys文件安装到不同的机器上的. 请大家帮忙.
|
|
沙发#
发布于:2007-10-10 17:51
The expiration of the timer ultimately depends on the granularity of the system clock. The value specified for DueTime guarantees that the timer object is set to a signaled state on or after the given DueTime. However, KeSetTimerEx cannot override the granularity of the system clock, whatever the value specified for DueTime.
|
|
板凳#
发布于:2007-10-10 22:58
按楼上的意思是和CPU的性能有关咯
|
|
地板#
发布于:2007-10-11 10:47
用户被禁言,该主题自动屏蔽! |
|