View Code? Open in Web Editor
NEW
Operating System course's semester project "Preemptive Scheduling for Kernel Threads"
Makefile 0.18%
C 7.09%
Batchfile 92.73%
kthreads_scheduling's Introduction
Preemptive Scheduling of Kernel Threads
sudo apt update
sudo apt-get install build-essential
sudo apt-get install linux-headers-$(uname -r)
(install linux headers)
sudo apt-get install gcc-12
apt install dwarves
and cp /sys/kernel/btf/vmlinux /usr/lib/modules/`uname -r`/build/
to remove warning of skipping BTF generation ...
make
to generate files
make clean
to remove generated files
sudo insmod osproj.ko
to start thread
sudo rmmod osproj
to kill thread
ps -ef
lsmod
to show currently loaded kernel modules
sudo dmesg
kthreads_scheduling's People
Contributors
Watchers