SimonLiu

@SimonLiu423

Joined on Dec 27, 2023

  • contributed by < SimonLiu423 >
     Like  Bookmark
  • 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?
     Like  Bookmark
  • contributed by < SimonLiu423 > Development Environment $ gcc --version gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 $ lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 40 bits physical, 48 bits virtual
     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
     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
     Like  Bookmark