Process handling method, terminal and computer-readable storage medium

A processing method and process technology, applied in process processing and computer-readable storage media, can solve problems such as available memory crashes, computer system failures, crashes, etc., and achieve the effect of improving memory recovery efficiency and performance

Inactive Publication Date: 2017-11-17
NUBIA TECHNOLOGY CO LTD
View PDF8 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, the memory management mechanism of the Android system is different from other computer systems, and it relies on the lowmemorykiller mechanism. However, the existing lowmemorykiller mechanism in the Android system will repeatedly select a specific process according to the algorithm. When the selected When the process cannot be recycled, it will cause the computer system to freeze or crash because there is no available memory

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Process handling method, terminal and computer-readable storage medium
  • Process handling method, terminal and computer-readable storage medium
  • Process handling method, terminal and computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0058] Based on the foregoing embodiments, the embodiments of the present invention provide a process processing method, which can be applied to a terminal, and the functions implemented by the process processing method can be implemented by the processor in the terminal calling program code. Of course, the program code It can be stored in a computer storage medium. It can be seen that the terminal includes at least a processor and a storage medium.

[0059] This embodiment provides a process processing method, image 3 It is a schematic flowchart of the process processing method in the first embodiment of the present invention, refer to image 3 As shown, the processing method of the above process includes:

[0060] S301: Obtain the unused memory status;

[0061] Specifically, when the terminal is working, the system memory of the terminal can be divided into used memory and unused memory. When the unused memory of the terminal is small, it will cause the system to crash or restart ...

Embodiment 2

[0086] Based on the foregoing embodiment, this embodiment provides a process processing method, which can be applied to a terminal. The functions implemented by the process processing method can be implemented by the processor in the terminal calling program code. Of course, the program code can be Stored in a computer storage medium, it can be seen that the terminal includes at least a processor and a storage medium.

[0087] On the basis of the first embodiment, in order to determine the corresponding relationship between the preset state and the priority range, the processing method of the above process may further include:

[0088] Determine the corresponding priority range for different unused memory states, and set the correspondence between different unused memory states and priority ranges;

[0089] The correspondence between the unused memory state and the priority range is added to the correspondence between the preset state and the priority range.

[0090] Before executing ...

Embodiment 3

[0116] Based on the foregoing method embodiment, this embodiment provides a terminal, Picture 9 It is a schematic diagram of the structure of the terminal in the third embodiment of the present invention, refer to Picture 9 As shown, the terminal includes a processor 91, a memory 92, and a communication bus 93; the above-mentioned communication bus 93 is used to realize the connection and communication between the processor 91 and the memory 92; the above-mentioned processor 91 is used to execute the processes stored in the memory 92 Handler to achieve the following steps:

[0117] Get the unused memory status; when it is determined that the unused memory state is the preset state, determine the priority range corresponding to the unused memory state from the correspondence between the preset preset state and the priority range; Among the processes in the priority range corresponding to the memory state, the process with the highest priority is determined as the process to be ki...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a process handling method. The method comprises the following steps: acquiring the state of an unused memory; determining a priority range corresponding to the state of the unused memory from the correspondence between a preset state and the priority range while the state of the unused memory is determined to be the preset state; determining the process with the highest priority as the process to be killed during entering the process of the priority range corresponding to the state of the unused memory; killing the process to be killed; in case of failing to kill the process to be killed, re-determining the process to be killed in other processes, and re-killing the process to be killed; and re-obtaining the state of the unused memory after successfully killing the process to be killed. The embodiment of the invention also discloses a terminal and a computer-readable storage medium.

Description

Technical field [0001] The present invention relates to memory recovery in a computer system, in particular to a process processing method, terminal and computer readable storage medium. Background technique [0002] In a computer system, memory is a scarce resource. Any computer system has its own memory recovery mechanism. If the computer system fails to recover the memory or the memory is not recovered in time, the computer system will not be able to allocate the newly requested memory. This causes problems such as computer system crashes and restarts. It can be seen that memory recovery is particularly important for the normal operation of the computer system. [0003] At present, the memory management mechanism of the Android system is different from other computer systems. It relies on the lowmemorykiller mechanism. However, the existing lowmemorykiller mechanism in the Android system will repeatedly select a specific process according to the algorithm. When the process cann...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/50
Inventor 刘磊
Owner NUBIA TECHNOLOGY CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products