문제

The Linux kernel is non-preemptive, but I just read that there could be context-switches in different control paths. Doesn't that contradict the non-preemptive nature on the Linux kernel?

도움이 되었습니까?

해결책

No, it does not contradict this, because the latest Linux kernels are pre-emptive.

다른 팁

There were / are several different preemption models used by the Linux kernel, which included the old "non-preemptable" model - which means, in general, that kernel code cannot be preempted (I mean when not calling schedule(), sleep_on() etc)

There are also several other degrees of preemptability. Look at the kernel documentation for more information.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top