Method for processing reclaimable memory pages, electronic device, and computer-readable storage medium
AssigneeGuangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorsPan Fang, Yan Chen
Life of this patent
Estimating the term…
Abstract
The disclosure relates to a method for processing an application, an electronic device, and a computer-readable storage medium. The method is carried in an electronic device and includes that a plurality of reclaimable memory pages occupied by an application to be processed are determined; data stored in the plurality of reclaimable memory pages is written into an external storage medium; an operation of the application to be processed is paused; and the data written into the external storage medium is written into a memory when the operation of the application to be processed is unpaused.
Claims18
A method for processing an application, the method being carried out in an electronic device and comprising:
- determining a plurality of reclaimable memory pages occupied by an application to be processed;
- writing data stored in the plurality of reclaimable memory pages into an external storage medium;
- pausing an operation of the application to be processed;
- and
- writing the data written into the external storage medium into a memory when the operation of the application to be processed is unpaused,
- wherein the method further comprises:
- before determining the plurality of reclaimable memory pages occupied by the application to be processed,
- detecting whether at least one foreground application is dependent on the application to be processed;
- when the at least one foreground application is dependent on the application to be processed, adjusting a priority of the application to be processed to match a priority of the at least one foreground application;
- and
- when the at least one foreground application is not dependent on the application to be processed, determining the plurality of reclaimable memory pages occupied by the application to be processed.
An electronic device, comprising a processor and a memory storing a computer program that when executed by the processor to enable the processor to:
- determine a plurality of reclaimable memory pages occupied by an application to be processed;
- write data stored in the plurality of reclaimable memory pages into an external storage medium;
- pause an operation of the application to be processed;
- and
- write the data written into the external storage medium into a memory when the operation of the application to be processed is unpaused;
- wherein the processor is configured to, before the plurality of reclaimable memory pages occupied by the application to be processed is are determined, detect whether at least one foreground application is dependent on the application to be processed;
- when the at least one foreground application is dependent on the application to be processed, adjust a priority of the application to be processed to match a priority of the at least one foreground application;
- and
- when the at least one foreground application is not dependent on the application to be processed, determine the plurality of reclaimable memory pages occupied by the application to be processed.
A non-transitory computer-readable storage medium having stored thereon a computer program that when executed by a processor to implement a method for processing an application, the method comprising:
- determining a plurality of reclaimable memory pages occupied by an application to be processed;
- writing data stored in the plurality of reclaimable memory pages into an external storage medium;
- pausing an operation of the application to be processed;
- and
- writing the data written into the external storage medium into a memory when the operation of the application to be processed is unpaused;
- wherein the method further comprises:
- before determining the plurality of reclaimable memory pages occupied by the application to be processed,
- detecting whether at least one foreground application is dependent on the application to be processed;
- when the at least one foreground application is dependent on the application to be processed, adjusting a priority of the application to be processed to match a priority of the at least one foreground application;
- and
- when the at least one foreground application is not dependent on the application to be processed, determining the plurality of reclaimable memory pages occupied by the application to be processed.
Dependencies are inferred from the claim text.