FS#6254 - Scheduler boost control revision
Opened by Brandon Low (lostlogic) - Saturday, 28 October 2006, 20:05 GMT
Last edited by Brandon Low (lostlogic) - Saturday, 28 October 2006, 20:18 GMT
This just takes Slasheri's scheduler boost control and makes it (I think) more generally applicable -- the thread scheduler tracks how many threads have requested scheduler managed boosting, removing a thread from that boosted set whenever that thread goes to sleep (BUT not when that thread blocks w/o a timeout). Based on this boosted thread count, the thread scheduler boosts and unboosts the CPU.
I think that this type of boosting can be used to simplify coding with boost, for plugin authors and anyone else. For an interactive plugin, it would be as easy as calling the trigger_cpu_boost function and forgetting about it, because the next time you wait for user input, the CPU will unboost itself.
Saturday, 11 November 2006, 18:19 GMT
Reason for closing: Accepted