←back to thread

218 points chmaynard | 2 comments | | HN request time: 0s | source
Show context
weinzierl ◴[] No.41886648[source]
"Current kernels have four different modes that regulate when one task can be preempted in favor of another"

Is this about kernel tasks, user tasks or both?

replies(2): >>41886784 #>>41886832 #
GrayShade ◴[] No.41886784[source]
Kernel code, user-space code is always preemptible.
replies(1): >>41887715 #
1. fguerraz ◴[] No.41887715[source]
Not true when the user-space thread has RT priority.
replies(1): >>41887763 #
2. temac ◴[] No.41887763[source]
RT threads can be prempted by higher prio RT, and IIRC some kernel threads run at the highest prio. Plus you can be prempted by SMI, an hypervisor, etc