Timers and Time Management
Timers and Time Management
1. What is a system timer? a. System timer is programmable piece of hardware that issues an interrupt at a fixed frequency 2. What is a timer handler? a. It is interrupt handler that handles timer interrupt 3. What are dynamic timers? a. Dynamic timers are timers that are used to schedule events that run once when specified amount of time is elapsed. 4. Who creates and destroys dynamic timers? a. Kernel 5. What is kernel notion of time? a. Kernel maintains time in two quantities namely wall time and system uptime 6. What is wall time? a. Wall time is time of the day 7. What is system uptime? a. System time is relative time since system booted up. 8. What is tick rate? a. System timer goes off at a preprogrammed frequency called tick rate 9. What is HZ value? a. HZ value is frequency of system timer. It is defined in preprocessor #define HZ 10. What is a jiffie? a. Jiffie is global variable. It holds the number of ticks that have occurred since the system is booted. 11. What is real time clock? a. Real Time Clock (RTC) provides a non-volatile device for storing system time. i. RTC keeps track of time even when the system is off. 12. What are timers? a. Timer code manages flow of time in kernel code. They are also called dynamic timers or kernel timers. 13. Using timers? a. Purpose of time is to delay execution of some function in later time. 14. Timers run asynchronously with respect to the currently executing code.