4aacea3b9558a852c0415daf7cbc35c27c206b51
[cascardo/kernel/slides/.git] / 08time / time
1 %Time Management
2 %Thadeu Cascardo
3
4 # Tickes, Jiffies
5
6 * The timer ticks with a frequency, interrupting the system
7 * Necessary for preemptive scheduling, using a time slice
8 * Linux counts the number of ticks in the *jiffies* variable
9 * It's interrupted *HZ* times in a second
10
11 # Busy waiting
12
13 * time\\_after
14 * time\\_before
15 * cpu\\_relax
16 * udelay
17
18 # Scheduling
19
20 * schedule
21 * set\\_current\\_state
22 * TASK\\_INTERRUPTIBLE
23 * TASK\\_UNINTERRUPTIBLE
24 * TASK\\_RUNNING
25 * schedule\\_timeout
26 * schedule\\_timeout\\_interruptible
27 * msleep
28 * msleep\\_interruptible
29
30 # Timers
31
32 # Work queues
33
34 # Delayed work
35
36 # Tasklets
37
38 # Wait queue
39
40 # Completion