Memory space clearing method and device
A memory space and cleaning method technology, applied in the field of memory space cleaning methods and devices, can solve problems such as large memory usage, achieve smooth operation, improve system performance, and avoid excessive memory usage
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0023] refer to figure 1 As shown, in the embodiment of the present invention, when the terminal starts for the first time, the process of cleaning up the memory space includes:
[0024] Step 100: From all the running processes in the operating system, obtain the size of the memory space occupied by the process that occupies the largest memory.
[0025] In the embodiment of the present invention, the terminal runs a specified command symbol to obtain all the running processes in the operating system and the size of the memory space occupied by each running process; and select the largest value. Wherein, the specified command symbol is ActivityManager.getProcessMemoryInfo.
[0026] Optionally, the terminal can receive a memory space clearing command sent by other devices or users, and when receiving the memory space clearing command, run a specified command symbol to obtain the process that occupies the largest memory from all the processes running in the operating system. T...
Embodiment 2
[0050] refer to figure 2 As shown, in the embodiment of the present invention, when the terminal is not started for the first time, the process of cleaning up the memory space includes:
[0051] Step 200: When the terminal is started, obtain the memory space occupied by the historical process that occupies the largest storage space among the historical processes stored in the terminal.
[0052] In the embodiment of the present invention, since the terminal needs to record the process that occupies the largest memory space during each startup process of the terminal, when the terminal starts this time, it directly reads from the local , the historical process occupying the largest memory space (hereinafter referred to as the largest historical process) is enough, and the storage space occupied by the largest historical process is acquired.
[0053] Further, after obtaining the size of the memory space occupied by the historical process that occupies the largest storage space ...
Embodiment 3
[0086] Based on the above technical solutions, see image 3 As shown, in the embodiment of the present invention, a memory space cleaning device is provided, which is applied in the Android system, and includes a process occupied memory space size acquisition unit 30, an available memory space size acquisition unit 31, and a process closing unit 32, wherein:
[0087] The size of the memory space occupied by the process is acquired by a unit 30, which is used to obtain the size of the memory space occupied by the process that occupies the largest memory from all the processes running in the operating system;
[0088] The available memory space size obtaining unit 31 is used to obtain the available memory space size at the current moment;
[0089] The process closing unit 32 is configured to close part or all of the currently running processes according to preset rules if the size of the memory space occupied by the process is larger than the size of the available memory space. ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com
