Linux kernel mode

weak to ask you prawns,
1. Is the kernel compiled after downloading from the kernel website preemptive or non-preemptive?
2. If it is preemptive, how to compile non-preemptive? If it is non-preemptive, how to compile it?
3. By patching? Where can I download the patch code?

May.17,2022

it has something to do with the version. Non-preemptive kernels are all better than old kernels. 2.4 kernels are all preemptive at the beginning. Non-preemptive kernels can not switch context until the end of the system call. It was eliminated 8.

however, even if it is called preemption, there are several modes. Make menuconfig can pay attention to Preemptible kernel configuration when setting kernel compilation options

or learn more about RT Linux

Menu