Hacker News new | ask | show | jobs
by bob1029 1520 days ago
What if you have multiple CPUs and you don't want the task to yield (i.e. for performance or latency reasons)?
1 comments

That limits your OS to numThreads < numCpus
What if we have multiple classes of threads with varying scheduling and interruption policies?
Either you have interrupts to interrupt them, you have more cores than threads, or you risk starvation. Simple.
No opportunity for nuance wherein some of the compute resources are reserved for certain types of threads?