CN107590057A - Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium - Google Patents

Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium Download PDF

Info

Publication number
CN107590057A
CN107590057A CN201710905196.2A CN201710905196A CN107590057A CN 107590057 A CN107590057 A CN 107590057A CN 201710905196 A CN201710905196 A CN 201710905196A CN 107590057 A CN107590057 A CN 107590057A
Authority
CN
China
Prior art keywords
created
default thread
thread
default
current process
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.)
Granted
Application number
CN201710905196.2A
Other languages
Chinese (zh)
Other versions
CN107590057B (en
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 CN201710905196.2A priority Critical patent/CN107590057B/en
Publication of CN107590057A publication Critical patent/CN107590057A/en
Application granted granted Critical
Publication of CN107590057B publication Critical patent/CN107590057B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses one kind to freeze screen monitoring with solving method,Mobile terminal and computer-readable recording medium,By when monitoring that inter-process data communicates,Judge whether the current process for carrying out inter-process data communication possesses the establishment condition of default thread,And obstruction judgement is carried out to the default thread in current process,Then do not possess the establishment condition of default thread in current process,And each current state for having created default thread is when being blocked state,Determine that mobile terminal occurs freezing screen,And can be when there is freezing screen in mobile terminal,Determine to freeze screen processing strategy based on each obstruction duration for having created default thread,Default thread is created to this based on jelly screen processing strategy simultaneously to handle,Timely solve the problems, such as to freeze screen so as to quick,And without mobile terminal is retracted into factory repair,Save maintenance time,Solve when monitoring to freeze screen,Automatically and timely solve to freeze screen,The problem of saving maintenance time.

Description

Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium
Technical field
The present invention relates to technical field of mobile terminals, more particularly to it is a kind of freeze screen monitoring with solve method, mobile terminal and Computer-readable recording medium.
Background technology
With the development of mobile terminal technology, the hardware configuration of mobile terminal is also become better and better, the function that can be realized It is more and more, and integrated APP (Application, application program) is also more and more.It is currently based on the different fields of mobile terminal The application program of scape is ten hundreds of, and the third-party application and service amount of software installed on mobile terminals with user are increasingly It is more, 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, and freezes screen every time It is required to user manually to restart, Consumer's Experience is bad, in addition, by restarting mobile terminal might not it can also recovered just Often, it is necessary to which mobile terminal is retracted into factory repair, maintenance time is longer, therefore, automatic and timely how when monitoring to freeze screen Solution freeze screen, save maintenance time be 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
It is a primary object of the present invention to provide a kind of to freeze screen monitoring and solution method, mobile terminal and computer-readable deposit Storage media, it is intended to solve how when monitoring to freeze screen, solve automatically and timely to freeze screen, the technology for saving maintenance time is asked Topic.
To achieve the above object, the present invention provides a kind of jelly screen monitoring with solving method, the jelly screen monitoring and solution party Method comprises the following steps:
When monitoring inter-process data communication, obtained with interval preset time and carry out working as the inter-process data communication The basic progress information of preceding process, and default thread progress predetermined registration operation has been created to each of the current process, to determine Each current state for having created default thread;
Judge whether the current process possesses the establishment condition of default thread according to the basic progress information, and judge Whether each current state for having created default thread is blocked state;
Do not possess the establishment condition of default thread, and each current state for having created default thread in the current process When being blocked state, each obstruction duration for having created default thread of record;
Duration section according to residing for each obstruction duration for having created default thread determines to freeze screen processing strategy, and is based on The screen processing strategy that freezes has created default thread and handled to described.
Alternatively, it is described to judge whether the current process possesses the establishment of default thread according to the basic progress information The step of condition, includes:
The number of establishment of the default thread of the current process and maximum establishment number are extracted from the basic progress information, And create whether number is less than the maximum establishment number described in judging;
If the number that created is less than the maximum establishment number, judge that the current process possesses the establishment of default thread Condition;
If the number that created is equal to the maximum establishment number, judge that the current process does not possess the wound of default thread Build condition.
Alternatively, the duration section that the basis has each been created residing for the obstruction duration of default thread determines to freeze screen processing Strategy, and included based on the screen processing strategy that freezes to having created the step of default thread is handled:
Obtain first message queue and the second current process for the first current process for carrying out the inter-process data communication The second message queue;
When each obstruction duration for having created default thread is in the first duration section, from the first message queue Thread is preset in the establishment most long with obstruction duration is removed in the second message queue;
When each obstruction duration for having created default thread is in the second duration section, respectively from the first message The most long establishment of obstruction duration is removed in queue and the second message queue and presets thread.
Alternatively, the step of whether each current state for having created default thread of the judgement is blocked state is wrapped Include:
Judge whether each of the current process has created state return value that default thread obtained based on predetermined registration operation For preset state return value;
If to have created default thread based on the state return value that predetermined registration operation obtains be pre- by the current process each If state return value, then judge that each current state for having created default thread is blocked state;
If each of the current process has created default thread and is not based on the state return value that predetermined registration operation obtains Preset state return value, then judge that each current state for having created default thread is not blocked state.
Alternatively, after the record each the step of having created the obstruction duration of default thread, it is described freeze screen monitoring with Solution method also includes:
Judge whether each obstruction duration for having created default thread is all higher than default obstruction duration;
When each obstruction duration for having created default thread is all higher than default obstruction duration, it is each to perform the basis Create the duration section residing for the obstruction duration of default thread and determine jelly screen processing strategy, and it is right based on the jelly screen processing strategy The step of default thread is handled is created.
Alternatively, the step of whether each current state for having created default thread of the judgement is blocked state it Afterwards, the jelly screen monitoring also includes with solution method:
Do not possess the establishment condition of default thread, and each current state for having created default thread in the current process When being blocked state, the storehouse recalls information and thread interactive information of the current process are obtained, and the storehouse is called Information and the thread interactive information are exported to feature journal file.
Alternatively, when monitoring the export request of feature journal file, feature daily record text is obtained from default storage region Part;
The feature journal file is exported to the terminal device in feature journal file export request, for described Terminal device stores the feature journal file.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, described to freeze screen monitoring with solving method bag Include:The jelly screen monitoring that memory, processor and being stored in can be run on the memory and on the processor is with solving journey Sequence, described freeze when screen is monitored with settlement procedure by the computing device realize following steps:
When monitoring inter-process data communication, obtained with interval preset time and carry out working as the inter-process data communication The basic progress information of preceding process, and default thread progress predetermined registration operation has been created to each of the current process, to determine Each current state for having created default thread;
Judge whether the current process possesses the establishment condition of default thread according to the basic progress information, and judge Whether each current state for having created default thread is blocked state;
Do not possess the establishment condition of default thread, and each current state for having created default thread in the current process When being blocked state, each obstruction duration for having created default thread of record;
Duration section according to residing for each obstruction duration for having created default thread determines to freeze screen processing strategy, and is based on The screen processing strategy that freezes has created default thread and handled to described.
The present invention also provides a kind of computer-readable recording medium, and jelly screen is stored with the computer-readable recording medium Monitoring and settlement procedure, described freeze when screen monitoring is executed by processor with settlement procedure realize following steps:
When monitoring inter-process data communication, obtained with interval preset time and carry out working as the inter-process data communication The basic progress information of preceding process, and default thread progress predetermined registration operation has been created to each of the current process, to determine Each current state for having created default thread;
Judge whether the current process possesses the establishment condition of default thread according to the basic progress information, and judge Whether each current state for having created default thread is blocked state;
Do not possess the establishment condition of default thread, and each current state for having created default thread in the current process When being blocked state, each obstruction duration for having created default thread of record;
Duration section according to residing for each obstruction duration for having created default thread determines to freeze screen processing strategy, and is based on The screen processing strategy that freezes has created default thread and handled to described.
The present invention propose it is a kind of freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium, by When monitoring inter-process data communication, judge whether the current process for carrying out inter-process data communication possesses the establishment of default thread Condition, and obstruction judgement is carried out to the default thread in current process, the establishment for then not possessing default thread in current process Condition, and when each current state for having created default thread is blocked state, determine that mobile terminal occurs freezing screen, and can When screen occurs freezing in mobile terminal, determine to freeze screen processing strategy, while base based on each obstruction duration for having created default thread Default thread has been created to this to handle, timely solve the problems, such as to freeze screen so as to quick in jelly screen processing strategy, and need not Mobile terminal is retracted into factory repair, saves maintenance time, is solved when monitoring to freeze screen, solves automatically and timely to freeze Screen, save maintenance time the problem of.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is the level schematic diagram of the operating system of mobile terminal of the present invention;
Fig. 3 is that the present invention freezes screen monitoring with solving the schematic flow sheet of method first embodiment;
Fig. 4 is to judge whether the current process possesses default thread according to the basic progress information described in Fig. 3 Create the refinement schematic flow sheet of condition step;
Fig. 5 is that the duration section described in Fig. 3 according to residing for each obstruction duration for having created default thread determines to freeze screen Processing strategy, and based on the jelly screen processing strategy to the refinement flow signal for having created default thread and having carried out processing step Figure;
Fig. 6 is that the present invention freezes screen monitoring with solving the schematic flow sheet of method 3rd embodiment.
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 2, it is the level schematic diagram of the operating system stored in storing program area, as shown in Fig. 2 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.
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..
Based on above-mentioned mobile terminal hardware configuration, each embodiment of mobile terminal of the present invention is proposed.
Fig. 1 is refer to, in the first embodiment of mobile terminal of the present invention, the mobile terminal includes:Memory, processor And the jelly screen monitoring that can be run on the memory and on the processor and settlement procedure are stored in, it is described to freeze screen monitoring Following steps are realized during with settlement procedure by the computing device:
When monitoring inter-process data communication, obtained with interval preset time and carry out working as the inter-process data communication The basic progress information of preceding process, and default thread progress predetermined registration operation has been created to each of the current process, to determine Each current state for having created default thread;
Judge whether the current process possesses the establishment condition of default thread according to the basic progress information, and judge Whether each current state for having created default thread is blocked state;
Do not possess the establishment condition of default thread, and each current state for having created default thread in the current process When being blocked state, each obstruction duration for having created default thread of record;
Duration section according to residing for each obstruction duration for having created default thread determines to freeze screen processing strategy, and is based on The screen processing strategy that freezes has created default thread and handled to described.
Further, described freeze when screen is monitored with settlement procedure by the computing device also realizes following steps:
The number of establishment of the default thread of the current process and maximum establishment number are extracted from the basic progress information, And create whether number is less than the maximum establishment number described in judging;
If the number that created is less than the maximum establishment number, judge that the current process possesses the establishment of default thread Condition;
If the number that created is equal to the maximum establishment number, judge that the current process does not possess the wound of default thread Build condition.
Further, described freeze when screen is monitored with settlement procedure by the computing device also realizes following steps:
Obtain first message queue and the second current process for the first current process for carrying out the inter-process data communication The second message queue;
When each obstruction duration for having created default thread is in the first duration section, from the first message queue Thread is preset in the establishment most long with obstruction duration is removed in the second message queue;
When each obstruction duration for having created default thread is in the second duration section, respectively from the first message The most long establishment of obstruction duration is removed in queue and the second message queue and presets thread.
Further, described freeze when screen is monitored with settlement procedure by the computing device also realizes following steps:
Judge whether each of the current process has created state return value that default thread obtained based on predetermined registration operation For preset state return value;
If to have created default thread based on the state return value that predetermined registration operation obtains be pre- by the current process each If state return value, then judge that each current state for having created default thread is blocked state;
If each of the current process has created default thread and is not based on the state return value that predetermined registration operation obtains Preset state return value, then judge that each current state for having created default thread is not blocked state.
Further, described freeze when screen is monitored with settlement procedure by the computing device also realizes following steps:
Judge whether each obstruction duration for having created default thread is all higher than default obstruction duration;
When each obstruction duration for having created default thread is all higher than default obstruction duration, it is each to perform the basis Create the duration section residing for the obstruction duration of default thread and determine jelly screen processing strategy, and it is right based on the jelly screen processing strategy The step of default thread is handled is created.
Further, described freeze when screen is monitored with settlement procedure by the computing device also realizes following steps:
Do not possess the establishment condition of default thread, and each current state for having created default thread in the current process When being blocked state, the storehouse recalls information and thread interactive information of the current process are obtained, and the storehouse is called Information and the thread interactive information are exported to feature journal file.
Further, described freeze when screen is monitored with settlement procedure by the computing device also realizes following steps:
When monitoring the export request of feature journal file, feature journal file is obtained from default storage region;
The feature journal file is exported to the terminal device in feature journal file export request, for described Terminal device stores the feature journal file.
The specific embodiment of mobile terminal of the present invention and each specific embodiment of following jelly screen monitorings and solution method are basic Identical, therefore not to repeat here.
Further, the present invention also provides the monitoring of jelly screen and the solution method of a kind of mobile terminal applied to shown in Fig. 1, Reference picture 3, Fig. 3 are that the present invention freezes screen monitoring with solving the schematic flow sheet of method first embodiment.
In the present embodiment, jelly screen monitoring includes with solution method:
Step S101, when monitoring inter-process data communication, obtained and counted between the process with interval preset time Default behaviour is carried out according to the basic progress information of the current process of communication, and to the default thread that each created of the current process Make, to determine each current state for having created default thread;
The jelly screen is monitored with solving the mobile terminal shown in method application drawing 1, and the mobile terminal includes smart mobile phone peace Plate computer etc..From the operating system of mobile terminal, the data communication between different processes needs to pass through operating system nucleus The Binder in space is driven to realize, the operating system is android system, and android system provides SystemServer Process can at most create 16 Binder threads and be communicated for inter-process data;SurfaceFlinger processes can at most be created 4 Binder threads are built to communicate for inter-process data;Program application process can at most create 8 Binder threads be used for into Data communicate between journey.Binder threads loading Binder drivings, then using internal memory mapping function, are given when creating initialization Binder threads distribution virtual address space is used for receiving affairs.Each SystemServer processes, SurfaceFlinger enter Journey and program application process only allow to create a Binder main thread, the Binder sub-line journeys in remaining Binder thread pool Establishment is controlled by Binder drivings.Due to SystemServer processes, SurfaceFlinger processes and program application The Binder threads that process can create are limited, when the Binder threads that can be created are in blocked state, can not be carried out Inter-process data communicates, and causes the program application of APP layers can not enter row data communication with system core process so that mobile terminal Occur freezing screen, therefore, by the way that when monitoring that inter-process data communicates, monitoring participates in the current process of inter-process data communication Number can be created by having created Binder threads and whether reaching maximum, and create whether Binder threads are in blocked state, from And determine whether mobile terminal occurs freezing screen, then when screen occurs freezing in mobile terminal, default thread has been created based on each Block the duration section residing for duration to determine to freeze screen processing strategy, and default line has been created to described based on jelly screen processing strategy Cheng Jinhang processing.
Specifically, the mobile terminal receives display request of the user based on installation procedure applications trigger, and this is shown Request is transmitted to system core process, carries out inter-process data communication, and mobile terminal is when monitoring inter-process data communication, Monitor is created in Native layers, is obtained by monitor with interval preset time and carries out ought advancing for the inter-process data communication The basic progress information of journey, and each of current process to carrying out the inter-process data communication has created default thread progress in advance If operation, to determine each current state for having created default thread, i.e., obtain simultaneously the basic progress information of current process with Determine each current state for having created default thread of current process.The default thread is Binder threads, and the basis is carried out Information claims including process name, process identification (PID), allows the Binder Thread Counts that can at most create and the Binder Thread Counts created Deng.
In specific implementation, the establishment in the basic progress information that the mobile terminal is obtained with the preset time of interval first Binder Thread Counts for current process allow can at most create Binder Thread Counts half when, the mobile terminal with It is spaced the basic progress information that the second preset time obtains the current process for carrying out the inter-process data communication;If the movement is whole End is allowed using the Binder Thread Counts created in the basic progress information that the preset time of interval first obtains as current process During a quarter for the Binder Thread Counts that can at most create, the mobile terminal carries out this with the acquisition of the preset time of interval the 3rd and entered The basic progress information for the current process that data communicate between journey.It should be noted that first preset time, the second preset time It it is respectively 30 seconds, 60 seconds and 120 seconds with the 3rd preset time, in addition, first preset time, the second preset time and the 3rd are pre- If the time can be configured by those skilled in the art based on actual conditions, the present embodiment is not specifically limited to this.
Step S102, judge whether the current process possesses the establishment bar of default thread according to the basic progress information Part, and judge whether each current state for having created default thread is blocked state;
The mobile terminal obtain carry out the inter-process data communication current process basic progress information after, according to The basic progress information judges whether current process possesses the establishment condition of default thread, that is, judges whether current process can be with Binder threads are created, while also judge whether each current state for having created default thread is blocked state.
Specifically, reference picture 4, Fig. 4 are the refinement schematic flow sheet of step S102 in Fig. 3, and step S102 includes:
Step S1021, extracted from the basic progress information current process default thread the number of establishment and It is maximum to create number, and created whether number is less than the maximum establishment number described in judgement;
Step S1022, if the number that created is less than the maximum establishment number, it is default to judge that the current process possesses The establishment condition of thread;
Step S1023, if the number that created is equal to the maximum establishment number, it is pre- to judge that the current process does not possess If the establishment condition of thread.
The mobile terminal is after the basic progress information for the current process for carrying out the inter-process data communication is obtained, from this The number of establishment of the default thread of current process and maximum establishment number are extracted in basic progress information, and judges that this has created number and has been It is no be less than maximum create number, i.e., from the basic progress information extract current process Binder threads the number of establishment with The maximum of Binder threads creates number, and judges the maximum establishment for having created number and whether being less than Binder threads of Binder threads Number, if the number that created of Binder threads creates number less than the maximum of Binder threads, then it represents that current process can create Binder threads, judge that current process possesses the establishment condition of default thread, i.e. current process possesses the establishment of Binder threads Condition, if the number that created of Binder threads creates number equal to the maximum of Binder threads, then it represents that current process can not be created Binder threads are built, judge that current process does not possess the establishment condition of default thread, i.e. current process does not possess Binder threads Establishment condition.
Specifically, in the present embodiment, created whether number includes less than the maximum step for creating number described in judging:
Judge whether each of the current process has created state return value that default thread obtained based on predetermined registration operation For preset state return value;
If to have created default thread based on the state return value that predetermined registration operation obtains be pre- by the current process each If state return value, then judge that each current state for having created default thread is blocked state;
If each of the current process has created default thread and is not based on the state return value that predetermined registration operation obtains Preset state return value, then judge that each current state for having created default thread is not blocked state.
The mobile terminal judges each state return for having created default thread and having been obtained based on predetermined registration operation of current process Whether value is preset state return value, i.e., has created default thread progress ping operations (Packet to each of current process Internet Groper, the Internet packets survey meter), operated with obtaining each ping for having created default thread of current process Return value, and judge that each ping for having created default thread of current process operates whether return value is that default ping operations are returned Value is returned, if each ping operations return value for having created default thread of current process is default ping operations return value, That is to have created default thread based on the state return value that predetermined registration operation obtains be preset state return value by current process each, It then can be determined that the establishment of current process presets thread and is in blocked state, if each having created for current process is default The ping operations return value of thread is not default ping operations return value, i.e. each of current process has created default thread base It is not preset state return value in the state return value that predetermined registration operation obtains, then can be determined that the establishment of current process is preset Thread is not in blocked state.The ping operates return value, i.e., state return value is with having created the state of default thread one by one It is corresponding, return value can be operated according to the ping, i.e. state return value determines to have created the current state of default thread, has created pre- If the state of thread includes busy condition, idle condition, suspended state, blocked state and waiting-timeout state etc..
Step S103, do not possess the establishment condition of default thread in the current process, and each created default thread Current state when being blocked state, each obstruction duration for having created default thread of record;
Step S104, the duration section according to residing for each obstruction duration for having created default thread determine to freeze screen processing plan Slightly, and based on the screen processing strategy that freezes default thread has been created to described and has handled.
The mobile terminal does not possess the establishment condition of default thread in current process, and has each created working as default thread When preceding state is blocked state, each obstruction duration for having created default thread in current process is recorded, then according to each The duration section residing for the obstruction duration of default thread has been created to determine to freeze screen processing strategy, and it is right based on jelly screen processing strategy It is described to have created default thread and handled.
Specifically, reference picture 5, Fig. 5 are the refinement schematic flow sheet of step S104 in Fig. 3, and step S104 includes:
Step S1041, obtain the first message queue and for the first current process for carrying out the inter-process data communication Second message queue of two current process;
Step S1042, when each obstruction duration for having created default thread is in the first duration section, from described The most long establishment of obstruction duration is removed in one message queue and the second message queue and presets thread;
Step S1043, when each obstruction duration for having created default thread is in the second duration section, respectively from institute State and the default thread of the most long establishment of obstruction duration is removed in first message queue and the second message queue.
The acquisition for mobile terminal carries out the first message queue and second of the first current process of the inter-process data communication Second message queue of current process, then it is in the first duration section in each obstruction duration for having created default thread When, the most long establishment of obstruction duration is removed from the first message queue and the second message queue and presets thread, that is, removes two Block the most long establishment of duration in individual message queue and preset thread, removing one altogether has created default thread;It is each When the obstruction duration of the default thread of establishment is in the second duration section, respectively from first message queue and the second message queue Remove the most long establishment of obstruction duration and preset thread, that is, remove the establishment that obstruction duration is most long in first message queue and preset Thread, while remove and block the default thread of the most long establishment of duration in the second message queue, removal two altogether has created pre- If thread.In specific implementation, when each obstruction duration for having created default thread is in the 3rd duration section, from first Line is preset in a length of most long establishment of a length of vice-minister when having created default thread and obstruction when obstruction is removed in message queue, together A length of most long wound of a length of vice-minister when having created default thread and obstruction when obstruction is removed in the message queues of Shi Congcong second Default line is built, removing four altogether has created default thread.It should be noted that the first duration section can be 61 seconds to 120 Second, the second duration section can be 121 seconds to 300 seconds, and the 3rd duration section can be 301 seconds to 600 seconds, in addition, above-mentioned the One duration section, the second duration section and the 3rd duration section can also be set by those skilled in the art based on actual conditions Put, the present embodiment is not specifically limited to this.
In the present embodiment, the present invention is by when monitoring that inter-process data communicates, judging that carrying out inter-process data leads to Whether the current process of letter possesses the establishment condition of default thread, and carries out obstruction judgement to the default thread in current process, Then do not possess the establishment condition of default thread in current process, and each current state for having created default thread is obstruction During state, determine that mobile terminal occurs freezing screen, and can be when screen occurs freezing in mobile terminal, based on each having created default thread Obstruction duration determine to freeze screen processing strategy, while default thread created to this handled based on jelly screen processing strategy, Timely solve the problems, such as to freeze screen so as to quick, and without mobile terminal is retracted into factory repair, save maintenance time, solve When monitoring to freeze screen, solves automatically and timely the problem of freezing screen, saving maintenance time.
Further, based on the mobile terminal shown in Fig. 1 and above-mentioned first embodiment propose the present invention freeze screen monitoring with The second embodiment of solution method, the difference with previous embodiment are, after step S103, jelly screen monitoring and solution party Method also includes:
Judge whether each obstruction duration for having created default thread is all higher than default obstruction duration;
When each obstruction duration for having created default thread is all higher than default obstruction duration, step S104, i.e. root are performed Jelly screen processing strategy is determined according to the duration section residing for each obstruction duration for having created default thread, and is frozen based on described at screen Reason strategy is handled having created default thread.
It should be noted that whether the present invention further provides a kind of accurate determination mobile terminal based on previous embodiment There is the concrete mode for freezing screen, be only explained below, it is other to can refer to previous embodiment.
After the mobile terminal records have each created the obstruction duration of default thread, judgement has each created default thread Obstruction duration whether be all higher than default obstruction duration, if each obstruction duration for having created default thread is all higher than pre- handicapping Duration is filled in, then the duration section according to residing for each obstruction duration for having created default thread determines to freeze screen processing strategy, and base Default thread is created to described in jelly screen processing strategy and has handled;If each obstruction duration for having created default thread Default obstruction duration is not all higher than, then obtains the storehouse recalls information and thread interactive information of current process, and the storehouse is adjusted Exported with information and the thread interactive information to feature journal file.
In the present embodiment, the present invention is by judging whether each obstruction duration for having created default thread is all higher than presetting Obstruction duration further determines whether mobile terminal occurs freezing screen, effectively improves the monitoring precision for freezing screen.
Further, reference picture 6, this is proposed based on the mobile terminal shown in Fig. 1 and above-mentioned first or second embodiments Invention freezes screen monitoring with solving the 3rd embodiment of method, and the difference with previous embodiment is, after step S102, the jelly Screen monitoring also includes with solution method:
Step S105, do not possess the establishment condition of default thread in the current process, and each created default thread Current state when being blocked state, obtain the storehouse recalls information and thread interactive information of the current process, and by institute State storehouse recalls information and the thread interactive information is exported to feature journal file.
It should be noted that the present invention proposes a kind of specific way of output for blocking information based on previous embodiment, with Under be only explained, it is other to can refer to previous embodiment.
The mobile terminal does not possess the establishment condition of default thread in current process, and has each created working as default thread When preceding state is blocked state, the obstruction information such as storehouse recalls information and thread interactive information of current process is obtained, and will The obstruction information such as the storehouse recalls information and the thread interactive information is exported to feature journal file, specifically, is getting heap After stack recalls information and thread interactive information, individually create a thread and be output to storehouse recalls information and thread interactive information Debugerd processes, by Debugerd processes by the storehouse recalls information and the orientation output of thread interactive information to having In the feature journal file of Debugerd authorities processing.
Alternatively, in the present embodiment, after step S105, in addition to:
When monitoring the export request of feature journal file, feature journal file is obtained from default storage region;
The feature journal file is exported to the terminal device in feature journal file export request, for described Terminal device stores the feature journal file.
It should be noted that the present invention is based on previous embodiment, it is proposed that a kind of specific export side of feature journal file Formula, only it is explained below, it is other to can refer to previous embodiment.
The mobile terminal obtains feature daily record when monitoring the export request of feature journal file from default storage region File, and this feature journal file is exported to the terminal device in the export request of this feature journal file, can be mobile whole During the memory space inadequate at end, this feature journal file is exported to other terminal devices and stored.
In the present embodiment, the present invention can not possess the establishment condition of default thread in current process, and each create When the current state for building default thread is blocked state, storehouse recalls information and thread interactive information are exported to feature daily record File, when screen occurs freezing in terminal easy to remove, feature journal file is read, so as to which fast positioning freezes screen reason, greatly reduced Human cost and time cost.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium, the computer-readable recording medium On be stored with jelly screen monitoring and settlement procedure, it is described freeze screen monitoring with settlement procedure be executed by processor when realizes following steps:
When monitoring inter-process data communication, obtained with interval preset time and carry out working as the inter-process data communication The basic progress information of preceding process, and default thread progress predetermined registration operation has been created to each of the current process, to determine Each current state for having created default thread;
Judge whether the current process possesses the establishment condition of default thread according to the basic progress information, and judge Whether each current state for having created default thread is blocked state;
Do not possess the establishment condition of default thread, and each current state for having created default thread in the current process When being blocked state, each obstruction duration for having created default thread of record;
Duration section according to residing for each obstruction duration for having created default thread determines to freeze screen processing strategy, and is based on The screen processing strategy that freezes has created default thread and handled to described.
Further, described freeze when screen is monitored with settlement procedure by the computing device also realizes following steps:
The number of establishment of the default thread of the current process and maximum establishment number are extracted from the basic progress information, And create whether number is less than the maximum establishment number described in judging;
If the number that created is less than the maximum establishment number, judge that the current process possesses the establishment of default thread Condition;
If the number that created is equal to the maximum establishment number, judge that the current process does not possess the wound of default thread Build condition.
Further, described freeze when screen is monitored with settlement procedure by the computing device also realizes following steps:
Obtain first message queue and the second current process for the first current process for carrying out the inter-process data communication The second message queue;
When each obstruction duration for having created default thread is in the first duration section, from the first message queue Thread is preset in the establishment most long with obstruction duration is removed in the second message queue;
When each obstruction duration for having created default thread is in the second duration section, respectively from the first message The most long establishment of obstruction duration is removed in queue and the second message queue and presets thread.
Further, described freeze when screen is monitored with settlement procedure by the computing device also realizes following steps:
Judge whether each of the current process has created state return value that default thread obtained based on predetermined registration operation For preset state return value;
If to have created default thread based on the state return value that predetermined registration operation obtains be pre- by the current process each If state return value, then judge that each current state for having created default thread is blocked state;
If each of the current process has created default thread and is not based on the state return value that predetermined registration operation obtains Preset state return value, then judge that each current state for having created default thread is not blocked state.
Further, described freeze when screen is monitored with settlement procedure by the computing device also realizes following steps:
Judge whether each obstruction duration for having created default thread is all higher than default obstruction duration;
When each obstruction duration for having created default thread is all higher than default obstruction duration, it is each to perform the basis Create the duration section residing for the obstruction duration of default thread and determine jelly screen processing strategy, and it is right based on the jelly screen processing strategy The step of default thread is handled is created.
Further, described freeze when screen is monitored with settlement procedure by the computing device also realizes following steps:
Do not possess the establishment condition of default thread, and each current state for having created default thread in the current process When being blocked state, the storehouse recalls information and thread interactive information of the current process are obtained, and the storehouse is called Information and the thread interactive information are exported to feature journal file.
Further, described freeze when screen is monitored with settlement procedure by the computing device also realizes following steps:
When monitoring the export request of feature journal file, feature journal file is obtained from default storage region;
The feature journal file is exported to the terminal device in feature journal file export request, for described Terminal device stores the feature journal file.
The specific embodiment of computer-readable recording medium of the present invention is with the monitoring of above-mentioned jelly screen with solving each specific of method Embodiment is essentially identical, and therefore not to repeat here.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or system institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or system.
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. one kind jelly screen monitoring is with solving method, it is characterised in that the jelly screen monitoring comprises the following steps with solution method:
When monitoring inter-process data communication, with the interval preset time acquisition progress inter-process data communication when advance The basic progress information of journey, and default thread progress predetermined registration operation has been created to each of the current process, to determine each The current state of default thread is created;
Judge whether the current process possesses the establishment condition of default thread according to the basic progress information, and judge each Whether the current state for having created default thread is blocked state;
Do not possess the establishment condition of default thread in the current process, and the current state for each having created default thread is During blocked state, each obstruction duration for having created default thread of record;
Duration section according to residing for each obstruction duration for having created default thread determines that freezing screen handles strategy, and based on described Freeze screen processing strategy to have created default thread to described and handle.
2. as claimed in claim 1 freeze screen monitoring with solving method, it is characterised in that described according to the basic progress information Judge whether the current process possesses the step of establishment condition of default thread and include:
The number of establishment of the default thread of the current process and maximum establishment number are extracted from the basic progress information, and is sentenced Whether the disconnected number that created is less than the maximum establishment number;
If the number that created is less than the maximum establishment number, judge that the current process possesses the establishment bar of default thread Part;
If the number that created is equal to the maximum establishment number, judge that the current process does not possess the establishment bar of default thread Part.
3. as claimed in claim 1 freeze screen monitoring with solving method, it is characterised in that the basis has each created default line Duration section residing for the obstruction duration of journey determines jelly screen processing strategy, and default to having created based on the jelly screen processing strategy The step of thread is handled includes:
Obtain the first current process for carrying out the inter-process data communication first message queue and the second current process the Two message queues;
When each obstruction duration for having created default thread is in the first duration section, from the first message queue and The most long establishment of obstruction duration is removed in two message queues and presets thread;
When each obstruction duration for having created default thread is in the second duration section, respectively from the first message queue Thread is preset in the establishment most long with obstruction duration is removed in the second message queue.
4. as claimed in claim 1 freeze screen monitoring with solving method, it is characterised in that the judgement has each created default line The step of whether current state of journey is blocked state includes:
Judge whether the current process each to have created default thread based on the state return value that predetermined registration operation obtains be pre- If state return value;
If to have created default thread based on the state return value that predetermined registration operation obtains be default shape by the current process each State return value, then judge that each current state for having created default thread is blocked state;
If to have created default thread based on the state return value that predetermined registration operation obtains be not default by the current process each State return value, then judge that each current state for having created default thread is not blocked state.
5. as claimed in claim 1 freeze screen monitoring with solving method, it is characterised in that the record has each created default line After the step of obstruction duration of journey, the jelly screen monitoring also includes with solution method:
Judge whether each obstruction duration for having created default thread is all higher than default obstruction duration;
When each obstruction duration for having created default thread is all higher than default obstruction duration, performs the basis and each created Duration section residing for the obstruction duration of default thread, which determines to freeze, shields processing strategy, and shields processing strategy to having created based on described freeze Build the step of default thread is handled.
6. the jelly screen monitoring as any one of claim 1-5 is with solving method, it is characterised in that described to judge each After the step of whether current state for creating default thread is blocked state, the jelly screen monitoring is also wrapped with solution method Include:
Do not possess the establishment condition of default thread in the current process, and the current state for each having created default thread is During blocked state, the storehouse recalls information and thread interactive information of the current process are obtained, and by the storehouse recalls information Exported with the thread interactive information to feature journal file.
7. as claimed in claim 6 freeze screen monitoring with solving method, it is characterised in that it is described by the storehouse recalls information and The thread interactive information was exported the step of feature journal file, and the jelly screen monitoring is also wrapped with solution method Include:
When monitoring the export request of feature journal file, feature journal file is obtained from default storage region;
The feature journal file is exported to the terminal device in feature journal file export request, for the terminal Equipment stores the feature journal file.
8. a kind of mobile terminal, it is characterised in that the mobile terminal includes:Memory, processor and it is stored in the storage On device and the jelly screen monitoring that can be run on the processor and settlement procedure, the screen that freezes are monitored with settlement procedure by the place Reason device realizes following steps when performing:
When monitoring inter-process data communication, with the interval preset time acquisition progress inter-process data communication when advance The basic progress information of journey, and default thread progress predetermined registration operation has been created to each of the current process, to determine each The current state of default thread is created;
Judge whether the current process possesses the establishment condition of default thread according to the basic progress information, and judge each Whether the current state for having created default thread is blocked state;
Do not possess the establishment condition of default thread in the current process, and the current state for each having created default thread is During blocked state, each obstruction duration for having created default thread of record;
Duration section according to residing for each obstruction duration for having created default thread determines that freezing screen handles strategy, and based on described Freeze screen processing strategy to have created default thread to described and handle.
9. mobile terminal as claimed in claim 8, it is characterised in that described to freeze screen monitoring with settlement procedure by the processor Following steps are also realized during execution:
The number of establishment of the default thread of the current process and maximum establishment number are extracted from the basic progress information, and is sentenced Whether the disconnected number that created is less than the maximum establishment number;
If the number that created is less than the maximum establishment number, judge that the current process possesses the establishment bar of default thread Part;
If the number that created is equal to the maximum establishment number, judge that the current process does not possess the establishment bar of default thread Part.
10. a kind of computer-readable recording medium, it is characterised in that jelly screen prison is stored with the computer-readable recording medium Survey and settlement procedure, described freeze when screen monitoring is executed by processor with settlement procedure realize following steps:
When monitoring inter-process data communication, with the interval preset time acquisition progress inter-process data communication when advance The basic progress information of journey, and default thread progress predetermined registration operation has been created to each of the current process, to determine each The current state of default thread is created;
Judge whether the current process possesses the establishment condition of default thread according to the basic progress information, and judge each Whether the current state for having created default thread is blocked state;
Do not possess the establishment condition of default thread in the current process, and the current state for each having created default thread is During blocked state, each obstruction duration for having created default thread of record;
Duration section according to residing for each obstruction duration for having created default thread determines that freezing screen handles strategy, and based on described Freeze screen processing strategy to have created default thread to described and handle.
CN201710905196.2A 2017-09-28 2017-09-28 Screen freezing monitoring and solving method, mobile terminal and computer readable storage medium Active CN107590057B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710905196.2A CN107590057B (en) 2017-09-28 2017-09-28 Screen freezing monitoring and solving method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710905196.2A CN107590057B (en) 2017-09-28 2017-09-28 Screen freezing monitoring and solving method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107590057A true CN107590057A (en) 2018-01-16
CN107590057B CN107590057B (en) 2021-06-15

Family

ID=61048019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710905196.2A Active CN107590057B (en) 2017-09-28 2017-09-28 Screen freezing monitoring and solving method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107590057B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109002381A (en) * 2018-06-29 2018-12-14 Oppo(重庆)智能科技有限公司 Process communication monitoring method, electronic device and computer readable storage medium
CN109271298A (en) * 2018-11-19 2019-01-25 武汉达梦数据库有限公司 A kind of detection method of the database without response failure
CN112486713A (en) * 2019-09-11 2021-03-12 华为技术有限公司 Screen freezing processing method and electronic equipment
CN113378177A (en) * 2021-06-17 2021-09-10 武汉珈港科技有限公司 Safe and open Native multi-application system architecture and Native application program execution method
CN113568801A (en) * 2020-04-29 2021-10-29 华为技术有限公司 Frozen screen detection method and device, terminal equipment and computer storage medium
US11467894B2 (en) 2018-10-16 2022-10-11 Huawei Technologies Co., Ltd. Screen freezing processing method and terminal
CN115589503A (en) * 2022-10-28 2023-01-10 惠州市德赛西威汽车电子股份有限公司 Vehicle-mounted host startup animation implementation method, system, host and storage medium
CN115617497A (en) * 2022-12-14 2023-01-17 阿里巴巴达摩院(杭州)科技有限公司 Thread processing method, scheduling component, monitoring component, server and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794244A (en) * 2010-03-18 2010-08-04 上海乐毅信息科技有限公司 Multi-thread watch dog monitoring method
CN102117240A (en) * 2009-12-31 2011-07-06 腾讯科技(深圳)有限公司 Method and device for acquiring progress blocking information
CN103425225A (en) * 2012-05-16 2013-12-04 腾讯科技(深圳)有限公司 Device and running method for applications in operating system of portable data equipment
US20140173319A1 (en) * 2011-08-31 2014-06-19 Zte Corporation Method and Device for Monitoring Power Consumption of Application in Android Terminal
US20140373025A1 (en) * 2013-06-14 2014-12-18 Electronics And Telecommunications Research Institute Method for allocating process in multi-core environment and apparatus therefor
CN105528250A (en) * 2015-12-31 2016-04-27 沈阳航空航天大学 Multi-core and multithreaded computer system certainty evaluation and control method
CN105657550A (en) * 2016-02-04 2016-06-08 四川长虹电器股份有限公司 Audio and video security permission management system in Android television system
US9552221B1 (en) * 2013-12-23 2017-01-24 Google Inc. Monitoring application execution using probe and profiling modules to collect timing and dependency information
CN106484555A (en) * 2016-09-29 2017-03-08 广东欧珀移动通信有限公司 Abnormality detection and the method recovered and mobile terminal
CN106528159A (en) * 2016-11-22 2017-03-22 深圳铂睿智恒科技有限公司 Method and system for mobile terminal to realize dynamic effect of application
CN106681822A (en) * 2017-01-19 2017-05-17 努比亚技术有限公司 Signal-based progress freezing and unfreezing device and signal-based progress freezing and unfreezing method
CN106878093A (en) * 2017-03-31 2017-06-20 努比亚技术有限公司 One kind is without response log analytic method and terminal
CN107179950A (en) * 2017-06-29 2017-09-19 努比亚技术有限公司 A kind of application process processing method, mobile terminal and computer-readable recording medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117240A (en) * 2009-12-31 2011-07-06 腾讯科技(深圳)有限公司 Method and device for acquiring progress blocking information
CN101794244A (en) * 2010-03-18 2010-08-04 上海乐毅信息科技有限公司 Multi-thread watch dog monitoring method
US20140173319A1 (en) * 2011-08-31 2014-06-19 Zte Corporation Method and Device for Monitoring Power Consumption of Application in Android Terminal
CN103425225A (en) * 2012-05-16 2013-12-04 腾讯科技(深圳)有限公司 Device and running method for applications in operating system of portable data equipment
US20140373025A1 (en) * 2013-06-14 2014-12-18 Electronics And Telecommunications Research Institute Method for allocating process in multi-core environment and apparatus therefor
US9552221B1 (en) * 2013-12-23 2017-01-24 Google Inc. Monitoring application execution using probe and profiling modules to collect timing and dependency information
CN105528250A (en) * 2015-12-31 2016-04-27 沈阳航空航天大学 Multi-core and multithreaded computer system certainty evaluation and control method
CN105657550A (en) * 2016-02-04 2016-06-08 四川长虹电器股份有限公司 Audio and video security permission management system in Android television system
CN106484555A (en) * 2016-09-29 2017-03-08 广东欧珀移动通信有限公司 Abnormality detection and the method recovered and mobile terminal
CN106528159A (en) * 2016-11-22 2017-03-22 深圳铂睿智恒科技有限公司 Method and system for mobile terminal to realize dynamic effect of application
CN106681822A (en) * 2017-01-19 2017-05-17 努比亚技术有限公司 Signal-based progress freezing and unfreezing device and signal-based progress freezing and unfreezing method
CN106878093A (en) * 2017-03-31 2017-06-20 努比亚技术有限公司 One kind is without response log analytic method and terminal
CN107179950A (en) * 2017-06-29 2017-09-19 努比亚技术有限公司 A kind of application process processing method, mobile terminal and computer-readable recording medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
GITYUAN: "进程的Binder线程池工作过程", 《HTTP://GITYUAN.COM/2016/10/29/BINDER-THREAD-POOL》 *
HEQING HUANG 等: "From System Service Freezing to System Server Shutdown in Android:All You Need Is a Loop in an App", 《HTTPS://DOI.ORG/10.1145/2810103.2813606》 *
周俊扬 等: "基于dbus的QT进程间通信机制的实现与优化", 《广东通信技术》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109002381A (en) * 2018-06-29 2018-12-14 Oppo(重庆)智能科技有限公司 Process communication monitoring method, electronic device and computer readable storage medium
CN109002381B (en) * 2018-06-29 2022-01-18 Oppo(重庆)智能科技有限公司 Process communication monitoring method, electronic device and computer readable storage medium
US11467894B2 (en) 2018-10-16 2022-10-11 Huawei Technologies Co., Ltd. Screen freezing processing method and terminal
CN109271298A (en) * 2018-11-19 2019-01-25 武汉达梦数据库有限公司 A kind of detection method of the database without response failure
CN112486713A (en) * 2019-09-11 2021-03-12 华为技术有限公司 Screen freezing processing method and electronic equipment
CN113568801A (en) * 2020-04-29 2021-10-29 华为技术有限公司 Frozen screen detection method and device, terminal equipment and computer storage medium
CN113568801B (en) * 2020-04-29 2023-11-03 华为技术有限公司 Frozen screen detection method and device, terminal equipment and computer storage medium
CN113378177A (en) * 2021-06-17 2021-09-10 武汉珈港科技有限公司 Safe and open Native multi-application system architecture and Native application program execution method
CN115589503A (en) * 2022-10-28 2023-01-10 惠州市德赛西威汽车电子股份有限公司 Vehicle-mounted host startup animation implementation method, system, host and storage medium
CN115617497A (en) * 2022-12-14 2023-01-17 阿里巴巴达摩院(杭州)科技有限公司 Thread processing method, scheduling component, monitoring component, server and storage medium

Also Published As

Publication number Publication date
CN107590057B (en) 2021-06-15

Similar Documents

Publication Publication Date Title
CN107590057A (en) Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium
CN107861817A (en) Memory Optimize Method, mobile terminal and readable storage medium storing program for executing based on thread block
CN107704363A (en) Freeze screen monitoring method, mobile terminal and computer-readable recording medium
CN107276789A (en) Daily record method for uploading, device and computer-readable recording medium
CN107678876A (en) Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium
CN107704133A (en) Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium
CN107807861A (en) Freeze screen solution method, mobile terminal and computer-readable recording medium
CN107395858A (en) A kind of reminding method of notification message, terminal and computer-readable recording medium
CN109697088A (en) Application interface loading method, mobile terminal and computer readable storage medium
CN108052390A (en) Memory method for cleaning, mobile terminal and readable storage medium storing program for executing based on thread block
CN107132974A (en) Terminal freezes screen processing method, terminal and computer-readable recording medium
CN107967177A (en) Memory Optimize Method, mobile terminal and readable storage medium storing program for executing based on kernel process
CN110162418A (en) Using cold start-up method, mobile terminal and computer readable storage medium
CN107704132A (en) Terminal freezes detection method, terminal and the computer-readable recording medium of screen
CN107861826A (en) Freeze screen monitoring 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
CN107908492A (en) Blank screen detection method, mobile terminal and computer-readable recording medium
CN107766222A (en) Blank screen detection method, mobile terminal and computer-readable recording medium
CN107704332A (en) Freeze screen solution method, mobile terminal and computer-readable recording medium
CN108052391A (en) Memory Optimize Method, mobile terminal and readable storage medium storing program for executing based on thread deadlock
CN107908478A (en) Memory method for cleaning, mobile terminal and computer-readable recording medium
CN107908491A (en) Card screen detection is with solving method, mobile terminal and computer-readable recording medium
CN107818036A (en) Blank screen detection method, mobile terminal and computer-readable recording medium
CN107872367A (en) Blank screen detection method, mobile terminal and computer-readable recording medium
CN107832191A (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
GR01 Patent grant
GR01 Patent grant