Y
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
saagarjha
2794 days ago
No, but iOS can kill apps in the background during times of high memory pressure.
link
rhacker
2794 days ago
So it can run xcode for about 4 seconds until the OS decides to kill it?
link
saagarjha
2794 days ago
> in the background
link
rhacker
2794 days ago
So when you debug your app?
link
saagarjha
2794 days ago
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.
link
bunnycorn
2794 days ago
Correct, it kills apps before they swap.
link
Ivoah
2794 days ago
iOS still runs the darwin kernel. I'd be shocked if it didn't use swap.
link
saagarjha
2794 days ago
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.
link
glhaynes
2794 days ago
I've always figured it had most to do with keeping responsiveness high and predictable.
link