3 ms·
> now idle performance have to be in addition. Your idle time should be with all processes blocked in select()/poll()/epoll() and friends, and the CPU fully sh
by ori_b 12y ago
> now idle performance have to be in addition.
Your idle time should be with all processes blocked in select()/poll()/epoll() and friends, and the CPU fully shut off with no code at all running.
If your CPU isn't fully asleep -- if it's running instructions -- you've already lost. There was a bug with my cellphone where a service was holding a wakelock and preventing the CPU from shutting off. This was enough to drain enough power that it would drain even while on the charger.
- im3w1l 12y agoYeah, hopefully nobody busyloops ala for(;;)checkForEvent(); But I could see someone doing for(;;){checkForEvent();sleep(sometime);} or setInterval(checkForEvent, sometime); This wouldn't be terrible but not ideal.