Save a process' memory for later use?

前端 未结 8 1700
温柔的废话
温柔的废话 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:26

    Raymond Chen explains why it's impossible. Obviously, not all Microsoft engineers read this, because the Visual Studio compiler does this when precompiling headers. Its dumps its own state after compiling the headers for the first time, and restores itself to continue.

    0 讨论(0)
  • 2020-12-14 01:31

    Well java has serialization and it comes somewhere near to it. Though you can't do it to the lowest level like CPU registers memory address etc since this will require os to be in same state that was when you 'paused' the process.

    This can be a good project as a linux kernel module :-)

    0 讨论(0)
提交回复
热议问题