Have you tried termux? It lets you run a shell on your phone (and even install and run various compilers).
Basically an ARM(v8 64b) desktop-like experience in a phone sized chassis.
Hence the need for a from scratch effort where the SDK incorporates preemptability as a policy, and applications work off of that. Sadly, this means you cannot use the existing vast application ecosystem.
Librem is an effort in the above direction. It also seems like Fuschia is going this way.
I think I don't understand the way you're using this word.
Are you talking about wake-locks? Linux has opportunistic sleep/suspend and mechanisms for controlling that.
Your typical linux application does not. It expects to be "started" and "stopped", and running the whole time in-between.