2015年6月2日 星期二

[Linux]HZ, jiffies and tick

HZ: total timer interrupts per second.
tick: 1/HZ, the time for each timer interrupt.
jiffies: total ticks from Linux boot.

Do something after 1 second, e.g. kernel timer
jiffies + (1 second)/ticks = jiffies + HZ