3 ms·
When an app is swapped to disk, all it's code and data pages are stored. When it's resumed, the code and data pages are loaded back. This isn't so terribly di
by wvenable 17y ago
When an app is swapped to disk, all it's code and data pages are stored. When it's resumed, the code and data pages are loaded back. This isn't so terribly different from relaunching the application (loading the code) and having the app restore it's state (loading the data). In fact, the app can even be more efficient in saving it's own state because it can discard anything it knows it doesn't need.
This sort of system doesn't work on a desktop because you can view/use more than one app at a time. However, it's more than reasonable on a system where you interact with apps one at a time.
This is pretty much how all mobile platforms have done it since forever.
- barrkel 17y agoA GC and framework designed around this serialization could be made to work, though, greatly reducing the burden on the programmer. Of course since Apple has outlawed innovation in those areas targeting the iPhone, they may never find that out...