CN106844045B - Method for cleaning running memory of mobile terminal and mobile terminal - Google Patents
Method for cleaning running memory of mobile terminal and mobile terminal Download PDFInfo
- Publication number
- CN106844045B CN106844045B CN201611265822.8A CN201611265822A CN106844045B CN 106844045 B CN106844045 B CN 106844045B CN 201611265822 A CN201611265822 A CN 201611265822A CN 106844045 B CN106844045 B CN 106844045B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- memory
- cleaning
- occupied
- running
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5016—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Telephone Function (AREA)
Abstract
The invention belongs to the field of intelligent terminals, and provides a method for cleaning a running memory of a mobile terminal and the mobile terminal. In the embodiment of the invention, the operating memory occupied by each application program currently operated by the mobile terminal and the operating memory occupied by the application program are detected respectively, and the cleaning grade of the operating memory selected by a user is obtained; and then calculating the running memory to be cleaned according to the total occupied running memory and the cleaning grade selected by the user, and cleaning the application program currently running in the mobile terminal according to the calculation result.
Description
Technical Field
The invention belongs to the field of intelligent terminals, and particularly relates to a method for cleaning running memory of a mobile terminal and the mobile terminal.
Background
With the development of networks and technologies towards increasingly broader bands, the mobile communications industry will move towards a true mobile information age. On the other hand, with the rapid development of integrated circuit technology, the processing capability of the mobile terminal has already possessed strong processing capability, and the mobile terminal is changing from a simple conversation tool to an integrated information processing platform. This also adds more development space to mobile terminals.
At present, the application program of the mobile terminal can occupy a large amount of running memories in the running process, so that the running is blocked, bad use experience is caused, all background applications can be cleaned by one-key cleaning of the memories, and when a user wants part of the application program to continue running in the background without setting a cleaning white list, one-key cleaning is not in accordance with the cleaning expectation of the user, and bad use experience is brought.
Disclosure of Invention
The embodiment of the invention aims to provide a method for cleaning a running memory of a mobile terminal, and aims to solve the problem that all background applications are completely closed because all the running memory of the mobile terminal can be cleaned when the running memory of the mobile terminal is cleaned at present.
In order to solve the technical problem, the invention is realized as follows: a method for cleaning an operating memory of a mobile terminal comprises the following steps:
detecting an operation memory occupied by each application program currently operated by the mobile terminal and an operation memory occupied by the application programs;
acquiring the cleaning grade of the running memory selected by a user;
calculating the running memory to be cleaned according to the running memory occupied by the total memory and the cleaning grade selected by the user;
and cleaning the application program currently operated by the mobile terminal according to the calculation result.
Further, the total occupied operating memory of each application program currently operated by the mobile terminal is the sum of the operating memories respectively occupied by the application programs.
Further, the cleaning grades comprise at least 2 grades, and each cleaning grade corresponds to different cleaning percentages respectively.
Further, the step of calculating the operating memory to be cleaned according to the operating memory occupied by the total memory and the cleaning level selected by the user includes:
the operating memory N3 that needs to be cleaned is calculated according to the following equation:
wherein N1 represents a total operating memory occupied by each application currently operated by the mobile terminal, N2 represents a total operating memory of the mobile terminal system, and k represents a cleaning percentage corresponding to a cleaning level selected by a user.
Further, inThe step of cleaning the application program currently running on the mobile terminal according to the calculation result includes:
sequencing the running programs of the current application of the mobile terminal from big to small according to the size of the occupied running memory;
and closing the application program occupying the largest memory in the application programs currently operated by the mobile terminal according to the sequence until the total operation memory of the closed application programs is greater than or equal to the operation memory N3 needing to be cleaned.
An object of an embodiment of the present invention is to provide a mobile terminal, where the mobile terminal includes:
the detection unit is used for detecting the operation memory occupied by each application program currently operated by the mobile terminal and the operation memory occupied by the application programs;
the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring the cleaning level of the running memory selected by a user;
and the processing unit is used for calculating the running memory to be cleaned according to the running memory occupied by the mobile terminal and the cleaning grade selected by the user, and cleaning the application program currently running in the mobile terminal according to the calculation result.
Further, the total occupied operating memory of each application program currently operated by the mobile terminal is the sum of the operating memories respectively occupied by the application programs.
Further, the cleaning grades comprise at least 2 grades, and each cleaning grade corresponds to different cleaning percentages respectively.
Further, the processing unit is specifically configured to:
the operating memory N3 that needs to be cleaned is calculated according to the following equation:
wherein N1 represents a total operating memory occupied by each application currently operated by the mobile terminal, N2 represents a total operating memory of the mobile terminal system, and k represents a cleaning percentage corresponding to a cleaning level selected by a user.
Further, inThe method for the processing unit to clean the application program currently running in the mobile terminal according to the calculation result is as follows:
sequencing the running programs of the current application of the mobile terminal from big to small according to the size of the occupied running memory;
and closing the application program occupying the largest memory in the application programs currently operated by the mobile terminal according to the sequence until the total operation memory of the closed application programs is greater than or equal to the operation memory N3 needing to be cleaned.
In the embodiment of the invention, the operating memory occupied by each application program currently operated by the mobile terminal and the operating memory occupied by the application program are detected respectively, and the cleaning grade of the operating memory selected by a user is obtained; and then calculating the running memory to be cleaned according to the total occupied running memory and the cleaning grade selected by the user, and cleaning the application program currently running in the mobile terminal according to the calculation result.
Drawings
Fig. 1 is a flowchart of a method for cleaning an operating memory of a mobile terminal according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a framework structure of a mobile terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The following detailed description of specific implementations of the present invention is provided in conjunction with specific embodiments:
fig. 1 shows a flow of a method for cleaning an operating memory of a mobile terminal according to an embodiment of the present invention, and for convenience of description, only relevant portions related to the embodiment of the present invention are listed, which is detailed as follows:
the embodiment of the invention provides a method for cleaning an operating memory of a mobile terminal, which comprises the following steps:
step S10, detecting an operating memory occupied by each application currently running in the mobile terminal and an operating memory occupied by the application currently running in total.
In the embodiment of the invention, the total occupied operation memory of each application program currently operated by the mobile terminal is the sum of the operation memories respectively occupied by each application program.
And step S20, acquiring the cleaning level of the running memory selected by the user. The cleaning grades comprise at least 2 grades, and each cleaning grade corresponds to different cleaning percentages respectively. For example, the cleaning levels include three levels, a first level, a second level, and a third level, where the first level is for cleaning 50% of the running memory, the second level is for cleaning 80% of the running memory, and the third level is for cleaning 100% of the running memory, and the above values are only used for example, and the actual situation may be set by a system or a user.
And step S30, calculating the running memory to be cleaned according to the running memory occupied totally and the cleaning grade selected by the user, and cleaning the application program currently running in the mobile terminal according to the calculation result.
As a preferred embodiment of the present invention, the implementation manner of "calculating the running memory to be cleaned according to the running memory occupied by the user and the cleaning level selected by the user" in step S30 is as follows:
the operating memory N3 that needs to be cleaned is calculated according to the following equation:
wherein N1 represents the total operating memory occupied by each application program currently operated by the mobile terminal, N2 represents the total operating memory of the mobile terminal system, and k represents the cleaning percentage corresponding to the cleaning level selected by the user.
The running memory N3 to be cleaned can be calculated according to the above equation.
As a preferred embodiment of the present invention, inAnd the mode of cleaning the application program currently running in the mobile terminal according to the calculation result is as follows:
sequencing the running programs of the current application of the mobile terminal from big to small according to the size of the occupied running memory;
and closing the application programs occupying the largest memory in the application programs currently operated by the mobile terminal according to the sequence until the total operating memory of the closed application programs is greater than or equal to the operating memory N3 needing to be cleaned.
In the embodiment of the invention, the application program occupying the largest memory in the application programs currently operated by the mobile terminal is circularly detected and closed until the total operation memory of the closed application program is greater than or equal to the operation memory N3 needing to be cleaned.
In the embodiment of the invention, the operating memory occupied by each application program currently operated by the mobile terminal and the operating memory occupied by the application program are detected respectively, and the cleaning grade of the operating memory selected by a user is obtained; and then calculating the running memory to be cleaned according to the total occupied running memory and the cleaning grade selected by the user, and cleaning the application program currently running in the mobile terminal according to the calculation result.
Fig. 2 is a schematic diagram illustrating a frame structure of a mobile terminal according to an embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are listed, which is detailed as follows:
the mobile terminal provided by the embodiment of the invention comprises: a detection unit 100, an acquisition unit 200, and a processing unit 300;
a detecting unit 100, configured to detect an operating memory occupied by each currently operating application program of the mobile terminal and an operating memory occupied by the currently operating application program;
an obtaining unit 200, configured to obtain a cleaning level of an operating memory selected by a user;
the processing unit 300 is configured to calculate an operating memory to be cleaned according to the total occupied operating memory and the cleaning level selected by the user, and clean the currently operating application program of the mobile terminal according to the calculation result.
As a preferred embodiment of the present invention, the total occupied operating memory of each application currently running by the mobile terminal is the sum of the operating memories respectively occupied by each application.
As a preferred embodiment of the present invention, the cleaning levels include at least 2 levels, and each cleaning level corresponds to a different cleaning percentage.
As a preferred embodiment of the present invention, the processing unit 300 is specifically configured to:
the operating memory N3 that needs to be cleaned is calculated according to the following equation:
wherein N1 represents the total operating memory occupied by each application program currently operated by the mobile terminal, N2 represents the total operating memory of the mobile terminal system, and k represents the cleaning percentage corresponding to the cleaning level selected by the user.
As a preferred embodiment of the present invention, inThe method for cleaning the application program currently running in the mobile terminal by the processing unit according to the calculation result is as follows:
sequencing the running programs of the current application of the mobile terminal from big to small according to the size of the occupied running memory;
and closing the application programs occupying the largest memory in the application programs currently operated by the mobile terminal according to the sequence until the total operating memory of the closed application programs is greater than or equal to the operating memory N3 needing to be cleaned.
It should be noted that the mobile terminal provided in the embodiment of the present invention corresponds to the above-mentioned embodiment of the method for cleaning the operating memory of the mobile terminal, and both the working principle and the mode thereof are applicable, which is not described herein again.
In the embodiment of the invention, the operating memory occupied by each application program currently operated by the mobile terminal and the operating memory occupied by the application program are detected respectively, and the cleaning grade of the operating memory selected by a user is obtained; and then calculating the running memory to be cleaned according to the total occupied running memory and the cleaning grade selected by the user, and cleaning the application program currently running in the mobile terminal according to the calculation result.
Those skilled in the art can understand that each unit included in the above embodiments is only divided according to functional logic, but is not limited to the above division as long as the corresponding function can be achieved; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It will be further understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by relevant hardware instructed by a program stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
Claims (2)
1. A method for cleaning an operating memory of a mobile terminal is characterized by comprising the following steps:
detecting an operation memory occupied by each application program currently operated by the mobile terminal and an operation memory occupied by the application programs;
acquiring the cleaning grade of the running memory selected by a user;
calculating the running memory to be cleaned according to the running memory occupied by the total memory and the cleaning grade selected by the user;
cleaning the application program currently running by the mobile terminal according to the calculation result; the total occupied operation memory of each application program currently operated by the mobile terminal is the sum of the operation memories respectively occupied by each application program; the cleaning grades comprise at least 2 grades, and each cleaning grade corresponds to different cleaning percentages respectively; the step of calculating the running memory to be cleaned according to the running memory occupied by the total memory and the cleaning grade selected by the user comprises the following steps:
the operating memory N3 that needs to be cleaned is calculated according to the following equation:
wherein N1 represents a total operating memory occupied by each application currently operated by the mobile terminal, N2 represents a total operating memory of the mobile terminal system, and k represents a cleaning percentage corresponding to a cleaning level selected by a user; when N1 is more than or equal to N2 x (1-K), the step of cleaning the application program currently running by the mobile terminal according to the calculation result comprises the following steps:
sequencing the application programs currently operated by the mobile terminal from big to small according to the size of the occupied operation memory;
and closing the application program occupying the largest memory in the application programs currently operated by the mobile terminal according to the sequence until the total operation memory of the closed application programs is greater than or equal to the operation memory N3 needing to be cleaned.
2. A mobile terminal, characterized in that the mobile terminal comprises:
the detection unit is used for detecting the operation memory occupied by each application program currently operated by the mobile terminal and the operation memory occupied by the application programs;
the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring the cleaning level of the running memory selected by a user;
the processing unit is used for calculating the running memory to be cleaned according to the running memory occupied by the mobile terminal and the cleaning grade selected by the user, and cleaning the application program currently running by the mobile terminal according to the calculation result; the total occupied operation memory of each application program currently operated by the mobile terminal is the sum of the operation memories respectively occupied by each application program; the cleaning grades comprise at least 2 grades, and each cleaning grade corresponds to different cleaning percentages respectively; the processing unit is specifically configured to:
the operating memory N3 that needs to be cleaned is calculated according to the following equation:
wherein N1 represents a total operating memory occupied by each application currently operated by the mobile terminal, N2 represents a total operating memory of the mobile terminal system, and k represents a cleaning percentage corresponding to a cleaning level selected by a user; when N1 is more than or equal to N2 x (1-K), the mode that the processing unit cleans the application program currently running by the mobile terminal according to the calculation result is as follows:
sequencing the application programs currently operated by the mobile terminal from big to small according to the size of the occupied operation memory;
and closing the application program occupying the largest memory in the application programs currently operated by the mobile terminal according to the sequence until the total operation memory of the closed application programs is greater than or equal to the operation memory N3 needing to be cleaned.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611265822.8A CN106844045B (en) | 2016-12-31 | 2016-12-31 | Method for cleaning running memory of mobile terminal and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611265822.8A CN106844045B (en) | 2016-12-31 | 2016-12-31 | Method for cleaning running memory of mobile terminal and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106844045A CN106844045A (en) | 2017-06-13 |
CN106844045B true CN106844045B (en) | 2020-12-01 |
Family
ID=59117418
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611265822.8A Active CN106844045B (en) | 2016-12-31 | 2016-12-31 | Method for cleaning running memory of mobile terminal and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106844045B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108052391A (en) * | 2017-11-30 | 2018-05-18 | 努比亚技术有限公司 | Memory Optimize Method, mobile terminal and readable storage medium storing program for executing based on thread deadlock |
CN107943545A (en) * | 2017-12-15 | 2018-04-20 | 深圳市沃特沃德股份有限公司 | Onboard system starts the method and onboard system of core application |
US10585619B1 (en) | 2018-11-15 | 2020-03-10 | International Business Machines Corporation | Memory block erasure |
CN110737523A (en) * | 2019-10-18 | 2020-01-31 | 湖南快乐阳光互动娱乐传媒有限公司 | method and terminal for improving application starting speed through memory cleaning |
US11557335B2 (en) | 2020-07-07 | 2023-01-17 | International Business Machines Corporation | Erasing a partition of an SRAM array with hardware support |
US11302378B2 (en) | 2020-07-07 | 2022-04-12 | International Business Machines Corporation | Semiconductor circuit including an initialization circuit for initializing memory cells and clearing of relatively large blocks of memory |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104298613B (en) * | 2014-09-29 | 2018-02-23 | 广州猎豹网络科技有限公司 | The method for cleaning and terminal device of a kind of Installed System Memory |
CN105893153A (en) * | 2016-03-31 | 2016-08-24 | 北京百纳威尔无线通信设备有限公司 | Memory cleaning method and device for mobile terminal |
CN105912407A (en) * | 2016-05-06 | 2016-08-31 | 上海斐讯数据通信技术有限公司 | Memory cleaning method and system for mobile terminal |
-
2016
- 2016-12-31 CN CN201611265822.8A patent/CN106844045B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106844045A (en) | 2017-06-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106844045B (en) | Method for cleaning running memory of mobile terminal and mobile terminal | |
Petrovic et al. | Universal impulse noise filter based on genetic programming | |
Crnojevic et al. | Advanced impulse detection based on pixel-wise MAD | |
Choi et al. | Early TU decision method for fast video encoding in high efficiency video coding | |
CN103092341B (en) | Control the method for terminal, device and terminal | |
Meher et al. | An improved recursive and adaptive median filter for high density impulse noise | |
CN103793140A (en) | Application icon arranging method and mobile terminal | |
CN109963048A (en) | Noise-reduction method, denoising device and Dolby circuit system | |
CN104991820B (en) | The method and mobile terminal that a kind of mobile terminal application is switched fast | |
CN106028410A (en) | Mobile terminal network switching method and apparatus | |
CN104267986B (en) | Method and device for cleaning junk files of game applications | |
CN110995856B (en) | Method, device and equipment for server expansion and storage medium | |
CN110428373B (en) | Training sample processing method and system for video frame interpolation | |
Mehta et al. | Comparative analysis of median filter and adaptive filter for impulse noise–a review | |
CN106792882B (en) | Network evaluation method and device | |
Wang et al. | An improved adaptive median filter for Image denoising | |
CN114223256B (en) | Cell reselection control method, device, mobile terminal and storage medium | |
CN103813354A (en) | Method and device for evaluating performance of terminal | |
CN103559692B (en) | Method and device for processing image | |
WO2021111522A1 (en) | Object candidate area estimation device, object candidate area estimation method, and object candidate area estimation program | |
Aher et al. | Removal of Mixed Impulse noise and Gaussian noise using genetic programming | |
CN107220093B (en) | Process processing method and device | |
CN102281218B (en) | DC-offset eliminating system and its method | |
CN106792925B (en) | Method and device for searching ping-pong handover cell pair | |
US9214982B2 (en) | Activated code channel detection method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20201111 Address after: No. a322, science and Technology Pioneer Park, shuangyueyuan Road, high tech Industrial Development Zone, Linyi City, Shandong Province Applicant after: Linyi Wenheng Information Technology Co., Ltd Address before: 239000 Chengnan Industrial Zone, Anhui, Chuzhou Applicant before: AH JINDING ELECTROMECHANICAL EQUIPMENT MANUFACTURING Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |