2 ms·
It's mostly the Linux scheduler https://www.kernel.org/doc/html/latest/scheduler/sched-capacity.html https://www.kernel.org/doc/html/latest/scheduler/sched-cap
by charcircuit 3y ago
It's mostly the Linux scheduler
https://www.kernel.org/doc/html/latest/scheduler/sched-capacity.html https://www.kernel.org/doc/html/latest/scheduler/sched-capac...
Android does set niceness for processes. See the THREAD_PRIORITY_* constants
https://developer.android.com/reference/android/os/Process https://developer.android.com/reference/android/os/Process
and it uses cgroups too. Process.THREAD_GROUP_* has some Android ones, but different vendors sometimes write their own to try and be clever to increase performance.
https://source.android.com/docs/core/perf/cgroups https://source.android.com/docs/core/perf/cgroups
- pm215 3y agoIt's also worth bearing in mind that there's been a lot of work put into that scheduler over the years so it will make better decisions about what to run where when the cores aren't all the same.