Hacker News new | ask | show | jobs
by metafizikal 2794 days ago
But iOS doesn't have a concept of swap like a traditional PC OS like macOS or Windows does, does it?
3 comments

No, but iOS can kill apps in the background during times of high memory pressure.
So it can run xcode for about 4 seconds until the OS decides to kill it?
> in the background
So when you debug your app?
Killing Xcode would also end your debug session. Presumably Apple will think that far ahead and grant the necessary entitlements so that this doesn't happen.
Correct, it kills apps before they swap.
iOS still runs the darwin kernel. I'd be shocked if it didn't use swap.
It doesn't, I believe mostly for reasons of keeping apps from using large amounts of memory in general, and by helping keep write cycles to a minimum.
I've always figured it had most to do with keeping responsiveness high and predictable.