by stackghost · 2mo ago · 0 comments
I assume the "manual request" is an aircraft squawking 7700 or similar, but why does the system need to interrupt an in-flight allocation in the first place? Any controllers here have insight?
One would think it would be sufficient to do something single threaded like
if(!highPriorityQueue.empty() {
highPriortyQueue.processOne();
} else if(!lowPriorityQueue.empty()) {
lowPriorityQueue.processOne();
}
or whatever, but they're not and I'm curious why.if they could guarantee hard bounds on how long low priority tasks take to complete they could implement your scheduling algorithm. but i think in reality the low priority tasks are either not boundable or they if they do have a provable bound the bound is too high.
It doesn’t make sense to have other non-code allocation things competing for queue space with code allocations.