Save a process' memory for later use?

前端 未结 8 1717
温柔的废话
温柔的废话 2020-12-14 00:28

Is it possible to pause a process, save the memory contents to a file, and then later reload the file so you can continue the program?

Edit I\'ve be

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-14 01:25

    It's messy to the point of being impossible when dealing with native code, as sharptooth mentions.

    However, some programs (iirc emacs, for instance) have used "dump my own memory" tricks to preserve configuration, instead of dealing with config files. This doesn't work on Windows, though, since executables are run in deny-write share mode. But it's a cute (albeit dangerous) trick on linux or DOS :)

提交回复
热议问题