See also DMTCP and Cryopid used to be a thing. It's even possible to save X11 apps to disk and restore them after a reboot. If you want to be able to...