|
|
|
|
|
by kcsrk
2266 days ago
|
|
I am not sure I understand the suggestion that preemptive scheduling is important with the explosion of CPU core count.
You may need preemptive scheduling even on a single core if your application expects some fairness of scheduling guarantees. Am I missing something? We can do preemptive scheduling of user-level threads by registering a timer interrupt with the OS and preempting the currently running user-level thread in favor of another one. This is up to the individual libraries to implement. These issues are discussed in [1] Sec 4.3. |
|
Really exciting that preemption is possible. Thanks for your insights!