3 ms·
Can anyone explain the implementation of multitasking here, not the user experience of it? I'm hearing a combo of new service APIs and "freezing state." What do
by paulsmith 17y ago
Can anyone explain the implementation of multitasking here, not the user experience of it? I'm hearing a combo of new service APIs and "freezing state." What does "freezing state" mean? That to me implies some sort of serialization out of and back into RAM, otherwise you'll run into out-of-memory problems opening new apps, but that would seem to indicate swap, which as we know would kill performance (and presumably battery life), both of which Apple claims multitasking won't do.
- wmf 17y agoIt's probably NDA'd like all beta SDKs, so we'll have to wait a day or so for the details to leak.
- paulsmith 17y agoPerhaps, but I'm just curious from a stepped-back perspective, given a very constrained environment (limited RAM, no swap device) and expectations for a responsive user experience, how one would go about implementing "frozen state" for a process without presumably swapping to (slow) flash storage. What technique is being employed? Compression of in-memory objects, perhaps?
- orangecat 17y agoWhat does "freezing state" mean? My impression is that the kernel just suspends the process and keeps it in RAM. I'd expect there to be a notification that the app gets before it's suspended so that it can free any memory that's not necessary for preserving its state.