Re:Don't kill my app
by isodev on Thursday November 23, 2023 @06:38AM
(#38391710)
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.
[ Parent
| on HN ]
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".