contributed by < SimonLiu423 >
TODO
[ ] Reduce data transfer between user and kernel
Questions
In main.c, is it possible that the second timer triggers before the first game_tasklet? Causing the ai_game() to be called twice instead of once?
In The Linux Kernel Module Programming Guide Chapter 15.1 Tasklets, it is said that tasklet is run in interrupt context. Then why did the example use mdelay inside the tasklet function? And how did it switch back to init function and call pr_info?
In game_tasklet_func, queue_work(kxo_workqueue, &drawboard_work); is not nested inside if (finish). Does it mean that it might draw the same board multiple times?
SimonLiu changed 4 days agoView mode Like Bookmark
contributed by < SimonLiu423 >
第一週測驗
Q1
Observations
What we care about is what to fill in AAAA to DDDD, which are all in the the function of list_insert_before. So we could ignore how testing is done.
We only focus on:
implementation of list_insert_before
SimonLiu changed a month agoView mode Like Bookmark
contributed by < SimonLiu423 >
還政於民的 sched_ext 及機器學習如何幫助 CPU 排程
Link
About
CPU scheduling
schedulable unit: task(sched_entity)
tasks are run by CPU
scheduler pick tests & most suitable CPU to run
SimonLiu changed a month agoView mode Like Bookmark