3 ms·
Reading replies, it seems hibernation is not something that users ask for. What they ask for is to restore the program(s) to the state that they left it in. Fi
by twobitshifter 6y ago
Reading replies, it seems hibernation is not something that users ask for. What they ask for is to restore the program(s) to the state that they left it in. Files open, state loaded in memory etc. This should be an easier problem than a special boot sequence that is restoring hardware state. There’s probably one or two programs open at a time, that I don’t want to lose my place in, maybe some that I’ve written myself. If we wanted to add a “save state” option in the title bar would that be a tractable problem?
Of course app developers can make a restart less painful too. Web browsers have already implemented restoring tabs from the last use, and Outlook will automatically save any of your drafts. For any work in the cloud, you really just need a pick up where you left off cue.
- hobonate 6y agoI agree that you should be able to suspend individual programs to disk, but I disagree with the idea that application developers should make their own suspend-to-disk functions, as they would all be basically implementing the same thing. Instead, I think the kernel/OS should implement this feature instead (perhaps as a something like SIGINT that can be overridden). This would be great on hardware like the pinephone, where you have multiple programs vying for memory but only 1 app is really being used at any given moment (because of screen space). As far as I know this is already implemented in android somehow. I think it would be simpler if the operating system suspended programs automatically, because it already knows how much memory the system has, the memory speeds, and all that, so it could probably figure the optimal way to shuffle programs around.