Electronic device for processing background task by using external input and storage medium thereof
US-2021311783-A1 · Oct 7, 2021 · US
US12169432B2 · US · B2
| Field | Value |
|---|---|
| Publication number | US-12169432-B2 |
| Application number | US-202217955695-A |
| Country | US |
| Kind code | B2 |
| Filing date | Sep 29, 2022 |
| Priority date | Mar 31, 2020 |
| Publication date | Dec 17, 2024 |
| Grant date | Dec 17, 2024 |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
A device suspension method and a computing device are provided. In the method, before a device enters a suspended state, memory space occupied by a background process that is unrelated to a foreground process is released. In this way, the background process unrelated to the foreground process is not saved in a memory of the device. In other words, it reduces data stored in the memory when the device is suspended. Therefore, when the device needs to be woken up, only a relatively small amount of data needs to be read from the memory, and a working state can be rapidly restored. This can reduce a delay of reading data from the memory when the device is woken up, thereby accelerating a wakeup speed of the device. In addition, the data is stored in the memory when the device is suspended.
Opening claim text (preview).
What is claimed is: 1. A device suspension method, comprising: when a system of a device is in an idle state, terminating a background process that is unrelated to a foreground process and that runs in the system, and releasing memory space occupied by the background process; storing running information of the system in a memory of the device, wherein the running information of the system does not comprise information about the background process; and controlling the device to enter a suspended state, wherein the memory of the device comprises a plurality of memory units, and the controlling the device to enter a suspended state comprises powering off components in the device other than at least a part of the memory units in the memory of the device, and wherein before the controlling the device to enter a suspended state, the method further comprises: compressing data in a first part of memory units in the memory and then migrating compressed data to a second part of memory units in the memory, wherein occupied storage space in the first part of memory units is less than a threshold, and the second part of memory units comprises a memory unit that stores data of an operating system and a memory unit whose occupied storage space is greater than or equal to the threshold; and the controlling the device to enter a suspended state comprises: powering off components in the device other than the second part of memory units. 2. The method according to claim 1 , wherein before the controlling the device to enter a suspended state, the method further comprises: releasing memory space occupied by an inactive page in the memory. 3. The method according to claim 2 , further comprising: when the system of the device is in a working state, forming an active page list and an inactive page list based on an access frequency of each memory page in the memory of the device. 4. The method according to claim 3 , wherein the forming an active page list and an inactive page list comprises: saving each memory page with an access frequency higher than or equal to a preset quantity into the active page list, and saving each memory page that has an access frequency lower than the preset quantity into the inactive page list. 5. The method according to claim 3 , wherein the releasing memory space occupied by an inactive page in the memory comprises releasing at least a part of the memory pages stored in the inactive page list. 6. The method according to claim 1 , further comprising: restoring power supply to the components in the device other than the second part of memory units; decompressing the compressed data stored in the second part of memory units and then migrating decompressed data to the first part of memory units; and restoring, based on data stored in the first part of memory units and the second part of memory units, a process that runs in the system before the device enters the suspended state. 7. The method according to claim 1 , wherein execution of the foreground process is not affected when the background process is terminated. 8. The method according to claim 1 , further comprising: obtaining a process tree for processes running in the system, the process tree indicating dependency relationships between the processes running in the system; and determining the background process unrelated to the foreground process based on the process tree. 9. The method according to claim 8 , wherein a process in the system depends on another process in the system when the process is a subprocess of said another process. 10. The method according to claim 1 , further comprising: when the system of the device is in the idle state, terminating an inactive foreground process whose number of interactions with a user is less than an interaction threshold, and releasing memory space occupied by the inactive foreground process, wherein the running information of the system does not comprise information about the inactive foreground process. 11. A device suspension method, comprising: when a system of a device is in an idle state, saving running information of the system to a memory of the device; compressing data in a first part of memory units in the memory and then migrating compressed data to a second part of memory units in the memory, wherein the memory comprises a plurality of memory units, occupied storage space in the first part of memory units is less than a threshold, and the second part of memory units comprises a memory unit that stores data of an operating system and a memory unit whose occupied storage space is greater than the threshold; and controlling the device to enter a suspended state, in which components in the device other than the second part of memory units are powered off. 12. The method according to claim 11 , wherein before the saving running information of the system to a memory of the device, the method further comprises: terminating a background process that is unrelated to a foreground process and that runs in the system, and releasing memory space occupied by the background process. 13. The method according to claim 11 , wherein before the controlling the device to enter a suspended state, the method further comprises: releasing memory space occupied by an inactive page in the memory. 14. The method according to claim 11 , further comprising: restoring power supply to the components in the device other than the second part of memory units; decompressing the compressed data stored in the second part of memory units and then migrating decompressed data to the first part of memory units; and restoring, based on data stored in the first part of memory units and the second part of memory units, a process that runs in the system before the device enters the suspended state. 15. A computing device, comprising: a memory, configured to store program instructions; and a processor, coupled to the memory and configured to execute the program instructions to perform a device suspension method comprising: when a system of a device is in an idle state, terminating a background process that is unrelated to a foreground process and that runs in the system, and releasing memory space occupied by the background process; storing running information of the system in a memory of the device, wherein the running information of the system does not comprise information about the background process; and controlling the device to enter a suspended state, wherein the memory of the device comprises a plurality of memory units, the controlling the device to enter a suspended state comprises powering off components in the device other than at least a part of the memory units in the memory of the device, wherein before the controlling the device to enter a suspended state, the device suspension method further comprises: compressing data in a first part of memory units in the memory and then migrating compressed data to a second part of memory units in the memory, wherein occupied storage space in the first part of memory units is less than a threshold, and the second part of memory units comprises a memory unit that stores data of an operating system and a memory unit whose occupied storage space is greater than or equal to the threshold; and the controlling the device to enter a suspended state comprises: powering off components in the device other than the second part of memory units. 16. The computing device according to claim 15 , wherein before the controlling the device to enter a suspended state, the device suspension method further comprises: releasing memory space occupi
Suspend and resume; Hibernate and awake · CPC title
Task life-cycle, e.g. stopping, restarting, resuming execution (G06F9/4881 takes precedence) · CPC title
Mechanisms to release resources · CPC title
Energy efficient computing, e.g. low power processors, power management or thermal management · CPC title
the resource being a machine, e.g. CPUs, Servers, Terminals · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.