Memory optimization method based on thread blocking, mobile terminal and readable storage medium

An optimization method and threading technology, applied in inter-program communication, multi-program device, program control design, etc., can solve problems such as frequent system freezes

Active Publication Date: 2018-03-30
NUBIA TECHNOLOGY CO LTD
View PDF4 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The main purpose of the present invention is to provide a memory optimization method based on thread blocking, a mobile terminal and a readable storage medium, aiming

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
  • Memory optimization method based on thread blocking, mobile terminal and readable storage medium
  • Memory optimization method based on thread blocking, mobile terminal and readable storage medium
  • Memory optimization method based on thread blocking, mobile terminal and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0040] In the following description, use of suffixes such as 'module', 'part' or 'unit' for denoting elements is only for facilitating description of the present invention, and has no specific meaning by itself. Therefore, 'module', 'part' or 'unit' may be used in combination.

[0041] Terminals may be implemented in various forms. For example, the terminals described in the present invention may include mobile phones, tablet computers, notebook computers, palmtop computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP), navigation devices, wearable devices, mobile terminals such as smart bracelets, pedometers, and stationary terminals such as digital TVs and desktop computers.

[0042] In the following description, a mobile terminal will be taken ...

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 invention discloses a memory optimization method based on thread blocking, a mobile terminal and a readable storage medium. The method comprises the steps of directly obtaining thread basic information of a preset thread participating in inter-process data communication from a core layer when inter-process data communication is monitored, reducing intermediate logic calling, and quickly obtaining the thread basic information; meanwhile, judging whether the current progress satisfies an establishing condition of the preset thread or not based on the thread basic information, conducting blocking judgment according to the preset thread which is already created in the current progress, when the current progress does not satisfy the establishing condition of the preset thread and the presetthread which is already created is currently in a blocking state, to-be-cleaned progresses are determined according to the blocking duration of the preset thread which is already created, the memoryoccupation resource of the to-be-cleaned thread is released, thus when the preset thread (Binder thread) is clogged, the memory is automatically cleaned, abundant memory is reserved, and the system isprevented from being frequently stuck.

Description

technical field [0001] The invention relates to the technical field of mobile terminals, in particular to a memory optimization method based on thread blocking, a mobile terminal and a readable storage medium. Background technique [0002] With the development of mobile terminal technology, the hardware configuration of the mobile terminal is getting better and better, more and more functions can be realized, and there are more and more integrated APPs (Applications, application programs). At present, there are tens of thousands of application programs based on different scenarios of mobile terminals. As users install more and more third-party applications and service software on mobile terminals. Different applications perform inter-process data communication mainly through Binder threads. During inter-process data communication, if the Binder thread is blocked, the system will interrupt the current inter-process data communication. [0003] When the mobile terminal perfor...

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
IPC IPC(8): G06F9/50G06F9/54
CPCG06F9/5022G06F9/546G06F2209/548
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