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.
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.
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.
Memory and ARCShort answerIntro
What is a memory leak?
#jetsam #memory-warning
CS fundamentals and algorithmsShort answerAdvanced
Someone asks you, "If a device has plenty of physical memory, why do we even need virtual…
#virtual-memory #jetsam
Memory and ARCShort answerAdvanced
iOS manages memory with reference counting (ARC). If you had to implement automatic…
#jetsam
PersistenceShort answerAdvanced
You have logs where the app, woken by a background push while the screen is locked, fails…
#background