5 ms·
Shouldn't it be even simpler than that? Why can't the OS control context switching at a fine grain with a policy like: 10% of time for all background apps, and
by zhyder 17y ago
Shouldn't it be even simpler than that? Why can't the OS control context switching at a fine grain with a policy like: 10% of time for all background apps, and 90% for either the foreground app or for the sleep state. At worst a background app won't get as many CPU cycles as it'd like, which I think is a better compromise than the 2 extremes of no background apps and background apps that can suck all the performance+power.
- xenophanes 17y agoi think the first comment is focussed on preventing battery power draining, and the second focussed on preventing background apps from slowing down foreground apps. both separate and valid concerns. and the suggested solutions are compatible.
- tlrobinson 17y agoSo the phone can go into a deep power saving sleep mode most of the time, and occasionally come out of sleep every few minutes.