Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Signal-based progress freezing and unfreezing device and signal-based progress freezing and unfreezing method

A signal and process technology, applied in multi-program device, program control design, program startup/switching, etc., can solve problems such as software crash and unresponsive equipment

Inactive Publication Date: 2017-05-17
NUBIA TECHNOLOGY CO LTD
View PDF4 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The server will allocate a binder thread to handle each communication request from the client; when the process is frozen, if no special processing is performed, the Binder communication between processes will be blocked, causing the device to become unresponsive, or the software to crash

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
  • Signal-based progress freezing and unfreezing device and signal-based progress freezing and unfreezing method
  • Signal-based progress freezing and unfreezing device and signal-based progress freezing and unfreezing method
  • Signal-based progress freezing and unfreezing device and signal-based progress freezing and unfreezing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0079] Such as image 3 As shown, in this embodiment, a signal-based process freezing and unfreezing device includes:

[0080] A state collection module 10, configured to collect the running state of the first application process through the freezing control center;

[0081] Judgment freezing module 20, used to judge whether the first application process satisfies a preset freezing condition, and if so, freeze all threads in the first application process through the system kernel;

[0082] The process number acquisition module 30 is used for when the second application process sends a communication request to the first application process, the second application process acquires the process number of the first application process, and sends the process number to the system kernel;

[0083] The unfreezing module 40 is used for the system kernel to unfreeze the corresponding first application process according to the process number.

[0084] In this embodiment, all threads in ...

Embodiment 2

[0097] Such as Figure 6 As shown, in this embodiment, a signal-based process freezing and unfreezing device also includes:

[0098] Binder communication module 50 is used for the first application process and the second application process to establish binder communication; the second application process allocates a binder thread to communicate with the first application process, and uses the process number of the first application process Save to the binder thread.

[0099] In this embodiment, the process number acquisition module includes:

[0100] The first obtaining unit is configured to obtain the process number of the first application process by querying a binder thread in the second application process that communicates with the first application process.

[0101]In this embodiment, since the first application process and the second application process will have a communication request, before the first application process freezes, for example, when the first applic...

Embodiment 3

[0108] Such as Figure 7 As shown, in this embodiment, a signal-based process freezing and unfreezing method includes:

[0109] S10. The freezing control center collects the running state of the first application process;

[0110] S20. Judging whether the first application process satisfies the preset freezing condition, if so, proceed to step S30, and freeze all threads in the first application process through the system kernel; otherwise, proceed to step S21, delay until the freezing is satisfied condition and then send a freeze signal to the system kernel;

[0111] S40. When the second application process sends a communication request to the first application process, obtain the process number of the first application process, and send the process number to the system kernel;

[0112] S50. The system kernel unfreezes the corresponding first application process according to the process number.

[0113] In this embodiment, all threads in the application process are all fro...

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 signal-based progress freezing and unfreezing device and a signal-based progress freezing and unfreezing method, and relates to the technical field of mobile terminals. The device comprises a state collection module, a freezing judgment module, a progress number acquiring module and an unfreezing module. The state collection module is used for collecting the operation state of a first application progress through a freezing control center. The freezing judgment module is used for judging whether the first application progress meets preset freezing conditions or not, and if yes, freezing all threads in the first application progress through a system kernel. When a second application progress sends a communication request to the first application progress, the progress number acquiring module acquires a progress number of the first application progress and sends the progress number to the system kernel. The system kernel unfreezes the corresponding first application progress according to the progress number through the unfreezing module. The system kernel is controlled through signals to freeze all the threads in the application progress, and when the other application progress sends the communication request, the application progress is unfrozen by the other application progress, so that timely unfreezing of the application progress is achieved while the freezing effect is maximized.

Description

technical field [0001] The invention relates to the technical field of mobile terminals, in particular to a signal-based process freezing and unfreezing device and method. Background technique [0002] Android phones can run any application (APK) developed based on its API. This kind of openness has a great degree of freedom: an application can run in the background according to its designer's wishes-for advertising push, collecting user status, etc., but these The behavior is not necessarily what the user wants, but it will occupy the CPU, increase power consumption, and affect the user experience. Process freezing is a better way to manage background applications. It identifies a process that is not necessary for the user to run, suspends it, prohibits it from running, and waits until the user really needs the process to unfreeze and resume operation. [0003] There are many ways to freeze processes. The kernel of the operating system itself supports a method of using si...

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/48
CPCG06F9/485
Inventor 李爵宇罗晓明
Owner NUBIA TECHNOLOGY CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products