2 ms·
> Why isn't the level of preemption a property of the specific event, rather than of some global mode? Some events need to be handled with less latency than oth
by ajross 2y ago
> Why isn't the level of preemption a property of the specific event, rather than of some global mode? Some events need to be handled with less latency than others.
How do you know which thread is needed to "handle" this particular "event" though? I mean, maybe you're about to start a high priority video with low latency requirements[1]. And due to a design mess your video player needs to contact some random auth server to get a DRM cookie for the stream.
How does the KERNEL know that the auth server is on the critical path for the backup camera? That's a human-space design issue, not a scheduler algorithm.
[1] A backup camera in a vehicle, say.