Freeze Apps by saving the memory into a file

You might have guessed that I got this idea from ROM emulators. Instead of killing the application to stop the server, save the memory of the container into a file. Upon resuming the memory would be simply loaded again and the app could start faster. I’m not exactly sure if this was clear or if this is completely impossible or hard to implement.