Daily iOS
App lifecycle and system

Process states vs app states

How do the process states from an OS class (new, ready, running, waiting, terminated) map onto the iOS app states (Not Running, Inactive, Active, Background, Suspended)? Explain Suspended from the process point of view in particular.

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

App states are a layer UIKit puts on top of processes. Not Running means no process, Active, Inactive, and Background are a live process whose threads move between ready, running, and waiting, and Suspended is a frozen state where the process and its memory remain but no thread is scheduled.

Share a question