Re:Don't kill my app
by g-b-r on Thursday November 23, 2023 @03:31AM
(#38390686)
These phones kill apps, not suspend them.
[ Parent
| on HN ]
From the app's point of view both are the same - the app can no longer execute code and upon resume it must restore state.
Suspending means that its memory was preserved, so the app doesn't have to do anything !!!
While suspending may be the first state, the OS can choose to fully evict the app from memory if it needs it for other tasks. So a "good app" saves state before being suspended so that upon resume, it can restore from disk even if it was "killed".