Daily iOS
Memory and ARC

iOS memory and Jetsam

Sometimes an app you sent to the background comes back and starts from scratch. Explain this using how iOS manages memory: virtual memory, compression, and Jetsam.

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

iOS has no disk swap, so when memory runs low it compresses memory first and then Jetsam kills processes by priority and footprint, with background apps first in line. That's why the app looks like a cold start when you return.

Share a question