5 ms·
Just to note that iOS have no paging (don't know about Android, but I suspect the same).
by gtufano 13y ago
Just to note that iOS have no paging (don't know about Android, but I suspect the same).
- andrewaylett 13y agoIt's definitely not paging in the traditional, OS-level sense, but the standard Android (and, I think, iOS) behaviour of providing applications with a framework to restart exactly where they left off should be pretty much the same in theory. In practice, not so much.
- nucleardog 13y agoErr, I see no way in which the activity life cycle is like paging. In typical paging the application's memory is taken from RAM and placed onto a slower storage medium to free up RAM. In the activity life cycle, Android is just telling the app "you're in RAM, but you're not running" or "you're going to get killed because I need the space, if you want to give me a bit of state information I'll hang on to it in RAM for you". I don't see how the two are comparable at all, and I don't see how you could have paging without using a secondary storage.
- ajross 13y agoAndroid and iOS make no use of swap, they certainly will page things out that can be ejected (so not process heap, but mapped disk pages, including executable data segments, etc...). There is a little more involved with Android, and no doubt a lot of hackery under the hood in iOS, but both these OSes are running kernels with traditional VM systems and they work.