There is an application that heavily loads the phone's processor. All work is done in the background, but at the time of the work the user can scroll through the list. With all this, the weaker the phone, the more it slows down the UI.
I read about iOS and ran into one little article - I am not 100% sure in the article itself, but it was written correctly and correctly explained, I can’t give the link, I lost it, but briefly, it was written that when the user interacts with the UI (svaypy and etc.), the UI thread receives the highest priority, therefore the processor pays more attention to the UI thread and less freezes from it if there is none at all.
Actually, I decided to do something similar for Android , I checked a small code for the increment counter of two classes with different priorities, the one with the maximum received 430 times more CPU time, it pleased, but it was also written that for different processors the threads priorities can to be implemented in different ways, it is logical, but also one familiar authoritative person said that it was costly to drive the priorities of flows back and forth, I actually decided to ask you - what do you think about that?
Thanks in advance, I hope for constructive answers.