CN114490067A - Memory recovery method and device - Google Patents

Memory recovery method and device Download PDF

Info

Publication number
CN114490067A
CN114490067A CN202210106107.9A CN202210106107A CN114490067A CN 114490067 A CN114490067 A CN 114490067A CN 202210106107 A CN202210106107 A CN 202210106107A CN 114490067 A CN114490067 A CN 114490067A
Authority
CN
China
Prior art keywords
background
system load
target
applications
applications 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.)
Pending
Application number
CN202210106107.9A
Other languages
Chinese (zh)
Inventor
王双
杨丽娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Tianjin Co Ltd
Original Assignee
Spreadtrum Communications Tianjin Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Spreadtrum Communications Tianjin Co Ltd filed Critical Spreadtrum Communications Tianjin Co Ltd
Priority to CN202210106107.9A priority Critical patent/CN114490067A/en
Publication of CN114490067A publication Critical patent/CN114490067A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation 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/5016Allocation 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to the technical field of computers, in particular to a memory recovery method and device. The method comprises the steps of firstly obtaining a system load mean value, then determining a target threshold range corresponding to the system load mean value according to an application limit table, and determining a target application number allowed to run in the background according to the target threshold range, wherein the application limit table comprises S threshold ranges, each threshold range is associated with the application number allowed to run in the background, and if the number of the current applications running in the background exceeds the target application number, closing a plurality of applications from the applications running in the background so that the number of the applications running in the background is smaller than or equal to the target application number. The number of applications running in the background is limited based on the mean value of the system load, unnecessary applications can be closed in time, the memory is reasonably used, and the running smoothness of the system is guaranteed.

Description

Memory recovery method and device
Technical Field
The invention relates to the technical field of computers, in particular to a memory recovery method and device.
Background
In the process of using the terminal device, if a single or multiple applications occupy more memory, the utilization rate of a Central Processing Unit (CPU) is increased, and the terminal device is stuck. The system stuck phenomenon is proportional to the CPU utilization rate, and the larger the CPU utilization rate is, the more busy the device is executing, and the more stuck the device is.
From the use condition of the CPU, the use ratio of the CPU is not caused by a single application and is formed by accumulating a plurality of background applications. When the applications are increased, the CPU can frequently recycle the memory due to insufficient memory, and the busy degree of the CPU is increased.
Disclosure of Invention
The embodiment of the invention provides a memory recovery method and device, which can limit the number of applications running in a background based on the mean value of system load, close unnecessary applications in time, reasonably use memory and ensure the smoothness of system running.
In a first aspect, an embodiment of the present invention provides a memory recycling method, including:
obtaining a system load mean value;
determining a target threshold range corresponding to the system load mean value according to an application limit table, and determining a target application number allowed to run in the background according to the target threshold range, wherein the application limit table comprises S threshold ranges, and each threshold range is associated with the application number allowed to run in the background;
and if the number of the current applications running in the background exceeds the target application number, closing a plurality of applications from the applications running in the background so as to enable the number of the applications running in the background to be less than or equal to the target application number.
In one implementation, obtaining a mean system load value includes:
starting a monitoring thread;
and acquiring the system load average value through the monitoring thread.
In one implementation, obtaining a system load average value through the monitoring thread includes:
acquiring system load values of N Central Processing Units (CPU) through the monitoring thread;
determining the average value of the N system load values as the system load average value.
In one implementation, obtaining the system load values of the N central processing units CPU by the monitoring thread includes:
and periodically acquiring the system load values of the N CPUs by taking a first threshold value as an interval.
In one implementation, determining a target threshold range corresponding to the system load mean according to an application limit table, and determining a number of target applications allowed to run in the background according to the target threshold range includes:
comparing the system load mean value with the S threshold value ranges one by one according to the size sequence of the included numerical values, and determining the X threshold value range as the target threshold value range when the system load mean value is in the X threshold value range, wherein the X threshold value range is any one of the S threshold value ranges;
and determining the Xth application number corresponding to the Xth threshold range as the target application number.
In one implementation, the method further comprises:
and if the system load average value is not within any threshold range, not limiting the number of applications running in the background.
In one implementation, if the number of applications currently running in the background exceeds the number of target applications, closing a plurality of applications from the applications running in the background so that the number of applications running in the background is less than or equal to the number of target applications includes:
sequencing the applications running in the background according to the front-back sequence of the starting time;
and preferentially closing the applications running in the background with the previous starting time until the number of the applications running in the background is less than or equal to the number of the target applications.
In a second aspect, an embodiment of the present invention provides a memory recycling device, including:
the acquisition module is used for acquiring a system load mean value;
the determining module is used for determining a target threshold range corresponding to the system load mean value according to an application limit table, and determining a target application number allowed to run in the background according to the target threshold range, wherein the application limit table comprises S threshold ranges, and each threshold range is associated with the application number allowed to run in the background;
and the closing module is used for closing a plurality of applications from the applications running in the background to enable the number of the applications running in the background to be less than or equal to the number of the target applications if the number of the applications running in the background currently exceeds the number of the target applications.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor being capable of performing the method as provided by the first aspect when invoked by the processor.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to perform the method provided in the first aspect.
In the embodiment of the invention, a system load mean value is obtained, a target threshold range corresponding to the system load mean value is determined according to an application limit table, and a target application number allowed to run in a background is determined according to the target threshold range, wherein the application limit table comprises S threshold ranges, each threshold range is associated with the application number allowed to run in the background, and if the number of the current applications running in the background exceeds the target application number, a plurality of applications are closed from the applications running in the background so that the number of the applications running in the background is less than or equal to the target application number. The number of applications running in the background is limited based on the mean value of the system load, unnecessary applications can be closed in time, the memory is reasonably used, and the running smoothness of the system is guaranteed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a memory recovery method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a memory recovery apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For better understanding of the technical solutions in the present specification, the following detailed description of the embodiments of the present invention is provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only a few embodiments of the present specification, and not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step are within the scope of the present specification.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the specification. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Fig. 1 is a flowchart of a memory recycling method according to an embodiment of the present invention. The method may be applied to a terminal device, such as a smart phone, a tablet computer, and the like, as shown in fig. 1, and may include:
step 101, obtaining a system load mean value.
After the terminal device is started, the monitoring thread can be started for obtaining the average value of the system load.
In some embodiments, the monitoring thread may obtain the system load average value at a preset time interval. Wherein, the period can be set to 30 seconds, depending on the actual situation. If the terminal equipment only has one CPU, the monitoring thread directly determines the system load value of the CPU as the system load mean value; and if the terminal equipment is provided with a plurality of CPUs, determining the average value of the system load values of the CPUs as the system load average value.
Step 102, determining a target threshold range corresponding to the system load mean value according to an application limit table, and determining a target application number allowed to run in the background according to the target threshold range, wherein the application limit table comprises S threshold ranges, and each threshold range is associated with the application number allowed to run in the background.
After the terminal device obtains the system load mean value each time, a target threshold range corresponding to the system load mean value is determined in the application limit table, and different threshold ranges correspond to different application numbers allowed to run in the background. The greater the system load, the greater the CPU utilization, and the smaller the number of applications allowed to run in the background to avoid system stuttering.
In some embodiments, when determining a target threshold range corresponding to the system load average, the terminal device may compare the system load average with the S threshold ranges one by one in a size order including numerical values, and when the system load average is located in an xth threshold range, determine the xth threshold range as the target threshold range, where the xth threshold range is any one of the S threshold ranges, and then determine the xth application number corresponding to the xth threshold as the target application number.
In some embodiments, after the terminal device compares the system load average value with the S threshold ranges one by one, if it is determined that the system load average value is not within any threshold range, the number of applications running in the background is not limited.
Step 103, if the number of the current applications running in the background exceeds the number of the target applications, closing a plurality of applications from the applications running in the background so as to enable the number of the applications running in the background to be less than or equal to the number of the target applications.
In order to timely recycle the memory and ensure the fluency of the system, once the target application number is determined, the application number running in the background cannot exceed the target application number until the next time of acquiring the system load mean value. If the user opens a new application in the period and the number of the applications running in the background exceeds the target application number, the terminal equipment selectively closes the applications running in the background.
In some embodiments, when the terminal device closes the applications running in the background, the applications running in the background may be sorted in the front-back order of the starting time, and then the applications running in the background with the starting time before are closed preferentially until the number of the applications running in the background is less than or equal to the number of the target applications.
For example, the terminal device may determine four threshold ranges in the application limit table in advance, and when the system load average is greater than or equal to 3 and less than 4, it is determined that the system load average is within the first threshold range, and the corresponding number of applications is 8; when the system load average value is greater than or equal to 4 and less than 5, determining that the system load average value is within a second threshold value range, and the corresponding application number is 6; when the system load average value is greater than or equal to 5 and less than 6, determining that the system load average value is within the third threshold value range, and the corresponding application number is 4; when the system load average value is greater than or equal to 6, it is determined that the system load average value is within the fourth threshold range, the corresponding application number is 0, and the cycle of the monitoring thread may be set to 30 seconds.
After the monitoring thread acquires the system load mean value for the first time, the terminal device judges the threshold range corresponding to the system load mean value. If the system load average value is 2, it indicates that the system load average value is not within any threshold range, and the terminal device does not limit the number of applications running in the next day. In the above situation, the system load average is low, the utilization rate of the CPU is not high, and the number of applications running in the background does not need to be limited. And after 30 seconds, the monitoring thread acquires the system load average value for the second time, and if the system load average value is 3 at this time, the terminal equipment determines that the system load average value is within the first threshold range and the corresponding target application number is 8. And in 30 seconds before the mean value of the system load is obtained for the third time, the terminal equipment needs to determine that the number of the applications running in the background is not more than 8. If the user opens a new application and records as the ninth application, the terminal device closes one application running in the background to ensure that the number of the applications running in the background is not more than 8. When closing, the terminal device may preferentially close the first open application, i.e., the first application. If the user opens a new application again, the terminal device may close the second application.
And after 30 seconds, the monitoring thread acquires the system load mean value for the second time, if the system load mean value is 6, the terminal device determines that the terminal device is located in the fourth threshold range, the corresponding target application number is 0, namely, the application running in the background is not allowed, and the terminal device closes all the applications running in the background. And no application is allowed to run in the background within 30 seconds until the monitoring thread acquires the mean value of the system load for the third time.
In the embodiment of the invention, a system load mean value is obtained, a target threshold range corresponding to the system load mean value is determined according to an application limit table, and a target application number allowed to run in a background is determined according to the target threshold range, wherein the application limit table comprises S threshold ranges, each threshold range is associated with the application number allowed to run in the background, and if the number of the current applications running in the background exceeds the target application number, a plurality of applications are closed from the applications running in the background so that the number of the applications running in the background is less than or equal to the target application number. The number of applications running in the background is limited based on the mean value of the system load, unnecessary applications can be closed in time, the memory is reasonably used, and the running smoothness of the system is guaranteed.
Fig. 2 is a schematic structural diagram of a memory recycling device according to an embodiment of the present invention. The memory recovery device in the embodiment of the invention can be used as a memory recovery device to realize the memory recovery method provided by the embodiment of the invention. As shown in fig. 2, an acquisition module 210, a determination module 220, and a shutdown module 230 may be included.
An obtaining module 210, configured to obtain a system load mean value;
the determining module 220 is configured to determine a target threshold range corresponding to the system load average according to an application limit table, and determine a target application number allowed to run in the background according to the target threshold range, where the application limit table includes S threshold ranges, and each threshold range is associated with an application number allowed to run in the background;
a closing module 230, configured to close a plurality of applications from the applications running in the background if the number of applications currently running in the background exceeds the number of target applications, so that the number of applications running in the background is less than or equal to the number of target applications.
The memory recovery apparatus provided in the embodiment shown in fig. 2 may be used to execute the technical solution of the method embodiment shown in fig. 1 in this specification, and the implementation principle and the technical effect may further refer to the related description in the method embodiment.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 3, the electronic device is in the form of a general purpose computing device. Components of the electronic device may include, but are not limited to: one or more processors 310, a memory 330, and a communication bus 340 that couples various system components (including the memory 330 and the processing unit 310).
Communication bus 340 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. These architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus, to name a few.
Electronic devices typically include a variety of computer system readable media. Such media may be any available media that is accessible by the electronic device and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 330 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) and/or cache Memory. The electronic device may further include other removable/non-removable, volatile/nonvolatile computer system storage media. Although not shown in FIG. 3, a disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk Read Only Memory (CD-ROM), a Digital versatile disk Read Only Memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to communication bus 340 by one or more data media interfaces. Memory 330 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility having a set (at least one) of program modules, including but not limited to an operating system, one or more application programs, other program modules, and program data, may be stored in memory 330, each of which examples or some combination may include an implementation of a network environment. The program modules generally perform the functions and/or methodologies of the described embodiments of the invention.
The electronic device may also communicate with one or more external devices, may also communicate with one or more devices that enable a user to interact with the electronic device, and/or may communicate with any device (e.g., network card, modem, etc.) that enables the electronic device to communicate with one or more other computing devices. Such communication may occur via communications interface 320. Furthermore, the electronic device may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public Network such as the Internet) via a Network adapter (not shown in FIG. 3) that may communicate with other modules of the electronic device via communication bus 340. It should be appreciated that although not shown in FIG. 3, other hardware and/or software modules may be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) systems, tape Drives, and data backup storage systems, among others.
The processor 310 executes various functional applications and data processing by executing programs stored in the memory 330, for example, implementing the memory recovery method provided by the embodiment of the present invention.
The embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer instruction, and the computer instruction causes the computer to execute the memory recycling method provided in the embodiment of the present invention.
The computer-readable storage medium described above may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM) or flash Memory, an optical fiber, a portable compact disc Read Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or to implicitly indicate the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
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, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for memory reclamation, the method comprising:
acquiring a system load mean value;
determining a target threshold range corresponding to the system load mean value according to an application limit table, and determining a target application number allowed to run in the background according to the target threshold range, wherein the application limit table comprises S threshold ranges, and each threshold range is associated with the application number allowed to run in the background;
and if the number of the current applications running in the background exceeds the target application number, closing a plurality of applications from the applications running in the background so as to enable the number of the applications running in the background to be less than or equal to the target application number.
2. The method of claim 1, wherein obtaining the system load average comprises:
starting a monitoring thread;
and acquiring the system load average value through the monitoring thread.
3. The method of claim 2, wherein obtaining a system load average value by the monitoring thread comprises:
acquiring system load values of N Central Processing Units (CPU) through the monitoring thread;
and determining the average value of the N system load values as the system load average value.
4. The method according to claim 3, wherein obtaining the system load values of the N Central Processing Units (CPUs) by the monitoring thread comprises:
and periodically acquiring the system load values of the N CPUs by taking a first threshold value as an interval.
5. The method of claim 1, wherein determining a target threshold range corresponding to the system load mean according to an application limit table, and determining a number of target applications allowed to run in the background according to the target threshold range comprises:
comparing the system load mean value with the S threshold value ranges one by one according to the size sequence of the included numerical values, and determining the X threshold value range as the target threshold value range when the system load mean value is in the X threshold value range, wherein the X threshold value range is any one of the S threshold value ranges;
and determining the Xth application number corresponding to the Xth threshold range as the target application number.
6. The method of claim 5, further comprising:
and if the system load average value is not within any threshold range, not limiting the number of applications running in the background.
7. The method of claim 1, wherein if the number of applications currently running in the background exceeds the number of target applications, closing a number of applications from the applications running in the background to make the number of applications running in the background less than or equal to the number of target applications comprises:
sequencing the applications running in the background according to the sequence of starting time;
and preferentially closing the applications running in the background with the previous starting time until the number of the applications running in the background is less than or equal to the number of the target applications.
8. A memory reclamation apparatus, the apparatus comprising:
the acquisition module is used for acquiring a system load mean value;
the determining module is used for determining a target threshold range corresponding to the system load mean value according to an application limit table, and determining a target application number allowed to run in the background according to the target threshold range, wherein the application limit table comprises S threshold ranges, and each threshold range is associated with the application number allowed to run in the background;
and the closing module is used for closing a plurality of applications from the applications running in the background to enable the number of the applications running in the background to be less than or equal to the number of the target applications if the number of the applications running in the background currently exceeds the number of the target applications.
9. An electronic device, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 7.
10. A computer-readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 7.
CN202210106107.9A 2022-01-28 2022-01-28 Memory recovery method and device Pending CN114490067A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210106107.9A CN114490067A (en) 2022-01-28 2022-01-28 Memory recovery method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210106107.9A CN114490067A (en) 2022-01-28 2022-01-28 Memory recovery method and device

Publications (1)

Publication Number Publication Date
CN114490067A true CN114490067A (en) 2022-05-13

Family

ID=81476495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210106107.9A Pending CN114490067A (en) 2022-01-28 2022-01-28 Memory recovery method and device

Country Status (1)

Country Link
CN (1) CN114490067A (en)

Similar Documents

Publication Publication Date Title
CN110865888B (en) Resource loading method and device, server and storage medium
CN111045814B (en) Resource scheduling method and terminal equipment
US10417062B2 (en) Method and apparatus of unloading out of memory processing flow to user space
EP4321758A1 (en) Fan fault detection method and apparatus, and computer device and storage medium
WO2020006860A1 (en) Picture cache cleaning method and apparatus, terminal device and medium
CN107729944B (en) Identification method and device of popular pictures, server and storage medium
CN107861878A (en) The method, apparatus and equipment of java application performance issue positioning
CN108415765B (en) Task scheduling method and device and intelligent terminal
CN114218126A (en) Memory recovery method and device
CN113780163A (en) Page loading time detection method and device, electronic equipment and medium
US8185676B2 (en) Transitions between ordered and ad hoc I/O request queueing
WO2021243531A1 (en) Data compression method and apparatus, and electronic device and storage medium
CN114490067A (en) Memory recovery method and device
CN116361106A (en) Log processing method and device, electronic equipment and storage medium
US20230096015A1 (en) Method, electronic deviice, and computer program product for task scheduling
CN106776393B (en) uninterrupted serial port data receiving method and device
CN115729765A (en) Data acquisition method and device, electronic equipment and storage medium
CN114995914A (en) Picture data processing method and device, computer equipment and storage medium
CN113377466B (en) Algorithm execution method and device and electronic equipment
CN113438419B (en) Camera starting method and device and electronic equipment
CN117971317B (en) Method and device for interaction between central processing unit and accelerator and electronic equipment
CN114338560B (en) Queue data processing system, method, storage medium and electronic equipment
CN114968840B (en) Memory usage amount control method and system
CN115509620A (en) Method and device for determining module to be updated
CN113626348A (en) Service execution method and device and electronic equipment

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