←back to thread

128 points ksec | 1 comments | | HN request time: 0.263s | source
Show context
Havoc ◴[] No.42752917[source]
I still don’t quite get how the cpu knows what is low priority or background. Or is that steered at OS level a bit like cpu pinning ?
replies(2): >>42752924 #>>42753121 #
computerliker ◴[] No.42752924[source]
https://en.m.wikipedia.org/wiki/Scheduling_(computing)
replies(1): >>42755283 #
Havoc ◴[] No.42755283[source]
Right so how does the scheduler know what’s low priority?
replies(1): >>42758920 #
1. ahoka ◴[] No.42758920[source]
I thought this was actually a good question, so I have trued to look it up. If I understand correctly the CPU tells the scheduler! I could not find exactly how though, maybe an MSR?