What is the main disadvantage of a single global run queue shared by all cores?
Q2
An idle core takes a waiting task from a busy core's run queue. This is…
Q3
Why does a scheduler prefer to keep a task on the core where it last ran (soft affinity)?
Q4
Cores have loads core0 = 80, core1 = 10, core2 = 30, core3 = 0. After perfect balancing, what should each core's load be?
Q5
In a two-socket NUMA server, why should the scheduler keep a task on the socket where its memory is allocated?
Q6
A laptop reports 8 logical CPUs from 4 physical cores with SMT (Hyper-Threading). Two CPU-heavy threads run on the two logical CPUs of the same core. What is typical?
Q7
Why is gang scheduling useful for parallel scientific programs?
Q8
On a phone with big and little cores, where should the OS usually run a background photo-backup task?
Q9
Which Linux scheduling class is checked first (highest precedence)?
Q10
How does CFS decide which task runs next?
Q11
A nice-5 task (weight 335) runs for 3 ms under CFS. By how much does its vruntime increase?
Q12
Two CPU-bound tasks share one core: nice 0 (weight 1024) and nice 10 (weight 110). What share does the nice-0 task get?
Q13
What replaced CFS as Linux's default fair scheduler in kernel 6.6 (2023)?
Q14
A periodic task needs C = 2 ms every T = 8 ms. What is its utilization?
Q15
Under rate-monotonic scheduling, which task gets the highest priority?
Q16
What is the Liu–Layland utilization bound for 3 tasks under RM?
Q17
Tasks T1 (C=1, T=4), T2 (2, 6), T3 (3, 12) have U = 0.833, above the 3-task bound 0.780. What can you conclude from the bound alone?
Q18
Tasks T1 (C=2, T=5) and T2 (C=4, T=7). Response-time analysis for T2 gives R = 4 → 6 → 8. What does this mean?
Q19
Can the same task set (U = 0.9714) be scheduled without deadline misses by EDF on one CPU?
Q20
What caused the repeated resets of Mars Pathfinder in 1997?
Q21
How does priority inheritance prevent priority inversion?
Q22
If dynamic power grows about with f³, what happens to the dynamic energy of a fixed task when the frequency is halved?
Q23
Why is "race to idle" (run fast, then sleep) sometimes more energy-efficient than running slowly?
Q24
A set of periodic tasks has total utilization U = 1.15 on one CPU. What is true?
Q25
Under SCHED_FIFO, a real-time task never blocks. What happens to normal (SCHED_NORMAL) tasks on the same core?
Q26
Which Linux command runs a program restricted to cores 0 and 1?
Q27Short answer
Apply rate-monotonic analysis to three periodic tasks: A (C = 1, T = 4), B (C = 1, T = 5), C (C = 2, T = 10). Compute U, compare with the Liu–Layland bound, and compute the response time of each task.
Q28Short answer
Explain priority inversion with the Mars Pathfinder example, naming the three tasks' roles, and explain how priority inheritance solves it. Why was a watchdog timer involved?
Q29Short answer
An EdgeCampus phone must run a 1.2 × 10⁹-cycle AR recognition task within 1 s and a 0.5 × 10⁹-cycle photo-backup task within 1 s. The big core runs at 2 GHz using 2.0 W; the little core at 1 GHz using 0.4 W. For each task, compute time and energy on each core and choose the best core that meets the deadline.
Q30Short answer
Compare RM and EDF: priority type, optimality, schedulability test, behaviour under overload, and implementation. When would you choose each for an EdgeCampus sensor controller?