CN107783858A - Terminal freezes solution method, terminal and the computer-readable recording medium of screen - Google Patents

Terminal freezes solution method, terminal and the computer-readable recording medium of screen Download PDF

Info

Publication number
CN107783858A
CN107783858A CN201711061252.5A CN201711061252A CN107783858A CN 107783858 A CN107783858 A CN 107783858A CN 201711061252 A CN201711061252 A CN 201711061252A CN 107783858 A CN107783858 A CN 107783858A
Authority
CN
China
Prior art keywords
running unit
terminal
screen
program running
freezes
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
CN201711061252.5A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201711061252.5A priority Critical patent/CN107783858A/en
Publication of CN107783858A publication Critical patent/CN107783858A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0736Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function
    • G06F11/0742Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function in a data processing system embedded in a mobile device, e.g. mobile phones, handheld devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • 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/5038Allocation 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 execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a kind of solution method that terminal freezes screen, comprise the following steps:The service data of pre-set programs running unit is obtained, the state of pre-set programs running unit is determined according to the service data;Determine the occlusion program running unit in blocked state in pre-set programs running unit;Freeze target program running unit, application CPU performs occlusion program running unit, freezes screen to solve terminal.The invention also discloses a kind of terminal and computer-readable recording medium.The present invention determines the state of terminal pre-set programs running unit by checking, when pre-set programs running unit is blocked, by system CPU resource allocation to pre-set programs running unit, avoid, due to freezing screen caused by pre-set programs running unit obstruction, improving terminal screen and freezing the efficiency shielded and accuracy rate so as to improve the experience of user.

Description

Terminal freezes solution method, terminal and the computer-readable recording medium of screen
Technical field
The present invention relates to communication technical field, more particularly to terminal is frozen the solution method of screen, terminal and computer-readable deposited Storage media.
Background technology
With the fast development of terminal, the hardware configuration of terminal is also become better and better, and the function that can be realized is also more and more, And integrated APP (Application, application program) is also more and more.It is currently based on the application program of the different scenes of terminal It is ten hundreds of, always picture freeze problem is run into during people's routine use mobile terminal.
When mobile terminal occurs freezing screen, user, which generally restarts mobile terminal, makes it recover normal, it is necessary to user's hand It is dynamic to restart, and in restarting process, mobile terminal is in black state, can not realize and friend is provided while mobile terminal is restarted Good showing interface, Consumer's Experience is bad, with this simultaneously, cause terminal occur freeze screen the reason for it is more, therefore, how to monitor When freezing screen, friendly interface displaying is provided while backstage solves the problems, such as to freeze screen automatically, saves maintenance time, lifting Consumer's Experience It is current urgent problem to be solved.
The above is only used for auxiliary and understands technical scheme, does not represent and recognizes that the above is existing skill Art.
The content of the invention
Freeze solution method, terminal and the computer-readable storage medium of screen it is a primary object of the present invention to provide a kind of terminal Matter, it is intended to by each process in detection terminal operating system and the state of thread, solve because process and thread block are led The terminal of cause freezes screen phenomenon, improves the solution efficiency that terminal freezes screen.
To achieve the above object, the present invention provides a kind of solution method that terminal freezes screen, and the terminal freezes the solution party of screen Method comprises the following steps:
The service data of pre-set programs running unit is obtained, pre-set programs running unit is determined according to the service data State;
Determine the occlusion program running unit in blocked state in pre-set programs running unit;
Freezing target program running unit, application CPU performs occlusion program running unit, freezes screen to solve terminal, wherein, The target program running unit refers to other journeys in addition to occlusion program running unit and system core program running unit Sort run unit.
Alternatively, the service data for obtaining pre-set programs running unit, default journey is determined according to the service data The step of state of sort run unit, includes:
Obtain the service data of each application programming interfaces in pre-set programs running unit;
According to the service data, the state of pre-set programs running unit is determined, wherein, the state includes operation and resistance Plug.
Alternatively, described to freeze target program running unit, application CPU performs occlusion program running unit, to solve end The step of end jelly screen, includes:
Freeze target program running unit, the occupancy resource of target program running unit is discharged, wherein, it is described Taking resource includes:Cpu resource, GPU resource, memory headroom, user's space, system kernel;
Apply for that CPU performs occlusion program running unit, by the resource allocation that takes to occlusion program running unit, with solution Certainly terminal freezes screen.
Alternatively, described to freeze target program running unit, application CPU performs occlusion program running unit, to solve end The step of end jelly screen, also includes:
The current display information of terminal display screen is preserved, freezes target program running unit, application CPU performs resistance Fill in program running unit;
When detecting the recovery of occlusion program running unit, then judge that the screen of terminal freezes whether phenomenon has solved;
Solved if the screen of terminal freezes phenomenon, the current display information has been shown on terminal display screen.
Alternatively, described to freeze target program running unit, application CPU performs occlusion program running unit, to solve end End was frozen after the step of screen, including:
The state of the occlusion program running unit is detected in real time, judges whether the occlusion program running unit is extensive It is multiple;
If occlusion program running unit is recovered, freeze described in releasing, so that target program running unit continues to run with.
Alternatively, the state for detecting the occlusion program running unit in real time, the occlusion program operation is judged After the step of whether unit recovers, including:
If occlusion program running unit is not recovered, prompt message corresponding to generation, to prompt user to continue waiting for.
Alternatively, described to freeze target program running unit, application CPU performs occlusion program running unit, to solve end End was frozen after the step of screen, including:
The service data is cached to monitor database, and whether deleted according to the condition adjudgement of pre-set programs running unit Except the service data.
Alternatively, the step of whether condition adjudgement according to pre-set programs running unit deletes the service data is wrapped Include:
If the state of the pre-set programs running unit is operation, the service data is deleted;
If the state of the pre-set programs running unit is obstruction, the service data and service data is defeated is not deleted Enter to abnormal log.
To achieve the above object, the present invention also provides terminal and included:Memory, processor and it is stored on the memory And the terminal that can be run on the processor freezes the settlement procedure of screen, wherein:
The terminal realizes that terminal described above freezes the solution party of screen when freezing the settlement procedure of screen by the computing device The step of method.
In addition, to achieve the above object, the present invention also provides computer-readable storage medium.
The settlement procedure that terminal freezes screen is stored with the computer-readable storage medium, the terminal freezes the settlement procedure quilt of screen The step of terminal as described above freezes the solution method of screen is realized during computing device.
A kind of terminal of the present invention freezes solution method, terminal and the computer-readable recording medium of screen, and the terminal freezes screen Solution method comprises the following steps:The service data of pre-set programs running unit is obtained, is determined according to the service data default The state of program running unit;Determine the occlusion program running unit in blocked state in pre-set programs running unit;Freeze Target program running unit, application CPU perform occlusion program running unit, freeze screen to solve terminal.Terminal is determined by checking The state of pre-set programs running unit, when pre-set programs running unit is blocked, system CPU resource allocation to pre-set programs is transported Row unit, avoid freezing screen caused by due to pre-set programs running unit blocking, improve terminal screen and freeze the efficiency of screen and accurate Rate is so as to improving the experience of user.
Brief description of the drawings
Fig. 1 is a kind of each hardware architecture diagram of terminal of embodiment of the realization present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is the level schematic diagram of the operating system for the solution method that terminal of the present invention freezes screen;
Fig. 4 is the schematic flow sheet for the solution method first embodiment that terminal of the present invention freezes screen;
The refinement schematic flow sheet that Fig. 5 is the step S30 for the solution method that terminal freezes screen in Fig. 4;
Fig. 6 is another refinement schematic flow sheet of the step S30 for the solution method that terminal freezes screen in Fig. 4;
Fig. 7 is the schematic flow sheet for the solution method second embodiment that terminal of the present invention freezes screen;
Fig. 8 is the schematic flow sheet for the solution method 3rd embodiment that terminal of the present invention freezes screen;
Fig. 9 is the refinement schematic flow sheet of the step S70 for the solution method that terminal freezes screen in Fig. 8;
Figure 10 is that terminal of the present invention freezes concrete scene schematic diagram in the solution method shielded.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts, Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Reference picture 3, it is the level schematic diagram of the operating system stored in storing program area, as shown in figure 3, the operation system System includes Loader (loader) layer, Kernel (system kernel) layer, Native (local framework) layer, Framework (framework) Layer (including C++Framework layers and Java Framework layers) and App (application program) layer, wherein, Kernel layers and HAL layers (hardware abstraction layer) between Native layers also be present, between the C++Framework layers and Java Framework layers also JNI layers be present, SysCall layers also be present between the HAL layers and Kernel layers.
The Loader layers include Boot ROM (starting service) and Boot Loader (opening initialization program), the Boot ROM is mainly used in when mobile terminal is in off-mode, and long-press Power (start) key start, chip guide starts from solidification Default place's code in ROM starts to perform.Boot Loader are the bootstrap before start-up operation system, are mainly examined Look into the function such as RAM, initiating hardware parameter.
The Kernel layers be mainly used in carrying out initialization management of process, memory management, loading Display (display), The related work such as Camera Driver (camera driving) and Binder Driver (Binder drivings), and for creating kernel work Make the kernel finger daemon such as thread kworkder, traps thread ksoftirqd and traps thread thermal.
The Native layers mainly include finger daemon, HAL layers and boot animation of user's space that init hatchings come etc.. Init processes (by kernel start user level process) can hatch ueventd, logd, healthd, installd, adbd and The user daemon process User such as lmkd Daemons;Init processes also start servicemanager (service house keeper) and The critical services such as bootanim (boot animation);Init processes hatch Zygote processes, and Zygote processes are operating system First Java process, Zygote are the parent processes of all Java processes, Zygote processes be in itself hatched by init processes and Come.
The Framework layers include Zygote processes, System Server (system service) processes and Media Server (multimedia service) process, wherein, Zygote processes, it is to be generated by init processes by fork after parsing init.rc files, Zygote processes mainly comprising loading ZygoteInit classes, registration Zygote Socket services end socket, loaded virtual machine, PreloadClasses and preloadResouces etc.;System Server processes, be by Zygote process fork, System Server are first processes of Zygote hatchings, and System Server are responsible for starting and manage whole Java Framework, comprising, ActivityManager (application component), PowerManager (power management component) and WindowManagerServer (window management component) etc. is serviced;Media Server processes, be by init processes fork and Come, be responsible for starting and manage whole C++framework, include AudioFlinger (audio service), Camera Service (camera service) and MediaPlayServer (multimedia service) etc. service.
The APP layers include APP processes, and each APP processes generate by Zygote processes fork, and Zygote processes hatch First App process be Launcher (desktop starter), desktop App, the Zygote process seen for user will also create The App processes such as Browser (browser), Phone (phone) and Email (mail), each App at least operate in a process On.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Program running unit in the present invention refers to process and/or thread, and process and/or thread are all by operating system institute The elementary cell of the program operation of embodiment, on the once operation activity on certain data acquisition system, be system carry out resource allocation and The base unit of scheduling, it is that the basic system of operating system configuration realizes concurrency of the system to application using the elementary cell. The difference of process and thread is:Process possesses independent internal storage location in the process of implementation, and multiple thread shared drives, line Journey in the process of implementation with process or distinguishing.Each independent thread has the entrance of a program operation, order to perform The outlet of sequence and program.But thread can not independently execute, it is necessary to it is interdependent in the application, by application program provide it is more Individual thread performs control.
The primary solutions of the embodiment of the present invention are:By system_server (system service) processes according to heavy to its The property wanted and the degree of dependence, classify to process, through classification combing draw it is most important to system_server processes enter Journey, and monitoring modular is set in important process, by monitoring module monitors to Blocked or Held by exceptions when, just to Kernel layers send other processes freezed in addition to the process and system core process of current congestion, have been sent to Kernel After the request for freezing process, just wait Kernel layers to complete process and freeze.
After the completion of Kernel layers, which is related to process, to be freezed, freeze what is completed according to the Kernel layer executive process acquired As a result just start to perform to Kernel after and apply for that opening the big cores of CPU goes to perform the process completed Held by or Blocked and be related to Or the important thread in process.Go to perform in the process or process that Held by or Blocked are related to when opening the big cores of CPU During important thread, the important thread in the process or process that ensure to be related to by Held by or Blocked has enough cpu resources, It is caused so as to solve because the priority of CPU scheduling is inadequate or multiple processes obstructing problem caused by preempting resources simultaneously Terminal freezes screen.
In addition, in the terminal shown in Fig. 1, the end run on the processor 110 is stored with the memory 109 The settlement procedure of screen is frozen at end, and the terminal calls the solution journey of the terminal stored in memory 109 jelly screen by processor 110 Sequence, and perform following operate:
The service data of pre-set programs running unit is obtained, pre-set programs running unit is determined according to the service data State;
Determine the occlusion program running unit in blocked state in pre-set programs running unit;
Freezing target program running unit, application CPU performs occlusion program running unit, freezes screen to solve terminal, wherein, The target program running unit refers to other journeys in addition to occlusion program running unit and system core program running unit Sort run unit.
Further, the terminal calls the terminal stored in memory 109 to freeze the solution journey shielded by processor 110 Sequence, to realize the service data for obtaining pre-set programs running unit, pre-set programs running unit is determined according to the service data State the step of include:
Obtain the service data of each application programming interfaces in pre-set programs running unit;
According to the service data, the state of pre-set programs running unit is determined, wherein, the state includes operation and resistance Plug.
Further, the terminal calls the terminal stored in memory 109 to freeze the solution journey shielded by processor 110 Sequence, freeze target program running unit to realize, application CPU performs occlusion program running unit, to solve the step that terminal freezes screen Suddenly include:
Freeze target program running unit, the occupancy resource of target program running unit is discharged, wherein, it is described Taking resource includes:Cpu resource, GPU resource, memory headroom, user's space, system kernel;
Apply for that CPU performs occlusion program running unit, by the resource allocation that takes to occlusion program running unit, with solution Certainly terminal freezes screen.
Further, the terminal calls the terminal stored in memory 109 to freeze the solution journey shielded by processor 110 Sequence, to freeze target program running unit described in realization, application CPU performs occlusion program running unit, freezes screen to solve terminal The step of also include:
The current display information of terminal display screen is preserved, freezes target program running unit, application CPU performs resistance Fill in program running unit;
When detecting the recovery of occlusion program running unit, then judge that the screen of terminal freezes whether phenomenon has solved;
Solved if the screen of terminal freezes phenomenon, the current display information has been shown on terminal display screen.
Further, the terminal calls the terminal stored in memory 109 to freeze the solution journey shielded by processor 110 Sequence, freeze target program running unit with described, application CPU performs occlusion program running unit, to solve the step that terminal freezes screen After rapid, including:
The state of the occlusion program running unit is detected in real time, judges whether the occlusion program running unit is extensive It is multiple;
If occlusion program running unit is recovered, freeze described in releasing, so that target program running unit continues to run with.
Further, the state for detecting the occlusion program running unit in real time, the occlusion program fortune is judged After the step of whether row unit recovers, the terminal calls the terminal stored in memory 109 to freeze screen by processor 110 Settlement procedure, include the step of to realize user waiting prompt:
If occlusion program running unit is not recovered, prompt message corresponding to generation, to prompt user to continue waiting for.
Further, described to freeze target program running unit, application CPU performs occlusion program running unit, to solve Terminal was frozen after the step of screen, and the terminal calls the terminal stored in memory 109 to freeze the solution journey shielded by processor 110 Sequence, included with realizing that terminal freezes the step of screen solves:
The service data is cached to monitor database, and whether deleted according to the condition adjudgement of pre-set programs running unit Except the service data.
Further, the terminal calls the terminal stored in memory 109 to freeze the solution journey shielded by processor 110 Sequence, to realize that the step of terminal freezes screen abnormal log output includes:
The step of whether condition adjudgement according to pre-set programs running unit deletes the service data includes:
If the state of the pre-set programs running unit is operation, the service data is deleted;
If the state of the pre-set programs running unit is obstruction, the service data and service data is defeated is not deleted Enter to abnormal log.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc. The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
Based on above-mentioned terminal hardware structure and communications network system, propose that terminal of the present invention freezes each of the solution method of screen Individual embodiment.
The present invention provides a kind of solution method that terminal freezes screen.
In the present embodiment, the solution method of the terminal jelly screen is optional is applied in terminal, and the terminal is chosen as Fig. 1 Described in mobile terminal, the solution method that the terminal freezes screen includes:
The service data of pre-set programs running unit is obtained, pre-set programs running unit is determined according to the service data State;
Determine the occlusion program running unit in blocked state in pre-set programs running unit;
Freezing target program running unit, application CPU performs occlusion program running unit, freezes screen to solve terminal, wherein, The target program running unit refers to other journeys in addition to occlusion program running unit and system core program running unit Sort run unit.
Before the step of performing the present embodiment, by system_server processes according to the journey to its importance and dependence Degree, classifies to process and/or thread, can specifically be divided into process and/or thread important and secondary, and important is entered Journey and/or thread set monitoring modular as pre-set programs running unit in pre-set programs running unit, when process and/ Or during thread startup, monitoring module monitors obtain the service data of pre-set programs running unit, and are according to service data judgement Whether no pre-set programs running unit is in blocked state, is then pre-set programs when pre-set programs running unit is in blocked state Running unit distributes cpu resource, to solve because terminal caused by pre-set programs running unit obstruction freezes screen.
For example, drawn by classification combing to the most important process of system_server processes, respectively Zygote processes With MediaServer processes.Then, two processes of Zygote32, Zygote64 corresponding to Zygote processes are related in the process And main API states preset state monitoring;The core and emphasis thread that MediaServer processes are related to AudioFlinger, MediaPlayerService, CameraService preset state monitor.
The process and related linear program that counterweight point process is related to carry out preset state monitoring, and specific practice is opened in the process Focus on the application routine interface (the application programming interfaces being related in file, running:It is called data-interface or API connects Mouth (API:Application Program Interface)) monitoring of state emphasis, when there are Blocked or Held by, Just be judged to blocking, then triggering it is abnormal freeze screen processing module go to perform it is abnormal freeze screen processing, when the service data that returns, according to Service data determines whether pre-set programs running unit blocks, wherein, service data in application program interface include initialization, Perform time, API return values.
Process and/or thread are classified in the present embodiment, and using important process and/or thread as pre-set programs Running unit, while monitoring modular is set in pre-set programs running unit, the operation of pre-set programs running unit is obtained with detection Data, by setting pre-set programs running unit to monitor running status, to avoid as caused by blocking pre-set programs running unit Terminal freezes screen.
Reference picture 4, Fig. 4 are the schematic flow sheet for the solution method first embodiment that terminal of the present invention freezes screen.
Terminal of the present invention is frozen in the first embodiment of the solution method of screen, and the solution method that the terminal freezes screen includes:
Step S10, the service data of pre-set programs running unit is obtained, determine that pre-set programs are transported according to the service data The state of row unit.
When pre-set programs running unit is run, the monitoring modular that sets in pre-set programs running unit, monitoring will be triggered Module obtains the service data of pre-set programs running unit, and the shape of pre-set programs running unit is determined according to the service data State.
Specifically, step S10 includes:
Step a, the service data of each application programming interfaces in pre-set programs running unit is obtained;
Step b, according to the service data, the state of pre-set programs running unit is determined, wherein, the state includes fortune Capable, ready and obstruction.
It should be added that:Creation time, the calling of data-interface of data-interface can be included in service data Situation, data-interface return value etc., the state of pre-set programs running unit is may determine that according to service data, is not gone to live in the household of one's in-laws on getting married herein State.
Step S20, determine to be in the occlusion program running unit of blocked state in pre-set programs running unit.
Determine the occlusion program running unit in blocked state in pre-set programs running unit, i.e. pre-set programs are run Unit is including multiple, wherein the state of possible part pre-set programs running unit is obstruction, part pre-set programs running unit State is operation.
It should be added that:Operation:When a process is run on treaters, then the process is claimed to be in operation shape State.The number of process in this state is less than or equal to the number of processor, for single processor system, in running status Process only has one.When other no processes can perform (such as all processes are all in blocked state), it will usually automatic to perform The idle process of system.It is ready:When a process obtains all required resources in addition to processor, once obtain processor It can run, then claim this process to be in ready state.Ready process can divide queue by multiple priority.For example, when one Individual process due to timeslice is finished and when entering ready state, be discharged into Low Priority Queuing;Enter when process is completed by I/O operation When entering ready state, high-priority queue is discharged into.Obstruction:Also referred to as wait or sleep state, a process are waiting a certain Event occurs (such as ask I/O and wait I/O completions etc.) and temporarily ceases operation, even if at this moment giving process multi-frame system Also it can not run, therefore claim the process to be in blocked state.And in embodiments of the invention by the state in addition to running status all As blocked state, i.e. obstruction in the embodiment of the present invention:Both the obstruction in above-mentioned definition had been included, had included again in above-mentioned definition It is ready.
Step S30, freeze target program running unit, application CPU performs occlusion program running unit, to solve terminal jelly Screen.
When it is determined that terminal freezes screen, freeze beacon course sort run unit, wherein the target program running unit refers to except resistance Fill in other program running units outside program running unit and system core program running unit, pre-set programs running unit core When Blocked (interruption) or Held by (holding) abnormal that heart monitoring the process module monitors arrive, just send and freeze to Kernel layers Other processes in addition to the process and system core process of current congestion, the request for the process of freezing has been sent to Kernel Afterwards, just wait Kernel layers to complete process to freeze.
Complete to be related to after process freezes in Kernel layers, freeze what is completed according to the Kernel layer executive process acquired As a result just start to perform to Kernel after and apply for that opening the big cores of CPU goes to perform the process completed Held by or Blocked and be related to Or the important thread in process, go to perform in the process or process that Held by or Blocked are related to when opening the big cores of CPU During important thread, the important thread in the process or process that can go to ensure to be related to by Held by or Blocked exclusively enjoys single CPU Big core is not disrupted;Occlusion program running unit is set to obtain enough operation resources, i.e. internal memory number in occlusion program running unit According to can be protected, kernel public resource will not be originated by other resource occupation in user's space in occlusion program running unit Address all can be preserved and be protected to termination address, i.e. the operation resource required for occlusion program running unit all provides.
The state of terminal pre-set programs running unit is determined by checking in the present embodiment, when pre-set programs running unit During obstruction, target program running unit will be freezed, by this operation, can solve because the priority of CPU scheduling not enough or Multiple processes while obstructing problem caused by preempting resources;Avoid freezing screen caused by due to pre-set programs running unit blocking, carry High terminal screen freezes efficiency and the accuracy rate of screen so as to improve the experience of user.
Further, the present embodiment proposes on the basis of first embodiment, is transported in the present embodiment in pre-set programs When row unit blocks, corresponding resource is provided for the program running unit of obstruction;
With reference to figure 5, the step S30 that the program running unit in the present embodiment for obstruction provides resource includes:
Step S31, freeze target program running unit, the occupancy resource of target program running unit is discharged;
Step S32, application CPU perform occlusion program running unit, and the occupancy resource allocation to occlusion program is run Unit, freeze screen to solve terminal.
Freeze target program running unit, the occupancy resource of target program running unit is discharged, wherein, take Resource includes:Cpu resource, GPU resource (GPU English full name Graphic Processing Unit, Chinese Graphic processor), Memory headroom, user's space, system kernel (including the big cores of CPU, small nut), just send and freeze except current congestion to Kernel layers Process and system core process outside other processes, after having sent the request for the process of freezing to Kernel, just wait Kernel layers are completed process and freezed.Complete to be related to after process freezes in Kernel layers, performed according to the Kernel layers acquired Process freeze complete result after just start perform to Kernel apply open the big cores of CPU go perform complete Held by or Important thread in process or process that Blocked is related to.Execution Held by or Blocked is gone to be related to when opening the big cores of CPU To process or process in important thread when, can remove to ensure the weight in the process or process that are related to by Held by or Blocked Want thread to exclusively enjoy the single big cores of CPU to be not disrupted, resource allocation will be taken to occlusion program running unit, to solve terminal jelly Screen.
Specifically illustrate in the present embodiment when detecting terminal pre-set programs running unit obstruction, by its in system He is terminated thread, ensures occlusion program running unit, is recovered, so as to recover the jelly as caused by occlusion program running unit Screen, when recovering terminal display screen generation jelly screen so that the abnormal recovery of the display screen of terminal is more accurate.
Reference picture 6, is first embodiment step S30 refinement in the present embodiment, and the difference with first embodiment is this In embodiment, terminal can preserve interface display information, when terminal is re-powered or is restarted, can recover terminal circle Face display information, step S30 include:
Step S33, the current display information of terminal display screen is preserved, freeze target program running unit, applied CPU performs occlusion program running unit;
Step S34, when detecting the recovery of occlusion program running unit, then judge that the screen of terminal freezes whether phenomenon has solved.
Step S35, solved if the screen of terminal freezes phenomenon, the current display information has been carried out on terminal display screen Display.
The current display information of terminal display screen is preserved, that is, preserves program and related input that terminal is currently run Information, freezes target program running unit, and application CPU performs occlusion program running unit;When detecting that occlusion program operation is single Member is recovered, then judges that the screen of terminal freezes whether phenomenon has solved.Solved if the screen of terminal freezes phenomenon, by the current display Information is shown on terminal display screen.For example, with reference to Figure 10, terminal, which is in, freezes screen state, prompts user that " system is not rung Should, just a moment,please ", terminal preserves the current display information of terminal display screen, terminal solution is handled, when terminal shows When showing that interface recovers normal, the current display information for preserving display screen is recovered, for example, user is playing game, in terminal After jelly screen is restarted, the interface of game is recovered, unlatching current display information is carried out manually without user.
When screen occurs to freeze for terminal in the present embodiment, current interface information is automatically saved, occurs to freeze screen row in terminal display screen Except afterwards, the interface information of terminal is recovered, the operation unnecessary without user so that terminal display screen freezes screen to user's Influence minimum.
Further, reference picture 7, second embodiment is also proposed on the basis of first embodiment, is in the present embodiment After occlusion program running unit provides cpu resource, occlusion program running unit is further detected, according to occlusion program running unit State determine whether that releasing is freezed, continue to run with target program running unit:
Step S40, the state of the occlusion program running unit is detected in real time, judge the occlusion program running unit Whether recover.
Step S50, if occlusion program running unit recover, release described in freeze so that target program running unit after Reforwarding row.
Step S60, if occlusion program running unit is not recovered, generation corresponding to prompt message, with prompt user after It is continuous to wait.
Terminal set preset time period in terminal, can be either 120 seconds 60 seconds according to recovery time of occlusion program Deng detecting the state of the occlusion program running unit in real time in preset time period, judge that the occlusion program operation is single Whether member is recovered;If occlusion program running unit is recovered, freeze described in releasing, so that target program running unit continues to transport OK;If occlusion program running unit is not recovered, prompt message corresponding to generation, to prompt user to continue waiting for,
Specifically illustrate in the present embodiment and occlusion program operation is detected during occlusion program running unit is recovered The running status of unit, recover the operation program of terminal in time, when not recovering, intelligently prompt user, solve terminal The method that display screen freezes screen is more accurate, quickly.
Reference picture 8, also proposed 3rd embodiment on the basis of first embodiment, will in the third embodiment of the present invention The step of service data generation abnormal log, includes:
Step S70, the service data is cached to monitor database, and sentenced according to the state of pre-set programs running unit It is disconnected whether to delete the service data.
Section when monitoring modular record monitors process title, thread name, process ID and Thread Id, residing function performs Point, status information, these information are write in monitor database, record 5 minutes every time just according to whether obstruction occurs to judge Decide whether, by record purge before, when in 5 minutes to be blocked, just retained, if do not blocked, just by before Record purge fall.The exception record do not removed can be output in Log systems by abnormal log output module.
Specifically, with reference to figure 9, step S70, including:
Step S71, if the state of the pre-set programs running unit is operation, delete the service data.
Step S72, if the state of the pre-set programs running unit is obstruction, the service data is not deleted and will be transported Row data are input to abnormal log.
With this simultaneously, terminal can be received the result and abnormal information input abnormal log, and is made by oneself The output of adopted daily record.Abnormal log can record problem occur when the affiliated device producers of LCD and TP, BoardID, hardware version numbers, Whether by number of Held, Blocked number, problem time of origin point, exception recover the Back ground Information such as normal, then by these Back ground Information is output in the JFS specified by the specific API of OS systems, wherein, JFS can be The server on backstage, or high in the clouds, maintenance developer can be according to the log processing problem in JFS.
The service data got is handled in the present embodiment, useless data are deleted, and are not take up space, By data generation in terminal display screen occur freeze screen feature daily record, when terminal can be repaired automatically, maintenance personal The processing of problem is carried out for daily record, without being detected again, improves the treatment effeciency of terminal display screen maintenance.
In addition, the embodiment of the present invention also proposes a kind of computer-readable storage medium.
The settlement procedure that terminal freezes screen is stored with the computer-readable storage medium, the terminal freezes the settlement procedure quilt of screen Realize that terminal is frozen the solution shielded and operated as follows during computing device:
The service data of pre-set programs running unit is obtained, pre-set programs running unit is determined according to the service data State;
Determine the occlusion program running unit in blocked state in pre-set programs running unit;
Freezing target program running unit, application CPU performs occlusion program running unit, freezes screen to solve terminal, wherein, The target program running unit refers to other journeys in addition to occlusion program running unit and system core program running unit Sort run unit.
Further, the terminal, which is frozen when the settlement procedure shielded is executed by processor, also realizes following operation:
The service data for obtaining pre-set programs running unit, determine that pre-set programs operation is single according to the service data The step of state of member, includes:
Obtain the service data of each application programming interfaces in pre-set programs running unit;
According to the service data, the state of pre-set programs running unit is determined, wherein, the state includes operation and resistance Plug.
Further, the terminal, which is frozen when the settlement procedure shielded is executed by processor, also realizes following operation:
Described to freeze target program running unit, application CPU performs occlusion program running unit, freezes screen to solve terminal Step includes:
Freeze target program running unit, the occupancy resource of target program running unit is discharged, wherein, it is described Taking resource includes:Cpu resource, GPU resource, memory headroom, user's space, system kernel;
Apply for that CPU performs occlusion program running unit, by the resource allocation that takes to occlusion program running unit, with solution Certainly terminal freezes screen.
Further, the terminal, which is frozen when the settlement procedure shielded is executed by processor, also realizes following operation:
Described to freeze target program running unit, application CPU performs occlusion program running unit, freezes screen to solve terminal Step also includes:
The current display information of terminal display screen is preserved, freezes target program running unit, application CPU performs resistance Fill in program running unit;
When detecting the recovery of occlusion program running unit, then judge that the screen of terminal freezes whether phenomenon has solved;
Solved if the screen of terminal freezes phenomenon, the current display information has been shown on terminal display screen.
Further, the terminal, which is frozen when the settlement procedure shielded is executed by processor, also realizes following operation:
Described to freeze target program running unit, application CPU performs occlusion program running unit, freezes screen to solve terminal After step, including:
The state of the occlusion program running unit is detected in real time, judges whether the occlusion program running unit is extensive It is multiple;
If occlusion program running unit is recovered, freeze described in releasing, so that target program running unit continues to run with.
Further, the terminal, which is frozen when the settlement procedure shielded is executed by processor, also realizes following operation:
Whether the state for detecting the occlusion program running unit in real time, judge the occlusion program running unit After the step of recovery, including:
If occlusion program running unit is not recovered, prompt message corresponding to generation, to prompt user to continue waiting for.
Further, the terminal, which is frozen when the settlement procedure shielded is executed by processor, also realizes following operation:
Described to freeze target program running unit, application CPU performs occlusion program running unit, freezes screen to solve terminal After step, including:
The service data is cached to monitor database, and whether deleted according to the condition adjudgement of pre-set programs running unit Except the service data.
Further, the terminal, which is frozen when the settlement procedure shielded is executed by processor, also realizes following operation:
The step of whether condition adjudgement according to pre-set programs running unit deletes the service data includes:
If the state of the pre-set programs running unit is operation, the service data is deleted;
If the state of the pre-set programs running unit is obstruction, the service data and service data is defeated is not deleted Enter to abnormal log.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body/operation/object comes with another entity/operation/object discrimination, and not necessarily require or imply these entity/operations/ Any this actual relation or order between object be present;Term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or system including a series of elements not only include that A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or The intrinsic key element of system.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except other identical element in the process including the key element, method, article or system being also present.
For device embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, it is related Part illustrates referring to the part of embodiment of the method.Device embodiment described above is only schematical, wherein making The unit illustrated for separating component can be or may not be physically separate.In can selecting according to the actual needs Some or all of module realize the purpose of the present invention program.Those of ordinary skill in the art are not paying creative work In the case of, you can to understand and implement.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in one as described above In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, Computer, server, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of terminal freezes the solution method of screen, it is characterised in that the solution method that the terminal freezes screen comprises the following steps:
The service data of pre-set programs running unit is obtained, the shape of pre-set programs running unit is determined according to the service data State;
Determine the occlusion program running unit in blocked state in pre-set programs running unit;
Freezing target program running unit, application CPU performs occlusion program running unit, freezes screen to solve terminal, wherein, it is described Target program running unit refers to other programs fortune in addition to occlusion program running unit and system core program running unit Row unit.
2. terminal as claimed in claim 1 freezes the solution method of screen, it is characterised in that the acquisition pre-set programs running unit Service data, the step of determining the state of pre-set programs running unit according to the service data includes:
Obtain the service data of each application programming interfaces in pre-set programs running unit;
According to the service data, the state of pre-set programs running unit is determined, wherein, the state includes operation and obstruction.
3. terminal as claimed in claim 1 freezes the solution method of screen, it is characterised in that described to freeze target program operation list Member, application CPU perform occlusion program running unit, are included with solving the step of terminal freezes screen:
Freeze target program running unit, the occupancy resource of target program running unit is discharged, wherein, the occupancy Resource includes:Cpu resource, GPU resource, memory headroom, user's space, system kernel;
Apply for that CPU performs occlusion program running unit, by the occupancy resource allocation to occlusion program running unit, to solve end Screen is frozen at end.
4. terminal as claimed in claim 1 freezes the solution method of screen, it is characterised in that described to freeze target program operation list Member, application CPU perform occlusion program running unit, are also included with solving the step of terminal freezes screen:Obstruction
The current display information of terminal display screen is preserved, freezes target program running unit, application CPU performs obstruction journey Sort run unit;
When detecting the recovery of occlusion program running unit, then judge that the screen of terminal freezes whether phenomenon has solved;
Solved if the screen of terminal freezes phenomenon, the current display information has been shown on terminal display screen.
5. terminal as claimed in claim 1 freezes the solution method of screen, it is characterised in that described to freeze target program operation list Member, application CPU performs occlusion program running unit, after solving the step of terminal freezes screen, including:
The state of the occlusion program running unit is detected in real time, judges whether the occlusion program running unit is recovered;
If occlusion program running unit is recovered, freeze described in releasing, so that target program running unit continues to run with.
6. terminal as claimed in claim 5 freezes the solution method of screen, it is characterised in that described to detect the obstruction journey in real time The state of sort run unit, after judging the step of whether the occlusion program running unit is recovered, including:
If occlusion program running unit is not recovered, prompt message corresponding to generation, to prompt user to continue waiting for.
7. the terminal as described in claim 1 to 6 any one freezes the solution method of screen, it is characterised in that described to freeze target Program running unit, application CPU performs occlusion program running unit, after solving the step of terminal freezes screen, including:
The service data is cached to monitor database, and whether institute is deleted according to the condition adjudgement of pre-set programs running unit State service data.
8. terminal as claimed in claim 1 freezes the solution method of screen, it is characterised in that described according to pre-set programs running unit Condition adjudgement the step of whether deleting the service data include:
If the state of the pre-set programs running unit is operation, the service data is deleted;
If the state of the pre-set programs running unit is obstruction, the service data is not deleted and is input to service data Abnormal log.
9. a kind of terminal, it is characterised in that the terminal includes:Memory, processor and it is stored on the memory and can The terminal run on the processor freezes the settlement procedure of screen, wherein:
The settlement procedure that the terminal freezes screen is realized as any one of claim 1 to 8 during the computing device Terminal freezes the step of solution method of screen.
10. a kind of computer-readable storage medium, it is characterised in that the solution that terminal freezes screen is stored with the computer-readable storage medium Program, the terminal as any one of claim 1 to 8 is realized when the settlement procedure that the terminal freezes screen is executed by processor The step of freezing the solution method of screen.
CN201711061252.5A 2017-10-31 2017-10-31 Terminal freezes solution method, terminal and the computer-readable recording medium of screen Pending CN107783858A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711061252.5A CN107783858A (en) 2017-10-31 2017-10-31 Terminal freezes solution method, terminal and the computer-readable recording medium of screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711061252.5A CN107783858A (en) 2017-10-31 2017-10-31 Terminal freezes solution method, terminal and the computer-readable recording medium of screen

Publications (1)

Publication Number Publication Date
CN107783858A true CN107783858A (en) 2018-03-09

Family

ID=61431421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711061252.5A Pending CN107783858A (en) 2017-10-31 2017-10-31 Terminal freezes solution method, terminal and the computer-readable recording medium of screen

Country Status (1)

Country Link
CN (1) CN107783858A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920195A (en) * 2018-06-19 2018-11-30 Oppo(重庆)智能科技有限公司 starting processing method and related product

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6505274B2 (en) * 1997-10-09 2003-01-07 Stmicroelectronics S.A. Processor and system for controlling shared access to a memory
CN1967471A (en) * 2005-10-27 2007-05-23 国际商业机器公司 Method and system for pausing a software thread
CN102117240A (en) * 2009-12-31 2011-07-06 腾讯科技(深圳)有限公司 Method and device for acquiring progress blocking information
CN105468426A (en) * 2016-01-05 2016-04-06 珠海市魅族科技有限公司 Application freezing method and terminal
CN106125882A (en) * 2016-06-15 2016-11-16 深圳市万普拉斯科技有限公司 The management method of a kind of application program and electronic equipment
CN106681822A (en) * 2017-01-19 2017-05-17 努比亚技术有限公司 Signal-based progress freezing and unfreezing device and signal-based progress freezing and unfreezing method
CN107133092A (en) * 2017-05-24 2017-09-05 努比亚技术有限公司 Multi-thread synchronization processing method, terminal and computer-readable recording medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6505274B2 (en) * 1997-10-09 2003-01-07 Stmicroelectronics S.A. Processor and system for controlling shared access to a memory
CN1967471A (en) * 2005-10-27 2007-05-23 国际商业机器公司 Method and system for pausing a software thread
CN102117240A (en) * 2009-12-31 2011-07-06 腾讯科技(深圳)有限公司 Method and device for acquiring progress blocking information
CN105468426A (en) * 2016-01-05 2016-04-06 珠海市魅族科技有限公司 Application freezing method and terminal
CN106125882A (en) * 2016-06-15 2016-11-16 深圳市万普拉斯科技有限公司 The management method of a kind of application program and electronic equipment
CN106681822A (en) * 2017-01-19 2017-05-17 努比亚技术有限公司 Signal-based progress freezing and unfreezing device and signal-based progress freezing and unfreezing method
CN107133092A (en) * 2017-05-24 2017-09-05 努比亚技术有限公司 Multi-thread synchronization processing method, terminal and computer-readable recording medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920195A (en) * 2018-06-19 2018-11-30 Oppo(重庆)智能科技有限公司 starting processing method and related product
CN108920195B (en) * 2018-06-19 2021-05-18 Oppo(重庆)智能科技有限公司 Boot processing method and related product

Similar Documents

Publication Publication Date Title
CN108536481A (en) A kind of application program launching method, mobile terminal and computer storage media
CN107861817A (en) Memory Optimize Method, mobile terminal and readable storage medium storing program for executing based on thread block
CN107395858A (en) A kind of reminding method of notification message, terminal and computer-readable recording medium
CN107807861A (en) Freeze screen solution method, mobile terminal and computer-readable recording medium
CN107590057A (en) Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium
CN107678876A (en) Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium
CN107102878A (en) One kind application startup method, mobile terminal and computer-readable recording medium
CN107704363A (en) Freeze screen monitoring method, mobile terminal and computer-readable recording medium
CN108052390A (en) Memory method for cleaning, mobile terminal and readable storage medium storing program for executing based on thread block
CN107391241A (en) Using quick start method, terminal and computer-readable recording medium
CN108519916A (en) Processing method, mobile terminal and the readable storage medium storing program for executing of terminal clean up process
CN107704132A (en) Terminal freezes detection method, terminal and the computer-readable recording medium of screen
CN109040441A (en) Using display methods of attending to anything else, mobile terminal and computer readable storage medium
CN107704133A (en) Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium
CN108170787A (en) A kind of image file delet method, mobile terminal and computer readable storage medium
CN107967177A (en) Memory Optimize Method, mobile terminal and readable storage medium storing program for executing based on kernel process
CN110191465A (en) Authority control method, mobile terminal and computer readable storage medium
CN110162418A (en) Using cold start-up method, mobile terminal and computer readable storage medium
CN109151216A (en) Using starting method, mobile terminal, server and computer readable storage medium
CN109472157A (en) Storage method, mobile terminal and the computer storage medium of application data
CN107908491A (en) Card screen detection is with solving method, mobile terminal and computer-readable recording medium
CN107765922A (en) Card screen detection is with solving method, mobile terminal and computer-readable recording medium
CN108958936A (en) Application programe switch-over method, mobile terminal and computer readable storage medium
CN108052391A (en) Memory Optimize Method, mobile terminal and readable storage medium storing program for executing based on thread deadlock
CN107908492A (en) Blank screen detection method, mobile terminal and computer-readable recording medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180309

RJ01 Rejection of invention patent application after publication