201248401 六、發明說明: 【發明所屬之技術領域】 [0001] 本發明涉及一種電腦狀態快速切換方法及系統。 【先前技術】 [0002] 在現代社會中,電腦在人們的工作、學習、交流、娛樂 等各方面扮演著重要甚至不可或缺的角色。現實生活中 ,人們大多數情況下是和軟體打交道,如工作、學習、 娛樂時就會用到很多不同的軟體。但是軟體一多起來, 如何快速高效的管理好這些軟體成為一個問題。比如當 處於工作狀態時,電腦系統運行著一系列與工作相關的 軟體。當工作結束,想要娛樂一下時,就得將這些工作 軟體一個個的關閉,再將娛樂軟體一個個的打開。而如 果不關閉工作軟體,又會佔用系統資源。當想再一次進 入工作狀態時,又要重複這樣的動作,將娛樂軟體一一 關閉,再將工作軟體重新打開,相當的繁瑣。另一方面 ,每個軟體都有某些固定的使用狀態,如輸入密碼、 load某一個檔案、進入某個頁面進行操作等。而並非每 一款軟體都有保存當前工作狀態的功能。這時就無法快 速的回到軟體上一次使用時的狀態。 [0003] 此外,隨著電腦使用時間的延長,系統會因為記憶體洩 露等原因逐漸變得緩慢,而目前解決該問題的辦法,一 般都是過一段時間就重啟一次系統。現有的待機、休眠 等技術能夠部分實現系統狀態備份的目的,但針對的只 是系統節電問題,只能保存一個系統狀態,無法切換, 且必須在下次開機時,才能恢復到之前退出時的狀態。 100119715 表單編號A0101 第4頁/共22頁 1002033346-0 201248401 同時恢復後的系統狀態仍然是之前運行了 一段時間的狀 態,並不能加快系統的運行速度。現有的系統還原功能 則保存的是作業系統的狀態,並不包括應用程式的當前 使用狀態。而多帳戶功能雖然可以實現不同系統狀態的 切換,但不同帳戶中的程式實際上是在同時運行,在系 統資源的利用上並不能有所提高,且同一個人一般不會 在多個帳戶上運行不同的程式。 [0004] Ο [0005] [0006]201248401 VI. Description of the Invention: [Technical Field of the Invention] [0001] The present invention relates to a method and system for quickly switching a computer state. [Prior Art] [0002] In modern society, computers play an important and even indispensable role in people's work, study, communication, and entertainment. In real life, people mostly deal with software, such as work, study, entertainment, and many different software. But with more software, how to quickly and efficiently manage these software becomes a problem. For example, when in working state, the computer system runs a series of work-related software. When the work is over and you want to entertain, you have to close the work software one by one, and then open the entertainment software one by one. If you do not close the working software, it will take up system resources. When you want to enter the working state again, you have to repeat such an action, turn the entertainment software one by one, and then re-open the working software, which is quite cumbersome. On the other hand, each software has some fixed usage status, such as entering a password, loading a file, entering a page for operation, and so on. Not every software has the ability to save the current working state. At this time, it is not possible to quickly return to the state when the software was last used. [0003] In addition, with the prolonged use of the computer, the system will gradually become slow due to memory leakage, etc., and the current solution to the problem is generally to restart the system after a period of time. The existing standby, hibernation and other technologies can partially realize the system state backup, but only the system power saving problem can only save one system state, cannot be switched, and must be restored to the previous exit state when the next power is turned on. 100119715 Form No. A0101 Page 4 of 22 1002033346-0 201248401 The state of the system after recovery is still a state that has been running for a while and does not speed up the system. The existing system restore function saves the state of the operating system and does not include the current state of use of the application. While the multi-account function can switch between different system states, the programs in different accounts are actually running at the same time, and the utilization of system resources cannot be improved, and the same person generally does not run on multiple accounts. Different programs. [0004] [0005] [0006]
因此目前尚沒有類似的軟體可以解決上述問題。在當前 外部記憶體的容量和性價比越來越高的情況下,設計一 種快速保存和切換電腦使用狀態的方法顯得非常必要和 可行。 【發明内容】 鑒於以上内容,有必要提供一種電腦狀態快速切換方法 及系統,能夠快速進行電腦系統狀態的切換,提高了電 腦的使用效率。 所述電腦狀態快速切換方法,應用於電腦的狀態切換, 該方法包括以下步驟:選擇步驟:接收用戶的選擇操作 ,當選擇保存電腦當前使用狀態時,執行判斷步驟一, 當選擇恢復電腦之前使用狀態時,執行判斷步驟二;判 斷步驟一:對硬碟的空間進行檢索,判斷在硬碟中是否 存在足夠大空間進行電腦當前使用狀態的存儲,當有足 夠大空間時,執行保存步驟,當沒有足夠大空間時,直 接結束流程;保存步驟:在硬碟中建立一個檔案,該檔 案大小與電腦整個記憶體大小一樣,並將電腦當前使用 狀態保存至該檔案中;判斷步驟二:判斷在硬碟中是否 100119715 表單編號Α0101 第5頁/共22頁 1002033346-0 201248401 復步的電腦之前使用狀態,當存在時,執行恢 碟上將麵’ 4接結束錄;恢復步驟:從硬 容直接:要恢设的電腦之前使用狀態對應的權案中的内 今直接讀入電腦記憶體。 [0007] 所述電腦狀態快速切換 杯1 疋刀換系统,運行於電腦中,該系統包 Φ «#^組’用於接收用戶的選擇操作,判斷是保存 K '使用狀態’還是恢復電腦之前使隸態;判斷 #、 祕§轉鱗電腦當前個狀態時,對硬碟 的空間進行檢索’判斷在硬碟中是否存在^夠大空間進 行電腦使用狀態的存儲;保存模組,用於當硬碟中 存在足夠大空間保存電腦當前使用狀態時,在硬碟中建 立一個檔案,該檔案大小與電腦整個記憶體大小一樣, 並將電腦當前使用狀態保存至該檔案中;判斷模組二, 用於當選擇恢復電腦之前使用狀態時,判斷在硬碟中是 否存在需要恢復的電腦之前使用狀態;恢復模組,用於 當硬碟中存在需要恢復的電腦之前使用狀態時,從硬碟 上將需要恢復的電腦之前使用狀態對應的檔案中的内容 直接讀入電腦記憶體。 [0008] 相較於習知技術,本發明所述之電腦狀態快速切換方法 及系統,能夠快速進行電腦系統狀態的切換’提高了電 腦的使用效率。 【實施方式】 [0009] 如圖1所示,係為本發明電腦狀態快速切換系統較佳實施 例之架構圖。 [0010] 電腦狀態快速切換系統20運行於電腦10中,該電腦10外 100119715 表單編號A0101 第6頁/共22頁 201248401 接顯示器40、鍵盤50及滑鼠60。所述電腦10中還包括硬 碟30,該硬碟30既可以内置於電腦10中,也可外接於電 腦10,本較佳實施例以硬碟30内置於電腦10中為例進行 介紹。硬碟30用於保存電腦10的使用狀態的備份檔案。 [0011] 所述顯示器40用於提供人機交互的介面以便用戶能夠通 過鍵盤50進行密碼的輸入,及通過滑鼠60進行切換電腦 10的使用狀態的操作,還可進行硬碟30中保存的電腦10 的使用狀態的備份檔案的查看。另外,用戶還可通過滑 ^ 鼠60在電腦10中對所需要進行的操作進行選擇。 Ο [0012] 如圖2所示,係為本發明電腦狀態快速切換系統較佳實施 例之功能模組圖。 [0013] 所述電腦狀態快速切換系統20包括選擇模組200、接收模 組一 201、判斷模組一 202、保存模組203、接收模組二 204、判斷模組二205、恢復模組206、密碼驗證模組207 ) [〇〇14] 所述選擇模組200用於接收用戶的選擇操作,判斷是保存 電腦10當前使用狀態,還是恢復電腦10之前使用狀態。 用戶在顯示器40提供的人機交互介面上,對操作進行選 擇,此時,可選擇的為保存電腦10當前使用狀態和恢復 電腦10之前使用狀態。 [0015] 所述接收模組一 201用於當選擇保存電腦1 0當前使用狀態 時,接收用戶保存電腦10當前使用狀態的需求的輸入。 如用戶正處於工作狀態,電腦10中運行著一系列與工作 相關的軟體,此時用戶想娛樂一下,又不想與工作相關 100119715 表單編號 A0101 第 7 頁/共 22 頁 1002033346-0 201248401 [0016] [0017] 的軟體佔用系統資源,就 ,在關閉與工作相_軟體=心f工作相關的軟體 狀態進行保存。 、’可將電腦10當前使用 所述判斷模組一 202用於對硬 在硕蹀心士 θ 咬碟30的空間進行檢索,判斷 在硬碟3G中是否妓夠大 到所 態的存儲。 彳進仃電韻當前使用狀電腦1〇和應咖賴㈣種使嶋,其實 應者記憶體的存儲狀態,⑽讀寫指令和資料都是和記憶 體進行交互。保存電觀#前使綠態,其實f就是保 存電腦1G整個記賴巾的資料,在硬側巾用―個與電 腦1〇整個記憶體大小相同的檔案進行保存。此時,判斷 模組一202判斷的就是,硬碟30中是否有大於或等於電腦 10當前整個記憶體大小的空間。 Ο [0018] [0019] 所述保存模組203用於當硬碟30中存在足夠大空間保存電 腦10當前使用狀態時,在硬碟30中建立一個檔案,該槽 案大小與電腦10整個記憶體大小一樣,並將電腦1 〇當前 使用狀態保存至該檔案中。此檔案可以所保存的電腦10 〇 當前所處狀態進行命名,例如保存電腦10工作時的狀態 ,可命名為“工作時狀態”,也可以保存時間命名。 此保存原理與Ghost給電腦系統做鏡像的道理一樣,不過 與Ghost不同的是:Ghost保存的是整個電腦10的系統資 訊,而此時保存的是電腦10正在運行的資訊。由於電腦 10正在運行的資訊就是電腦10當前使用狀態,為保持電 腦10當前使用狀態不變(可理解為不能壓縮),在硬碟 100119715 表單編號A0101 第8貢/共22頁 1002033346-0 201248401 30中開闢一個和電腦10記憶體容量大小相等的空間以保 證能裝下整個記憶體的資料,即保存電腦10正在運行的 資訊就是保存電腦10整個記憶體的資料,此時在硬碟30 上所開闢的空間的體積一般為實體記憶體的大小(比如 電腦10的記憶體是256MB,在硬碟30上所開闢的空間的 體積也將是256MB)。 [0020] 如圖4所示,所述保存模組203的具體步驟為:在硬碟30 的空間中,建立一個檔案,此檔案大小與電腦10正運行 _ 整個記憶體的空間大小相等,並將此檔案進行命名。之 〇 後,將電腦10正在運行的資訊複製至硬碟30所建立的檔 案中。所述複製電腦10正在運行的資訊就是複製電腦10 整個記憶體的資料,包括已使用記憶體塊,空白記憶體 塊及電腦狀態快速切換系統2 0運行記憶體塊等。 [0021] 電腦10處於不同狀態時,均可通過保存模組203進行保存 電腦10當前使用狀態,並分別以不同檔案名命名。每個 電腦10當前使用狀態在硬碟30中均對應一個檔案。此時 〇 檔案的命名可以所保存的電腦1 〇當前所處狀態進行命名 ,如電腦10剛剛開機時的狀態,記憶體中沒有很多程式 和洩露,此時系統運行速度是最快的,保存時,檔案可 命名為“剛開機時狀態”。 [0022] 所述接收模組二204用於當選擇恢復電腦1 0之前使用狀態 時,接收用戶對電腦10之前使用狀態進行恢復的輸入。 如用戶已工作一段時間,此時用戶想娛樂一下,想將電 腦10的使用狀態切換到娛樂狀態。 100119715 表單編號A0101 第9頁/共22頁 1002033346-0 201248401 [0023] 所述判斷模組二205用於判斷在硬碟3〇中是否存在需要恢 復的電腦10之前使用狀態。用戶在顯示器4〇提供的人機 交互介面上對硬碟30進行查看,判斷是否存在需要恢復 的電腦10之前使用狀態。此時在硬碟3〇中查看的是電腦 10之前使用狀態所對應的檔案是否存在。 [0024] 所述恢復模組206用於當硬碟30中存在需要恢復的電腦1〇 之前使用狀態時,從硬碟30上將需要恢復的電腦1〇之前 使用狀fe對應的檔案中的内容直接讀入電腦丨〇記憶體, 使電腦10恢復到之前使用狀態。 [〇〇25]如圖4所示,所述恢復模組206的具體操作為:在硬碟3〇 的空間中,找到需要恢復的電腦1〇之前使用狀態所對應 稽案,將對應檔案讀至電腦1〇記憶體中。 [0026] 例如,用戶在娛樂狀態時,想進入工作狀態,此時工作 狀態為需要恢復的電腦10之前使用狀態。此時,需先在 硬碟30中,對所有狀態檔案查看,判斷是否存在檔案名 為工作時狀態”的檔案,如圖4所示。當存在此“工作 時狀態檔案時,將此“工作時狀態,’檔案讀入電腦1〇 記憶體中。 [0027] 需要說明的是,所述電腦狀態快速切換系統2〇還存在密 碼驗證模組207,用於在開啟電腦狀態快速切換系統2〇時 對用戶身份的驗證。當用戶所輸入用戶名與密碼正確時 ’才可開啟電腦狀態快速切換系統20。 [0028] 如圖3所示,係為本發明電腦狀態快速切換方法較佳實施 例之流程圖。 100119715 表單編號A0101 第10頁/共22頁 1002033346-0 201248401 [0029] 步驟S100,所述選擇模組200接收用戶的選擇操作,判斷 是保存電腦10當前使用狀態,還是恢復電腦10之前使用 狀態。當選擇保存電腦10當前使用狀態時,執行步驟 S101,當選擇恢復電腦10之前使用狀態時,執行步驟 S104。 [0030] 步驟S101,所述接收模組一201接收用戶保存電腦10當 前使用狀態的需求的輸入。如用戶正處於工作狀態,電 腦10中運行著一系列與工作相關軟體,此時用戶想娛樂 π —下,又不想與工作相關軟體佔用系統資源,就得關閉 〇 工作相關軟體,在關閉工作相關軟體之前,可將電腦10 當前使用狀態進行保存。 [0031] 步驟S102,所述判斷模組一202對硬碟30的空間進行檢 索,判斷在硬碟30中是否有足夠大空間可進行電腦10當 前使用狀態的存儲。當有足夠大空間時,執行步驟S103 ,當沒有足夠大空間時,直接結束流程。 [0032] 電腦10和應用軟體無論處於何種使用狀態,其實質是對 D 應著記憶體的存儲狀態,CPU讀寫指令和資料都是和記憶 體進行交互。保存電腦10當前使用狀態,其實質就是保 存電腦10整個記憶體中的資料,在硬碟30中用一個與電 腦10整個記憶體大小相同的檔案進行保存。此時,判斷 模組一 202判斷的就是,硬碟30中是否有大於或等於電腦 10當前整個記憶體大小的空間。 [0033] 步驟S103,所述保存模組203在硬碟30中建立一個檔案 ,該檔案大小與電腦10整個記憶體大小一樣,並將電腦 100119715 表單編號A0101 第11頁/共22頁 1002033346-0 201248401 ίο當前使用狀態保存至該檔案中。此檔案可以所保存的 電腦10當前所處狀態進行命名,例如保存電腦10工作時 的狀態,可命名為“工作時狀態”。 [0034] 如圖4所示,所述保存模組203的具體步驟為:在硬碟30 的空間中,建立一個檔案,此檔案大小與電腦10正運行 整個記憶體的空間大小相等,並將此檔案進行命名。之 後,將電腦10正在運行的資訊複製至硬碟30所建立的檔 案中。所述複製電腦10正在運行的資訊就是複製電腦10 整個記憶體的資料,包括已使用記憶體塊,空白記憶體 塊及電腦狀態快速切換系統20運行記憶體塊等。 [0035] 步驟S104,所述接收模組二204接收用戶對電腦10之前 使用狀態進行恢復的輸入。如用戶已工作一段時間,此 時用戶想娛樂一下,想將電腦10的使用狀態切換到娛樂 狀態。 [0036] 步驟S1 05,所述判斷模組二205用於判斷在硬碟30中是 否存在需要恢復的電腦10之前使用狀態。當存在時,則 執行步驟S106,當不存在時,則直接結束流程。 [0037] 步驟S106,所述恢復模組206從硬碟30上將需要恢復的 電腦10之前使用狀態對應的檔案中的内容直接讀入電腦 10記憶體,使電腦10恢復到之前使用狀態。 [0038] 如圖4所示,所述恢復模組具體操作為:在硬碟30的空間 中,找到需要恢復的電腦10之前使用狀態所對應檔案, 將對應檔案讀至電腦10記憶體中。 [0039] 例如,用戶在娛樂狀態時,想進入工作狀態,此時工作 100119715 表單編號A0101 第12頁/共22頁 1002033346-0 201248401 狀態為需要恢復的電腦10之前使用狀態。此時,需先在 硬碟30中,對所有狀態檔案查看,判斷是否存在檔案名 為“工作時狀態”的檔案。當存在此“工作時狀態,,檔 案時,將此“工作時狀態’’檔案讀入電腦丨〇記憶體中。 [0040]需要說明的是,該電腦狀態快速切換系統2〇還存在密碼 驗證模組207,用於在開啟電腦狀態快速切換系統2〇時對 用戶身份的驗證。當用戶所輸入用戶名與密碼正峰時, 才可開啟電腦狀態快速切換系統20。 〇 [〇〇41] 綜上所述,本發明符合發明專利要件,爰依法提出專利 申請。惟,以上所述者僅爲本發明之較佳實施例,本發 明之範圍並不以上述實施例爲限,舉凡熟悉本案技藝之 人士援依本發明之精神所作之等效修飾或變化,皆應涵 蓋於以下申請專利範圍内。 【圖式簡單說明】 [0042] 圖1係為本發明電腦狀態快速切換系統較佳實施例之架構 圖。 ❹ [〇〇43] 圖2係為本發明電腦狀態快速切換系統較佳實施例之功能 模組圖。 [〇〇44] 圖3係為本發明電腦狀態快速切換方法較佳實施例之流程 [0045] 圖4係為本發明之記憶體工作方法示例圖。 【主要元件符號說明】 [0046] 電腦 10 1002033346-0 100119715 表單編號A0101 第13頁/共22頁 201248401 [0047] 電腦狀態快速切換系統2 0 [0048] 硬碟 30 [0049] 顯示器4 0 [0050] 鍵盤 50 [0051] 滑鼠 60 [0052] 選擇模組200 [0053] 接收模組一 201 [0054] 判斷模組一 202 [0055] 保存模組203 [0056] 接收模組二204 [0057] 判斷模組二205 [0058] 恢復模組206 [0059] 密碼驗證模組207 [0060] 保存還是恢復? S1 00 [0061] 接收用戶保存電腦當前使用狀態的輸入S101 [0062] 判斷硬碟中是否有足夠大空間? S102 [0063] 保存電腦當前使用狀態至硬碟S1 03 [0064] 接收用戶對電腦之前使用狀態進行恢復的輸入S104 [0065] 硬碟中是否存在需要恢復的電腦之前使用狀態? S105 100119715 表單編號A0101 第14頁/共22頁 1002033346-0 201248401 [0066] 將選擇的電腦使用狀態進行恢復S106Therefore, there is no similar software to solve the above problems. In the current situation where the capacity and cost performance of external memory are getting higher and higher, it is very necessary and feasible to design a method for quickly saving and switching the state of use of the computer. SUMMARY OF THE INVENTION In view of the above, it is necessary to provide a method and system for quickly switching between computer states, which can quickly switch the state of the computer system and improve the use efficiency of the computer. The computer state fast switching method is applied to state switching of a computer, and the method comprises the following steps: selecting a step: receiving a user's selection operation, and when selecting to save the current use state of the computer, performing the determining step one, before selecting to restore the computer In the state, the judgment step 2 is performed; the judgment step 1: the space of the hard disk is retrieved, and it is judged whether there is enough space in the hard disk to store the current use state of the computer, and when there is enough space, the save step is performed, when If there is not enough space, the process ends directly; save step: create a file on the hard disk, the file size is the same as the computer's entire memory size, and save the current state of the computer to the file; judgment step 2: judge Whether the hard disk is 100119715 Form No. 1010101 Page 5 / Total 22 Page 1002033346-0 201248401 The state of the computer before the step is re-executed, when it exists, the face of the recovery disk is '4 connected to the end record; the recovery step: directly from the hard capacity : The computer to be restored should be read directly from the current and current rights in the corresponding state of use. Computer memory. [0007] The computer state fast switching cup 1 file changing system, running in a computer, the system package Φ «#^ group' is used to receive the user's selection operation, determine whether to save the K 'usage state' or before recovering the computer Make the state; judge #, secret § turn the current state of the scale computer, search the space of the hard disk 'determine whether there is enough space in the hard disk to store the computer state; save the module, when used When there is enough space on the hard disk to save the current state of use of the computer, create a file on the hard disk, the file size is the same as the entire memory size of the computer, and save the current state of use of the computer to the file; It is used to determine whether there is a pre-installation state of the computer that needs to be restored on the hard disk when selecting the state before the recovery of the computer; the recovery module is used when the state is used before the computer in the hard disk needs to be restored, from the hard disk The contents of the file corresponding to the state of use before the computer to be restored are directly read into the computer memory. Compared with the prior art, the computer state fast switching method and system according to the present invention can quickly switch the state of the computer system to improve the use efficiency of the computer. [Embodiment] FIG. 1 is a block diagram showing a preferred embodiment of a computer state fast switching system according to the present invention. [0010] The computer state fast switching system 20 runs in the computer 10, the computer 10 is outside 100119715 Form No. A0101 Page 6 of 22 201248401 The display 40, the keyboard 50 and the mouse 60 are connected. The computer 10 further includes a hard disk 30. The hard disk 30 can be built into the computer 10 or externally connected to the computer 10. The preferred embodiment is described in which the hard disk 30 is built into the computer 10. The hard disk 30 is used to save a backup file of the state of use of the computer 10. [0011] The display 40 is configured to provide a human-computer interaction interface so that a user can input a password through the keyboard 50, and perform an operation of switching the use state of the computer 10 through the mouse 60, and can also be saved in the hard disk 30. View the backup file of the usage status of the computer 10. In addition, the user can also select the desired operation in the computer 10 by sliding the mouse 60. [0012] As shown in FIG. 2, it is a functional module diagram of a preferred embodiment of the computer state fast switching system of the present invention. [0013] The computer state fast switching system 20 includes a selection module 200, a receiving module 201, a determining module 202, a saving module 203, a receiving module 204, a determining module 205, and a recovery module 206. The password verification module 207) [〇〇14] The selection module 200 is configured to receive a user's selection operation, determine whether to save the current use state of the computer 10, or restore the previous use state of the computer 10. The user selects the operation on the human-machine interaction interface provided by the display 40. At this time, the current state of use of the computer 10 and the state of use before the computer 10 are restored can be selected. [0015] The receiving module one 201 is configured to receive an input of a requirement for the user to save the current use state of the computer 10 when the current state of the computer 10 is saved. If the user is working, the computer 10 runs a series of work-related software. At this time, the user wants to entertain and does not want to be related to work. 100119715 Form No. A0101 Page 7 of 22 1002033346-0 201248401 [0016] [0017] The software occupies system resources, and the software state related to the working phase_software=heart f work is closed. The computer 10 can use the judging module 202 to search for the space in the hard disk 3 to determine whether it is large enough in the hard disk 3G.彳 仃 仃 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前 当前Preservation of the electricity view # before the green state, in fact, f is to save the computer 1G the entire record of the towel, the hard side towel with a file with the same size of the entire computer memory. At this time, the judging module 202 determines whether there is a space in the hard disk 30 that is greater than or equal to the current memory size of the computer 10. [0019] The save module 203 is configured to create a file in the hard disk 30 when there is a sufficient space in the hard disk 30 to save the current use state of the computer 10, and the size of the slot and the entire memory of the computer 10 The body size is the same, and the computer 1 〇 current usage status is saved to the file. This file can be named after the current state of the saved computer 10 ,, for example, to save the state of the computer 10 when working, can be named "working time status", can also save time naming. This save principle is the same as Ghost mirroring the computer system, but unlike Ghost: Ghost saves the system information of the entire computer 10, and at this time, the information that the computer 10 is running is saved. Since the information that the computer 10 is running is the current state of use of the computer 10, in order to keep the current state of use of the computer 10 unchanged (can be understood as not compressible), on the hard disk 100119715 form number A0101 8th tribute / total 22 pages 1002033346-0 201248401 30 Open a space equal to the size of the computer 10 memory to ensure that the entire memory can be loaded, that is, the information that the computer 10 is running is to save the entire memory of the computer 10, at this time on the hard disk 30 The volume of the space opened is generally the size of the physical memory (for example, the memory of the computer 10 is 256 MB, and the space opened on the hard disk 30 will also be 256 MB). [0020] As shown in FIG. 4, the specific steps of the save module 203 are: in the space of the hard disk 30, a file is created, and the file size is equal to the size of the computer 10 running _ the entire memory, and Name this file. After that, the information that the computer 10 is running is copied to the file created by the hard disk 30. The information that the copy computer 10 is running is to copy the data of the entire memory of the computer 10, including the used memory block, the blank memory block, and the computer state fast switching system 20 running memory block. [0021] When the computer 10 is in different states, the current usage state of the computer 10 can be saved by the saving module 203, and named by different file names. The current state of use of each computer 10 corresponds to a file in the hard disk 30. At this time, the naming of the file can be named after the current state of the saved computer 1 . For example, when the computer 10 is just turned on, there are not many programs and leaks in the memory. At this time, the system runs at the fastest speed. The file can be named "just when it is powered on". [0022] The receiving module two 204 is configured to receive an input of the user to restore the previous use state of the computer 10 when the state before the recovery of the computer 10 is selected. If the user has been working for a while, the user wants to entertain and wants to switch the state of use of the computer 10 to the entertainment state. 100119715 Form No. A0101 Page 9 of 22 1002033346-0 201248401 [0023] The judging module 205 is configured to judge whether there is a state before use of the computer 10 that needs to be restored in the hard disk. The user views the hard disk 30 on the human-machine interface provided by the display 4 to determine whether there is a state of use of the computer 10 that needs to be restored. At this time, it is checked in the hard disk 3〇 whether the file corresponding to the state of use before the computer 10 exists. [0024] The recovery module 206 is configured to use the content in the file corresponding to the shape of the fe1 before the computer that needs to be restored from the hard disk 30 when there is a state in the hard disk 30 before the computer that needs to be restored is used. Directly read into the computer's memory to restore the computer 10 to its previous state of use. [25] As shown in FIG. 4, the specific operation of the recovery module 206 is: in the space of the hard disk 3, find the computer corresponding to the state of use before the computer needs to be restored, and read the corresponding file. Go to the computer 1 memory. [0026] For example, when the user is in an entertainment state, he or she wants to enter a working state, and the working state at this time is a state before use of the computer 10 that needs to be restored. At this point, you need to first view all the status files on the hard disk 30 to determine whether there is a file named "Working Status", as shown in Figure 4. When there is this "Worktime Status File, this will work" In the state, the file is read into the memory of the computer. [0027] It should be noted that the computer state fast switching system 2 also has a password verification module 207 for quickly switching the system in the computer state. When the user name and password are entered correctly, the computer state fast switching system 20 can be turned on. [0028] As shown in FIG. 3, it is a preferred embodiment of the computer state fast switching method of the present invention. Flowchart 100119715 Form No. A0101 Page 10 / Total 22 Page 1002033346-0 201248401 [0029] Step S100, the selection module 200 receives the user's selection operation, determines whether to save the current use state of the computer 10, or restore the computer 10 The previous use state. When the save current state of the computer 10 is selected, step S101 is performed, and when the use state before the recovery of the computer 10 is selected, step S104 is performed. Step S101, the receiving module 201 receives an input of a user's need to save the current state of use of the computer 10. If the user is in a working state, the computer 10 runs a series of work-related software, and the user wants to entertain π- If you do not want the work-related software to occupy the system resources, you must close the work-related software, and save the current use status of the computer 10 before closing the work-related software. [0031] Step S102, the determination module 202 pairs The space of the hard disk 30 is searched to determine whether there is enough space in the hard disk 30 for storing the current state of use of the computer 10. When there is sufficient space, step S103 is performed, and when there is not enough space, the flow is directly ended. [0032] Regardless of the state of use of the computer 10 and the application software, the essence is that the storage state of the memory should be performed for the D, and the CPU read and write commands and data are all interacted with the memory. The current state of use of the computer 10 is saved. The essence is to save the data in the entire memory of the computer 10, and the same size as the entire memory of the computer 10 is used in the hard disk 30. The file is saved. At this time, the judging module 202 determines whether there is a space in the hard disk 30 that is greater than or equal to the current memory size of the computer 10. [0033] Step S103, the saving module 203 is on the hard disk. 30 creates a file, the file size is the same as the size of the entire memory of the computer 10, and saves the current state of the computer 100119715 form number A0101 page 11 / 22 pages 1002033346-0 201248401 ίο to the file. The state of the saved computer 10 is currently named, for example, the state when the computer 10 is working, and can be named "working state". [0034] As shown in FIG. 4, the specific steps of the save module 203 are: in the space of the hard disk 30, a file is created, and the file size is equal to the size of the space in which the computer 10 is running the entire memory, and This file is named. Thereafter, the information that the computer 10 is running is copied to the file created by the hard disk 30. The information that the copy computer 10 is running is to copy the data of the entire memory of the computer 10, including the used memory block, the blank memory block, and the computer state fast switching system 20 to run the memory block. [0035] Step S104, the receiving module two 204 receives an input of the user to restore the previous use state of the computer 10. If the user has been working for a while, the user wants to entertain and wants to switch the usage state of the computer 10 to the entertainment state. [0036] Step S1 05, the determining module 2205 is configured to determine whether there is a state of use before the computer 10 that needs to be restored in the hard disk 30. When it exists, step S106 is performed, and when it does not exist, the flow is directly ended. [0037] Step S106, the recovery module 206 directly reads the content in the file corresponding to the state of use before the computer 10 that needs to be restored from the hard disk 30 into the memory of the computer 10, so that the computer 10 is restored to the previous use state. As shown in FIG. 4, the recovery module is specifically configured to: in the space of the hard disk 30, find a file corresponding to the state of use before the computer 10 to be restored, and read the corresponding file into the memory of the computer 10. [0039] For example, when the user is in the entertainment state, he wants to enter the working state, and at this time works 100119715 Form No. A0101 Page 12 / Total 22 Page 1002033346-0 201248401 The state is the state before use of the computer 10 that needs to be restored. In this case, you must first view all status files on the hard disk 30 to determine whether there is a file whose file name is “Working Status”. When there is this "working status", the "working status" file is read into the computer memory. [0040] It should be noted that the computer state fast switching system 2 also has a password verification module 207 for verifying the user identity when the computer state fast switching system 2 is turned on. The computer state fast switching system 20 can be turned on when the user inputs a positive password for the user name and password. 〇 [〇〇41] In summary, the present invention complies with the requirements of the invention patent and submits a patent application according to law. The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited to the above-described embodiments, and equivalent modifications or variations made by those skilled in the art in light of the spirit of the present invention are It should be covered by the following patent application. BRIEF DESCRIPTION OF THE DRAWINGS [0042] FIG. 1 is a block diagram of a preferred embodiment of a computer state fast switching system of the present invention. 〇〇 [〇〇43] Fig. 2 is a functional block diagram of a preferred embodiment of the computer state fast switching system of the present invention. [0044] FIG. 3 is a flow chart of a preferred embodiment of a computer state fast switching method according to the present invention. [0045] FIG. 4 is a diagram showing an example of a memory working method of the present invention. [Description of main component symbols] [0046] Computer 10 1002033346-0 100119715 Form No. A0101 Page 13 of 22 201248401 [0047] Computer State Fast Switching System 2 0 [0048] Hard Disk 30 [0049] Display 4 0 [0050] Keyboard 50 [0051] Mouse 60 [0052] Selection Module 200 [0053] Receiving Module One 201 [0054] Judging Module One 202 [0055] Saving Module 203 [0056] Receiving Module Two 204 [0057] Judging Module 2 205 [0058] Recovery Module 206 [0059] Password Verification Module 207 [0060] Save or Restore? S1 00 [0061] Receive input S101 for the user to save the current state of use of the computer [0062] Determine whether there is enough space in the hard disk? S102 [0063] Saving the current state of use of the computer to the hard disk S1 03 [0064] Receiving the input S104 of the user to restore the previous use state of the computer [0065] Is there a pre-use state of the computer in the hard disk that needs to be restored? S105 100119715 Form No. A0101 Page 14 of 22 1002033346-0 201248401 [0066] Restore the selected computer usage status S106
100119715 表單編號A0101 第15頁/共22頁 1002033346-0100119715 Form No. A0101 Page 15 of 22 1002033346-0