如何保存计算机状态. [英] how can i save the STATE of computer.

查看:104
本文介绍了如何保存计算机状态.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一个项目,该项目将保存所有计算机程序的状态,以防计算机被挂起.
该软件将在后台运行,并在计算机挂起之前保存所有程序的状态,以后再从早期状态恢复工作.
这样可以节省用户的工作和时间.

[edit]删除了伪代码块-OriginalGriff [/edit]

i m working on a project which will save the state of all computer programs in case computer gets hanged.
this software will run in background and will save state of all programs before computer hangs and later resumes working from earliar state.
thus it will save users work and time.

[edit]Spurious code block removed - OriginalGriff[/edit]

推荐答案

没有正在运行的应用程序上的配合,您将无法做到这一点,因此,您显然无法做到这一点. br/> 您所能做的就是记录(并定期更新)正在运行的应用程序列表,并在PC重新启动后再次运行此类应用程序.
You cannot do that without the cooperation on the running applications, hence you plainly cannot do that.
All you can do is recording (and periodically update) a list of running applications and, after the PC restart, run again such applications.


我认为您在这里很失败:为此,您必须连续保存PC内存的整个状态(物理和虚拟状态),并且可能还保存某些HDD状态.

您是否知道要保存多少数据以及要多久保存一次?另外,还有其他问题:
1)保存虚拟内存内容意味着将其分页回物理内存,因此保存操作将更改保存的数据...
2)您不能直接访问所有系统内存,而不能访问OS低级内容.
3)您必须找出构成"PC挂起"事件的原因并进行检测.那你就不必保存了...
等等.

找到另一个项目:这是一个等待失败的大失败.
I think you are on a loser here: in order to do that, you would have to save the entire state of the PC memory (both physical and virtual) continually, probably with some HDD status as well.

Do you realize how much data you would be saving, and how often you would be saving it? Plus, there are other problems:
1) Saving the virtual memory content would mean paging it back into physical memory, so the act of saving would change the data saved...
2) You can''t access all the system memory directly without access to OS low level stuff.
3) You have to work out what constitutes a "PC hang" event and detect it. Then you have to not save after it...
and so on.

Find another project: this one is a big fail waiting to happen.


这是IT版本的让我们尝试减少系统熵"的问题.
您只能通过在另一个系统上创建更多功能来成功,而这可能是您不想要的!
这是反物理学.
This is the IT version of the "let''s try to reduce the entropy of a system" problem.
You can succeed only by creating more on another system, that probably doesn''t want it!
It''s anti-physics.


这篇关于如何保存计算机状态.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆