持久化(休眠!)一个进程状态到磁盘以进行quiker加载 [英] Persist (hibernate!) a process state to disk for quiker loading
问题描述
是否有任何直接的方法可以将进程状态(C ++ / C#window exe)持久化(休眠!)到磁盘,以便以后可以在需要时快速加载?
Is there any straight forward way to Persist (hibernate!) a process state (C++/C# window exe) to disk so that it can be quickly loaded later when required?
谢谢
~Pervez
推荐答案
一种方法是在软件中制作一切可序列化:
One way would be to make EVERYTHING in your software serializable:
http://msdn.microsoft.com/en-us/library/ms233843.aspx
http://msdn.microsoft.com/en-us/library/ms233843.aspx
(我喜欢)http: //msdn.microsoft.com/en-us/library/ms733127.aspx
(and I like) http://msdn.microsoft.com/en-us/library/ms733127.aspx
然后你可以相对轻松地转储和加载对象...我不认为有一个但就像hibernate这样的机制。
Then you can dump and load the objects with relative ease...I don't think there is a mechanism like hibernate though.
这篇关于持久化(休眠!)一个进程状态到磁盘以进行quiker加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!