CN107562539A - Applied program processing method and device, computer equipment, storage medium - Google Patents

Applied program processing method and device, computer equipment, storage medium Download PDF

Info

Publication number
CN107562539A
CN107562539A CN201710744127.8A CN201710744127A CN107562539A CN 107562539 A CN107562539 A CN 107562539A CN 201710744127 A CN201710744127 A CN 201710744127A CN 107562539 A CN107562539 A CN 107562539A
Authority
CN
China
Prior art keywords
application
loss rate
program
resource
signal
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
CN201710744127.8A
Other languages
Chinese (zh)
Other versions
CN107562539B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710744127.8A priority Critical patent/CN107562539B/en
Publication of CN107562539A publication Critical patent/CN107562539A/en
Application granted granted Critical
Publication of CN107562539B publication Critical patent/CN107562539B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Telephone Function (AREA)

Abstract

The application is related to a kind of applied program processing method and device, computer equipment, storage medium.Methods described includes:Obtain the Loss Rate of the signal that foreground application is exported in output device in preset time;If the Loss Rate exceedes Loss Rate threshold value, the front stage operation duration and resource operational factor of background application are obtained;The operation weight of background application is calculated according to the front stage operation duration and resource operational factor, and the background application is handled according to the operation weight.Above-mentioned applied program processing method and device, computer equipment, storage medium, can improve the operational efficiency of application program, while reduce the operation burden of resource.

Description

Applied program processing method and device, computer equipment, storage medium
Technical field
The application is related to field of computer technology, more particularly to applied program processing method and device, computer equipment, Storage medium.
Background technology
Electronic equipment moves towards intelligent from non intelligent, and the live and work to people all brings revolutionary change.Phase For the electronic equipment of non intelligentization, intelligent terminal is capable of the behavior of preferably learning and memory people, faster more intelligent It is located in reason application affairs, the food and clothing of people is lived row becomes more convenient.Intelligent terminal handle each application affairs when Wait, it is necessary to go to run and manage application affairs by unified CPU (Central Processing Unit, central processing unit), In order to which resource is utilised more efficiently.
And in the running of reality, often due to the frequent operation of user or the malicious operation of rogue program, lead The resource of electronic equipment is caused by ineffective occupation in large quantities so that the burden of resource, influence the use of user.And pass through hardware Upgrading and improvement, the burden of resource can be reduced to a certain extent, but so often expend cost in large quantities, and improve It is ineffective.
The content of the invention
The embodiment of the present application provides a kind of applied program processing method and device, computer equipment, storage medium, can subtract The operation burden of few resource.
A kind of applied program processing method, methods described include:
Obtain the Loss Rate of the signal that foreground application is exported in output device in preset time;
If the Loss Rate exceedes Loss Rate threshold value, front stage operation duration and the resource operation of background application are obtained Parameter;
The operation weight of background application is calculated according to the front stage operation duration and resource operational factor, and according to institute Operation weight is stated to handle the background application.
A kind of application processing apparatus, described device include:
Signal acquisition module, for obtaining losing for foreground application is exported in output device in preset time signal Mistake rate;
Parameter acquisition module, if exceeding Loss Rate threshold value for the Loss Rate, obtain the foreground of background application Operation duration and resource operational factor;
Application processing module, for calculating background application according to the front stage operation duration and resource operational factor Weight is run, and the background application is handled according to the operation weight.
A kind of computer equipment, including memory and processor, computer-readable instruction are stored in the memory, institute When stating instruction by the computing device so that the computing device following steps:
Obtain the Loss Rate of the signal that foreground application is exported in output device in preset time;
If the Loss Rate exceedes Loss Rate threshold value, front stage operation duration and the resource operation of background application are obtained Parameter;
The operation weight of background application is calculated according to the front stage operation duration and resource operational factor, and according to institute Operation weight is stated to handle the background application.
One or more includes the non-volatile memory medium of computer executable instructions, refers to when the computer is executable When order is executed by one or more processors so that the computing device following steps:
Obtain the Loss Rate of the signal that foreground application is exported in output device in preset time;
If the Loss Rate exceedes Loss Rate threshold value, front stage operation duration and the resource operation of background application are obtained Parameter;
The operation weight of background application is calculated according to the front stage operation duration and resource operational factor, and according to institute Operation weight is stated to handle the background application.
The applied program processing method and device, computer equipment, storage medium that the embodiment of the present application provides, are obtained first The Loss Rate of the signal of foreground application output, the operation of foreground application is illustrated if Loss Rate is more than Loss Rate threshold value There is interim card, then obtain the front stage operation duration and resource operational factor of background application again, and during according to front stage operation Long and resource operational factor obtains pending application program.Pending application program is handled, should to reduce backstage Occupancy with program to resource, the resource that ensureing foreground application has abundance go to run, and improve the operation effect of application program Rate, while reduce the operation burden of resource.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of application, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the applied environment figure of applied program processing method in one embodiment;
Fig. 2 is the internal structure schematic diagram of electronic equipment in one embodiment;
Fig. 3 is the flow chart of applied program processing method in one embodiment;
Fig. 4 is the flow chart of applied program processing method in another embodiment;
Fig. 5 is the structural representation of application processing apparatus in one embodiment;
Fig. 6 is the block diagram of the part-structure of the mobile phone related to the computer equipment of the embodiment of the present application offer.
Embodiment
In order that the object, technical solution and advantage of the application are more clearly understood, it is right below in conjunction with drawings and Examples The application is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the application, and It is not used in restriction the application.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used for distinguishing first element and another element.Citing comes Say, in the case where not departing from scope of the present application, the first client can be referred to as the second client, and similarly, can incite somebody to action Second client is referred to as the first client.First client and the second client both clients, but it is not same visitor Family end.
Fig. 1 is the applied environment figure of applied program processing method in one embodiment.As shown in figure 1, the applied environment figure Including user terminal 102 and server 104.User terminal 102 can be used for obtain preset time in foreground application defeated Go out the Loss Rate for the signal that device is exported;If the Loss Rate exceedes Loss Rate threshold value, before obtaining background application Platform operation duration and resource operational factor;Background application is calculated according to the front stage operation duration and resource operational factor Weight is run, and the background application is handled according to the operation weight.Server 104 can answer according to foreground With program Loss Rate threshold value is pushed to user terminal 102.Wherein, user terminal 102 is to be in computer network outermost, mainly For inputting user profile and exporting the electronic equipment of result, such as can be PC, mobile terminal, individual number Word assistant, wearable electronic etc..Server 104 is to be used to respond service request, while the equipment for providing the service of calculating, example Such as can be one or multiple stage computers.It is understood that in other embodiments, the application of applied program processing method Environment can only include user terminal 102, i.e., user terminal 102 can be with memory loss rate threshold value, and according to foreground application Obtain the Loss Rate threshold value.
Fig. 2 is the internal structure schematic diagram of electronic equipment in one embodiment.As shown in Fig. 2 the terminal is including passing through Processor, non-volatile memory medium, built-in storage, display screen and the input unit of bus of uniting connection.Wherein, terminal is non-easy The property lost storage medium is stored with operating system and computer-readable instruction.With reality when the computer-readable instruction is executed by processor A kind of existing applied program processing method.The processor is used to provide calculating and control ability, supports the operation of whole terminal.Electronics Built-in storage in equipment provides environment for the operation of the computer-readable instruction in non-volatile memory medium.Electronic equipment Display screen can be LCDs or electric ink display screen etc., and input unit can be the touch covered on display screen Layer or terminal enclosure on set button, trace ball or Trackpad or external keyboard, Trackpad or mouse Mark etc..The electronic equipment can be computer, mobile phone, tablet personal computer or personal digital assistant or Wearable etc..Ability Field technique personnel are appreciated that the structure shown in Fig. 2, only the block diagram of the part-structure related to application scheme, and Do not form the restriction for the terminal being applied thereon to application scheme, specific terminal can include it is more more than shown in figure or Less part, either combine some parts or arranged with different parts.
Fig. 3 is the flow chart of applied program processing method in one embodiment.As shown in figure 3, the application program processing side Method includes step 302 and refers to step 306.Wherein:
Step 302, the Loss Rate of the signal that foreground application is exported in output device in preset time is obtained.
In the embodiment that the application provides, application program refers to what is write in electronic equipment for certain application purpose Software, electronic equipment realize the Demand and service to user by application program.Foreground application refers on electronic equipment foreground The application program of operation, the file of foreground application can be shown on foreground, and realized and interacted with user.Foreground application Program operationally, output signal, user can pass through input unit and output device on the output device of electronic equipment Realize and interact with electronic equipment.For example, electronic equipment when carrying out video playback or entering interface, can fill in output Put middle display image;, can be in output device exports audio signal when being conversed by electronic equipment.
In the present embodiment, the signal of output refers to the signal that the user of electronic equipment output can perceive, such as defeated It can be the signals such as image, audio to go out signal.Output device just refers to be used to export the appreciable letter of user in electronic equipment Number device, such as the display screen of display image, the loudspeaker and the device such as receiver that play music.In general, before either Platform application program or background application can pass through output device output signal.Under normal circumstances, electronic equipment passes through The signal of output device output has certain quantity, but during signal transmits and exports, due to network or money The problems such as source takes can cause the loss of signal so that the signal of output is imperfect.For example, there is interim card playing game, cause Missing image is discontinuous.
Preset time is the time pre-set, and under normal operating conditions, foreground application exists in preset time Output device can export the signal of predetermined number.Then step 302 can specifically include:Foreground application is obtained in preset time The total quantity of interior signal to be output, and the number of the signal of the foreground application that output device exports in preset time Amount, then can be obtained by the Loss Rate of signal according to the quantity and total quantity.For example, in voice call process, sender A packet can be sent, packet is transmitted by network, and recipient can receive a packet and by the packet Exported, be then compared the size of the packet of output and the packet sent, it is possible to obtain the loss of data Rate.
Step 304, if Loss Rate exceedes Loss Rate threshold value, the front stage operation duration and resource of background application are obtained Operational factor.
In one embodiment, Loss Rate threshold value refers to the value of the Loss Rate pre-set, for judging foreground application The Run-time scenario of program.If Loss Rate exceedes Loss Rate threshold value, illustrate that the signal of foreground application is lost in output procedure Lose more, judge that the current Run-time scenario of foreground application is interim card;On the contrary, then illustrate the signal of foreground application defeated Lose less during going out, judge that the current Run-time scenario of foreground application is smoothness.
When the current Run-time scenario of foreground application is interim card, front stage operation duration corresponding to background application is obtained With resource operational factor.Background application refers to the application program in electronic equipment running background, and background application is general It can not be shown on foreground and realize interaction with user.Since front stage operation duration refer to background application starting altogether In the duration of front stage operation.Usually, it is believed that front stage operation duration is longer corresponding to background application, the background application Program priority is higher, and the possibility being most likely initiated by a user again is bigger;Conversely, then it is assumed that the priority of background application is got over Low, the possibility being most likely initiated by a user again is lower.
Resource operational factor refers to application program caused phase during the resource for taking electronic equipment is run Related parameter, such as resource operational factor can refer to the parameters such as the CPU usage of application program, memory usage, number of processes. It is understood that CPU usage refer to represent take cpu resource number parameter, memory usage refer to represent take The how many parameter of the internal memory of electronic equipment, number of processes refer to that application program operation is the number of processes taken.
Step 306, the operation weight of background application, and root are calculated according to front stage operation duration and resource operational factor Background application is handled according to operation weight.
In one embodiment, front stage operation duration can reflect time length of the background application in front stage operation, Resource operational factor can reflect application program takes the number of electronic equipment resource in the process of running, during according to front stage operation Long and resource operational factor calculates the operation weight of background application.Operation weight can reflect the important of background application Property, it is considered that operation weight is bigger, and background application is more important.
Pending application program is handled, refers to the place for pending application program can reduce resource occupation Reason.For example, being closed or being hung up pending application program, or close Partial Process corresponding to pending application program Deng.In the present embodiment, the operation weight of background application is calculated first, enters background application further according to operation weight Row processing.
It is understood that background application, which is handled, according to operation weight can specifically include:According to operation Processing mode corresponding to weight is handled pending application program., should according to processing mode corresponding to operation Weight Acquisition Processing mode can be obtained in the local of electronic equipment or pushed by server.Pass through server The process pushed specifically includes:Processing mode is sent to server and obtains request, and the reception server is according to processing mode The processing mode that request returns is obtained, wherein, processing mode is obtained in request and weighed comprising operation weight, server according to the operation Recapture and take corresponding processing mode.
Above-mentioned applied program processing method, the Loss Rate of the signal of foreground application output is obtained first, if Loss Rate Then illustrate that interim card occurs in the operation of foreground application more than Loss Rate threshold value, then obtain the foreground fortune of background application again Row duration and resource operational factor, and pending application program is obtained according to front stage operation duration and resource operational factor.Will Pending application program is handled, and to reduce occupancy of the background application to resource, is ensured that foreground application has and is filled The resource of foot goes to run, and improves the operational efficiency of application program, while reduces the operation burden of resource.
Fig. 4 is the flow chart of applied program processing method in another embodiment.As shown in figure 4, the application program is handled Method includes step 402 and refers to step 408.Wherein:
Step 402, if detecting the default operating instruction of user terminal input, foreground application in preset time is obtained In the Loss Rate for the signal that output device is exported.
The instruction for the user terminal input that default operating instruction refers to pre-set, when detecting the default operating instruction When, start to obtain the Loss Rate of the signal that foreground application is exported in output device in preset time, and according to Loss Rate Judge the Run-time scenario of foreground application.For example, the instruction for starting game of user terminal input, or user terminal input The instruction for commencing play out video etc..
During net cast, in order to embody the continuity of broadcasting, an image sequence is often played in output device Arrange, the image in image sequence forms a continuous animation.The image sequence is played out by certain time interval, just A continuous cartoon interface can be formed, each image wherein in image sequence is properly termed as a two field picture.Foreground application When program shows continuous image sequence in output device, all it is timing and goes to play by the order of image sequence each Two field picture.Therefore, under normal circumstances, the image of fixed qty can be played in certain time, if played within certain time The quantity of image is less than predetermined quantity, then illustrates to be now trick play.
In the embodiment that the application provides, step 402 can specifically include:Obtain foreground application in preset time The loss frame number of image in output display.Generally for the higher application program of requirement of real-time, in output device Display image can have real-time requirement, if due to the reasons such as system or network can not load image, will abandon can not The image of loading keeps the real-time of broadcasting pictures, prevents the delay of animation so as to play follow-up image in real time.Lose frame number Just refer in actual moving process, the frame number of the image of discarding of the foreground application in output display.
Step 404, if Loss Rate exceedes the Loss Rate threshold value corresponding to foreground application, background application is obtained Front stage operation duration and resource operational factor.
In one embodiment, Loss Rate threshold value can be indicated by percentage, and Loss Rate threshold value can be It is one-to-one with foreground application, the Loss Rate threshold value according to corresponding to obtaining foreground application.For example, game class is answered The Loss Rate threshold value corresponding to program is 10%, and Loss Rate threshold value corresponding to video class application program is 20%.If Loss Rate surpasses Cross Loss Rate threshold value corresponding to foreground application, then it is assumed that foreground application is currently at the Run-time scenario of interim card.Can be with Understand, Loss Rate threshold value can be stored in electronic equipment local, electronic equipment can also be pushed by server.
In one embodiment, resource operational factor can be CPU usage, specifically, CPU usage can refer to by The ratio of the cpu resource of occupancy and whole cpu resources or refer to time and net cycle time that CPU performs task Ratio.Usually, CPU usage can be, but not limited to be embodied with the form of percentage, be come with specific percentages Represent specific occupied cpu resource is how many or the occupied time length of cpu resource.For example, CPU usage is 50%, then Indicate that 50% cpu resource is occupied, can also represent in total working time, the time cpu resource for having 50% be by Take.CPU refers to the structure that computing and control function are provided in electronic equipment, can be one piece of large-scale integrated circuit, The data being mainly used in interpretive machine instruction and processing computer software.Electronic equipment operation computer software, it is necessary to Application affairs are handled by CPU, cpu resource is just employed shared by event.
In one embodiment, monitoring journal file can be regularly obtained in default storage address, and according to the monitoring Journal file obtains CPU usage.Wherein, default storage address refers to the address of the storage monitoring journal file pre-set, CPU is have recorded in monitoring journal file from the change opened to the carrying out practically situation at current time.In default storage address, Can be according to monitoring journal file identifier lookup monitoring journal file.Monitoring journal file mark just refers to distinguish monitoring daily record text The unique mark of part, such as the title of monitoring journal file and numbering etc..
Specifically, several sub-folders can be included in the default storage address, store in these sub-folders each Individual process log file.Process log file have recorded process from the change opened to the carrying out practically situation at current time, root The situation of cpu resource shared by the process is obtained according to these process log file cans, you can the CPU for obtaining process takes Rate.Wherein, process refers to that CPU carries out the base unit of the scheduling of resource allocation, and CPU performs the base unit of task.Often Individual application program has included one or more process, therefore can be according to the CPU usage and process of process and application program Corresponding relation, obtain CPU usage corresponding to each background application.
It is understood that total CPU usage can be obtained according to monitoring journal file, can according to process log file To obtain the CPU usage of each process, and total CPU usage occupancy corresponding to each process is formed.By Task of application program is performed in CPU is realized by one or more process, therefore obtains each background application CPU usage can include:The CPU usage of process corresponding to background application is obtained, and is taken according to the CPU of process Rate obtains the CPU usage of each background application.
For example, in android system, the monitoring daily record of the storage total occupied informations of CPU can be read in/proc catalogues File.Wherein, multiple sub-folders are contained under/proc catalogues, CPU corresponding to each process is stored in these sub-folders The process log file of occupied information.The file of the monitoring journal file stored in/proc catalogues is entitled " stat " ,/proc mesh Process log file is stored in sub-folder in record, the file of process log file is entitled " stat ".Under/proc catalogues Stat file have recorded CPU total occupied information, and the stat file in sub-folder under/proc catalogues have recorded each process CPU occupied informations.For example the stat file under/proc/pid catalogues have recorded the CPU occupied informations of pid processes, wherein Pid is process identification (PID).
In the embodiment that the application provides, the accumulated operating time that CPU is have recorded in journal file is monitored, accumulates work Time is CPU from opening into the time at current time, really performs the time of task.Monitoring journal file is obtained every time When, it can read the corresponding accumulated operating time, when the difference of the accumulated operating time of twi-read is that CPU really works Between.Specifically, it is spaced preset duration reading and once monitors journal file;Calculate corresponding to the monitoring journal file currently got Accumulated operating time, the time difference of the monitoring journal file corresponding accumulated operating time got with the last time;This when Between the ratio of difference and the preset duration be CPU usage.
Step 406, the operation weight of background application is calculated according to front stage operation duration and resource operational factor.
In one embodiment, the operation for background application being calculated according to front stage operation duration and resource operational factor is weighed Weight can specifically include:The duration grade according to corresponding to obtaining front stage operation duration, and obtained and corresponded to according to resource operational factor Operation class;The operation weight of background application is calculated according to the duration grade and Operation class.
As an example it is assumed that duration grade corresponding to front stage operation duration is total up to 5 grades, transported corresponding to resource operational factor Row grade is total up to 5 grades.During front stage operation at a length of 1.5 hours, corresponding duration grade is 2 grades, CPU usage 45% When, corresponding Operation class is 3 grades, then the operation weight according to duration grade and Operation class calculating is (2+3)/10= 0.5。
Step 408, if operation weight hangs up pending application program in the first proportion range;If lose frame number In the second proportion range, then by pending application program killing.
In one of the embodiments, hang up and refer to process corresponding to application program being temporarily transferred from internal memory, to reduce money The occupancy in source, the process being transferred from can also be recalled to internal memory again.Killing refers to carry out the application program being currently running Close, it is no longer taken the system of electronic equipment or Internet resources.
First proportion range is the span of the operation weight pre-set, for screen need hang up it is pending should Use program;The span for the operation weight of the first proportion range that second proportion range is that what is pre-set be different from, for sieving Choosing needs the pending application program of killing.It is understood that the first Loss Rate scope and the second Loss Rate scope are difference Span.For example, when operation weight is 0~0.5, pending application program is hung up;, will when operation weight is 0.5~1 Pending application program killing.
Pending application program killing can specifically be included:Journey is applied from pending according to the output signal of output device Obtained in sequence and treat killing application program, will treat that killing application program carries out killing processing.Treat killing application program refer to need into The application program of row killing, then obtained according to the output signal of output device from pending application program and treat killing application journey Sequence.Specifically, the pending application program of the output signal in output device is obtained, as the application program for retaining operation, is removed Pending application program outside the application program of reservation operation, which is used as, treats killing application program, and will treat that killing application program is entered Row killing.For example, the music application program on backstage plays music, then can make the music application program To retain the background application of operation, do not process.
Above-mentioned applied program processing method, the Loss Rate of the signal of foreground application output is obtained first, if Loss Rate Then illustrate that interim card occurs in the operation of foreground application more than Loss Rate threshold value, then obtain the foreground fortune of background application again Row duration and resource operational factor, and pending application program is obtained according to front stage operation duration and resource operational factor.Root Pending application program is hung up or killing according to the operation weight selection of acquisition, to reduce background application to resource Occupancy, ensure foreground application have abundance resource go to run, improve the operational efficiency of application program, reduce simultaneously The operation burden of resource.
Fig. 5 is the structural representation of application processing apparatus in one embodiment.As shown in figure 5, at the application program Reason device 500 includes signal acquisition module 502, parameter acquisition module 504 and application processing module 506.Wherein:
Signal acquisition module 502, for obtaining the signal that foreground application is exported in output device in preset time Loss Rate.
Parameter acquisition module 504, if exceeding Loss Rate threshold value for the Loss Rate, before obtaining background application Platform operation duration and resource operational factor.
Application processing module 506, for calculating background application journey according to the front stage operation duration and resource operational factor The operation weight of sequence, and the background application is handled according to the operation weight.
Above-mentioned application processing apparatus, the Loss Rate of the signal of foreground application output is obtained first, if Loss Rate Then illustrate that interim card occurs in the operation of foreground application more than Loss Rate threshold value, then obtain the foreground fortune of background application again Row duration and resource operational factor, and pending application program is obtained according to front stage operation duration and resource operational factor.Will Pending application program is handled, and to reduce occupancy of the background application to resource, is ensured that foreground application has and is filled The resource of foot goes to run, and improves the operational efficiency of application program, while reduces the operation burden of resource.
In one embodiment, if signal acquisition module 502 is additionally operable to detect the default operating instruction of user terminal input, Then obtain the Loss Rate of the signal that foreground application is exported in output device in preset time.
In the other embodiment that the application provides, if parameter acquisition module 504 is additionally operable to the Loss Rate more than described Loss Rate threshold value corresponding to foreground application, then obtain the front stage operation duration and resource operation ginseng of background application Number.
In one of the embodiments, if application processing module 506 is additionally operable to the operation weight in the first proportion range It is interior, then the pending application program is hung up;If it is described loss frame number in the second proportion range, will it is described it is pending answer With program killing.
In another embodiment, application processing module 506 is additionally operable to the output signal according to output device from described treat Obtained in reason application program and treat killing application program, treat that killing application program carries out killing processing by described.
The division of modules is only used for for example, in other embodiments in above-mentioned application processing apparatus, can Application processing apparatus is divided into different modules as required, with complete the whole of above-mentioned application processing apparatus or Partial function.
The embodiment of the present application additionally provides a kind of storage medium.One or more is non-easy comprising computer executable instructions The property lost storage medium, when the computer executable instructions are executed by one or more processors so that the processor is held Row following steps:
Obtain the Loss Rate of the signal that foreground application is exported in output device in preset time;
If the Loss Rate exceedes Loss Rate threshold value, front stage operation duration and the resource operation of background application are obtained Parameter;
The operation weight of background application is calculated according to the front stage operation duration and resource operational factor, and according to institute Operation weight is stated to handle the background application.
In one embodiment, foreground application is in output device in the acquisition preset time being executed by processor The Loss Rate of the signal exported includes:
If detecting the default operating instruction of user terminal input, obtain foreground application in preset time and filled in output Put the Loss Rate of exported signal.
In one of the embodiments, if the Loss Rate being executed by processor exceedes Loss Rate threshold value, obtain The front stage operation duration and resource operational factor for taking background application include:
If the Loss Rate exceedes the Loss Rate threshold value corresponding to the foreground application, background application is obtained Front stage operation duration and resource operational factor.
In yet another embodiment, be executed by processor it is described according to it is described operation weight to the background application Carrying out processing includes:
If the operation weight hangs up the pending application program in the first proportion range;
If the loss frame number is in the second proportion range, by the pending application program killing.
In the embodiment that the application provides, what is be executed by processor is described by the pending application program progress killing Processing includes:
Obtained according to the output signal of output device from the pending application program and treat killing application program, by described in Treat that killing application program carries out killing processing.
The embodiment of the present application additionally provides a kind of computer equipment.As shown in fig. 6, for convenience of description, illustrate only with The related part of the embodiment of the present application, particular technique details do not disclose, refer to the embodiment of the present application method part.The calculating Machine equipment can be include mobile phone, tablet personal computer, PDA (Personal Digital Assistant, personal digital assistant), Any terminal devices such as POS (Point of Sales, point-of-sale terminal), vehicle-mounted computer, Wearable, using computer equipment as Exemplified by mobile phone:
Fig. 6 is the block diagram of the part-structure of the mobile phone related to the computer equipment of the embodiment of the present application offer.Reference chart 6, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 610, memory 620, input block 630, display unit 640, Sensor 650, voicefrequency circuit 660, Wireless Fidelity (wireless fidelity, WiFi) module 670, processor 680 and The grade part of power supply 690.It will be understood by those skilled in the art that the handset structure shown in Fig. 6 does not form the restriction to mobile phone, can With including than illustrating more or less parts, either combining some parts or different parts arrangement.
Wherein, RF circuits 610 can be used for receive and send messages or communication process in, the reception and transmission of signal can be by base stations After downlink information receives, handled to processor 680;Up data can also be sent to base station.Generally, RF circuits include but Be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 610 can also be communicated by radio communication with network and other equipment.Above-mentioned channel radio Letter can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE)), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memory 620 can be used for storage software program and module, and processor 680 is stored in memory 620 by operation Software program and module, so as to perform the various function application of mobile phone and data processing.Memory 620 can mainly include Program storage area and data storage area, wherein, program storage area can storage program area, the application journey needed at least one function Sequence (such as the application program of sound-playing function, application program of image player function etc.) etc.;Data storage area can store root Created data (such as voice data, address list etc.) etc. are used according to mobile phone.In addition, memory 620 can be included at a high speed Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or Other volatile solid-state parts.
Input block 630 can be used for the numeral or character information for receiving input, and produces and set with the user of mobile phone 600 And the key signals input that function control is relevant.Specifically, input block 630 may include contact panel 631 and other inputs Equipment 632.Contact panel 631, alternatively referred to as touch-screen, collect touch operation (such as user of the user on or near it Use the operation of any suitable object such as finger, stylus or annex on contact panel 631 or near contact panel 631), And corresponding attachment means are driven according to formula set in advance.In one embodiment, contact panel 631 may include to touch inspection Survey two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation The signal brought, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and will It is converted into contact coordinate, then gives processor 680, and the order sent of reception processing device 680 and can be performed.In addition, The polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be used to realize contact panel 631.Except touch surface Plate 631, input block 630 can also include other input equipments 632.Specifically, other input equipments 632 can be included but not The one or more being limited in physical keyboard, function key (such as volume control button, switch key etc.) etc..
Display unit 640 can be used for display by user input information or be supplied to user information and mobile phone it is various Menu.Display unit 640 may include display panel 641.In one embodiment, liquid crystal display (Liquid can be used Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 641.In one embodiment, contact panel 631 can cover display panel 641, when contact panel 631 is examined After measuring the touch operation on or near it, processor 680 is sent to determine the type of touch event, is followed by subsequent processing device 680 provide corresponding visual output according to the type of touch event on display panel 641.Although in figure 6, contact panel 631 and display panel 641 are the parts independent as two to realize the input of mobile phone and input function, but in some implementations In example, contact panel 631 and display panel 641 can be integrated and realize input and the output function of mobile phone.
Mobile phone 600 may also include at least one sensor 650, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include 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 641, and proximity transducer can close display panel when mobile phone is moved in one's ear 641 and/or backlight.Motion sensor may include acceleration transducer, can detect by acceleration transducer and adds in all directions The size of speed, size and the direction of gravity are can detect that when static, application (such as the horizontal/vertical screen available for identification mobile phone posture Switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, humidity Other sensors such as meter, thermometer, infrared ray sensor etc..
Voicefrequency circuit 660, loudspeaker 661 and microphone 662 can provide the COBBAIF between user and mobile phone.Audio-frequency electric Electric signal after the voice data received conversion can be transferred to loudspeaker 661, sound is converted to by loudspeaker 661 by road 660 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 662, is turned after being received by voicefrequency circuit 660 Voice data is changed to, then after voice data output processor 680 is handled, another mobile phone can be sent to through RF circuits 610, or Person exports voice data to memory 620 so as to subsequent treatment.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 670 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 6 is shown WiFi module 670, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone 600, can omit as needed.
Processor 680 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, is led to Cross operation or perform the software program and/or module being stored in memory 620, and call and be stored in memory 620 Data, the various functions and processing data of mobile phone are performed, so as to carry out integral monitoring to mobile phone.In one embodiment, handle Device 680 may include one or more processing units.In one embodiment, processor 680 can integrate application processor and modulation Demodulation processor, wherein, application processor mainly handles operating system, user interface and application program etc.;Modulation /demodulation is handled Device mainly handles radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 680.
Mobile phone 600 also includes the power supply 690 (such as battery) to all parts power supply, it is preferred that power supply can pass through electricity Management system and processor 680 are logically contiguous, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.
In one embodiment, mobile phone 600 can also include camera, bluetooth module etc..
In the embodiment of the present application, the processor 680 included by the mobile terminal performs the calculating of storage on a memory Following steps are realized during machine program:
Obtain the Loss Rate of the signal that foreground application is exported in output device in preset time;
If the Loss Rate exceedes Loss Rate threshold value, front stage operation duration and the resource operation of background application are obtained Parameter;
The operation weight of background application is calculated according to the front stage operation duration and resource operational factor, and according to institute Operation weight is stated to handle the background application.
In one embodiment, foreground application is in output device in the acquisition preset time being executed by processor The Loss Rate of the signal exported includes:
If detecting the default operating instruction of user terminal input, obtain foreground application in preset time and filled in output Put the Loss Rate of exported signal.
In one of the embodiments, if the Loss Rate being executed by processor exceedes Loss Rate threshold value, obtain The front stage operation duration and resource operational factor for taking background application include:
If the Loss Rate exceedes the Loss Rate threshold value corresponding to the foreground application, background application is obtained Front stage operation duration and resource operational factor.
In yet another embodiment, be executed by processor it is described according to it is described operation weight to the background application Carrying out processing includes:
If the operation weight hangs up the pending application program in the first proportion range;
If the loss frame number is in the second proportion range, by the pending application program killing.
In the embodiment that the application provides, what is be executed by processor is described by the pending application program progress killing Processing includes:
Obtained according to the output signal of output device from the pending application program and treat killing application program, by described in Treat that killing application program carries out killing processing.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a non-volatile computer and can be read In storage medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage is situated between Matter can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc..
Embodiment described above only expresses the several embodiments of the application, and its description is more specific and detailed, but simultaneously Therefore the limitation to the application the scope of the claims can not be interpreted as.It should be pointed out that for one of ordinary skill in the art For, on the premise of the application design is not departed from, various modifications and improvements can be made, these belong to the guarantor of the application Protect scope.Therefore, the protection domain of the application patent should be determined by the appended claims.

Claims (10)

1. a kind of applied program processing method, it is characterised in that methods described includes:
Obtain the Loss Rate of the signal that foreground application is exported in output device in preset time;
If the Loss Rate exceedes Loss Rate threshold value, the front stage operation duration and resource operation ginseng of background application are obtained Number;
The operation weight of background application is calculated according to the front stage operation duration and resource operational factor, and according to the fortune Row weight is handled the background application.
2. applied program processing method according to claim 1, it is characterised in that foreground should in the acquisition preset time The Loss Rate of the signal exported with program in output device includes:
If detecting the default operating instruction of user terminal input, foreground application is in output device institute in acquisition preset time The Loss Rate of the signal of output.
3. applied program processing method according to claim 1, it is characterised in that lost if the Loss Rate exceedes Rate threshold value, then obtaining the front stage operation duration of background application and resource operational factor includes:
If the Loss Rate exceedes the Loss Rate threshold value corresponding to the foreground application, before obtaining background application Platform operation duration and resource operational factor.
4. applied program processing method according to claim 1, it is characterised in that it is described according to it is described operation weight to institute Stating background application and carrying out processing includes:
If the operation weight hangs up the pending application program in the first proportion range;
If the loss frame number is in the second proportion range, by the pending application program killing.
5. applied program processing method according to claim 4, it is characterised in that described by the pending application program Carrying out killing processing includes:
Obtained according to the output signal of output device from the pending application program and treat killing application program, will be described to be checked Kill application program and carry out killing processing.
6. a kind of application processing apparatus, it is characterised in that described device includes:
Signal acquisition module, for obtaining the loss of the signal that foreground application is exported in output device in preset time Rate;
Parameter acquisition module, if exceeding Loss Rate threshold value for the Loss Rate, obtain the front stage operation of background application Duration and resource operational factor;
Application processing module, for calculating the operation of background application according to the front stage operation duration and resource operational factor Weight, and the background application is handled according to the operation weight.
7. application processing apparatus according to claim 6, it is characterised in that if the signal acquisition module is additionally operable to The default operating instruction of user terminal input is detected, then obtains what foreground application in preset time was exported in output device The Loss Rate of signal.
8. application processing apparatus according to claim 6, it is characterised in that if the application processing module is additionally operable to The operation weight then hangs up the pending application program in the first proportion range;If the loss frame number is second In proportion range, then by the pending application program killing.
9. a kind of computer equipment, including memory and processor, computer-readable instruction is stored in the memory, it is described When instruction is by the computing device so that application program of the computing device as any one of claim 1 to 5 Processing method.
10. one or more includes the non-volatile memory medium of computer executable instructions, refer to when the computer is executable When order is executed by one or more processors so that application of the computing device as any one of claim 1 to 5 Program processing method.
CN201710744127.8A 2017-08-25 2017-08-25 Application program processing method and device, computer equipment and storage medium Expired - Fee Related CN107562539B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710744127.8A CN107562539B (en) 2017-08-25 2017-08-25 Application program processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710744127.8A CN107562539B (en) 2017-08-25 2017-08-25 Application program processing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107562539A true CN107562539A (en) 2018-01-09
CN107562539B CN107562539B (en) 2020-08-18

Family

ID=60976989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710744127.8A Expired - Fee Related CN107562539B (en) 2017-08-25 2017-08-25 Application program processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107562539B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108762834A (en) * 2018-05-17 2018-11-06 努比亚技术有限公司 A kind of application acceleration method, terminal and computer readable storage medium
CN109388947A (en) * 2018-10-30 2019-02-26 努比亚技术有限公司 A kind of back-stage management method, equipment and computer readable storage medium
CN109542714A (en) * 2018-09-29 2019-03-29 中国平安人寿保险股份有限公司 Method for monitoring application program and device, computer installation and computer storage medium
CN110032266A (en) * 2018-01-10 2019-07-19 广东欧珀移动通信有限公司 Information processing method, device, computer equipment and computer readable storage medium
CN110045994A (en) * 2018-01-12 2019-07-23 广东欧珀移动通信有限公司 Applied program processing method and device, electronic equipment, computer readable storage medium
CN110045809A (en) * 2018-01-12 2019-07-23 广东欧珀移动通信有限公司 Information processing method, device, computer equipment and computer readable storage medium
CN114780218A (en) * 2022-04-20 2022-07-22 Oppo广东移动通信有限公司 Application control method and device, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306095A (en) * 2011-07-21 2012-01-04 宇龙计算机通信科技(深圳)有限公司 Application management method and terminal
CN106792165A (en) * 2016-12-02 2017-05-31 武汉斗鱼网络科技有限公司 A kind of resource dynamic regulation method and device
CN107045443A (en) * 2017-04-14 2017-08-15 北京安云世纪科技有限公司 background process control method, device and intelligent terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306095A (en) * 2011-07-21 2012-01-04 宇龙计算机通信科技(深圳)有限公司 Application management method and terminal
CN106792165A (en) * 2016-12-02 2017-05-31 武汉斗鱼网络科技有限公司 A kind of resource dynamic regulation method and device
CN107045443A (en) * 2017-04-14 2017-08-15 北京安云世纪科技有限公司 background process control method, device and intelligent terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032266A (en) * 2018-01-10 2019-07-19 广东欧珀移动通信有限公司 Information processing method, device, computer equipment and computer readable storage medium
CN110045994A (en) * 2018-01-12 2019-07-23 广东欧珀移动通信有限公司 Applied program processing method and device, electronic equipment, computer readable storage medium
CN110045809A (en) * 2018-01-12 2019-07-23 广东欧珀移动通信有限公司 Information processing method, device, computer equipment and computer readable storage medium
CN110045994B (en) * 2018-01-12 2022-09-16 Oppo广东移动通信有限公司 Application program processing method and device, electronic equipment and computer readable storage medium
CN108762834A (en) * 2018-05-17 2018-11-06 努比亚技术有限公司 A kind of application acceleration method, terminal and computer readable storage medium
CN109542714A (en) * 2018-09-29 2019-03-29 中国平安人寿保险股份有限公司 Method for monitoring application program and device, computer installation and computer storage medium
CN109388947A (en) * 2018-10-30 2019-02-26 努比亚技术有限公司 A kind of back-stage management method, equipment and computer readable storage medium
CN114780218A (en) * 2022-04-20 2022-07-22 Oppo广东移动通信有限公司 Application control method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN107562539B (en) 2020-08-18

Similar Documents

Publication Publication Date Title
CN107544842B (en) Applied program processing method and device, computer equipment, storage medium
CN107562539A (en) Applied program processing method and device, computer equipment, storage medium
CN106453053B (en) Group message display methods and device
CN104618217B (en) Share method, terminal, server and the system of resource
CN104519404B (en) The player method and device of graphic interchange format file
CN107391259A (en) Method for processing resource and device, computer-readable recording medium, mobile terminal
CN105808060B (en) A kind of method and apparatus of playing animation
CN106548364A (en) Method for sending information and device
CN107273036A (en) Mobile terminal and its split screen control method, computer-readable recording medium
CN104571979B (en) A kind of method and apparatus for realizing split view
CN104519262B (en) Obtain the method, apparatus and terminal of video data
CN108280692A (en) Reward distribution method, device, computer readable storage medium and terminal
CN106294168B (en) A kind of method and system carrying out Application testing
CN106231433B (en) A kind of methods, devices and systems playing network video
CN103501485B (en) Push the method, apparatus and terminal device of application
CN104159140B (en) A kind of methods, devices and systems of Video processing
CN106375774A (en) Live broadcast room display content control method, apparatus and system
CN107391198B (en) Method for scheduling task and device, computer readable storage medium, mobile terminal
CN107526638A (en) Applied program processing method, device, mobile terminal and storage medium
CN107864401A (en) It is a kind of based on live monitoring method, device, system and terminal device
CN107943417A (en) Image processing method, terminal, computer-readable storage medium and computer program
CN106293901A (en) The process management method of a kind of terminal applies and device
CN104699501B (en) A kind of method and device for running application program
CN106101764A (en) A kind of methods, devices and systems showing video data
CN109743724A (en) A kind of management method and mobile terminal of embedded SIM card

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200818

CF01 Termination of patent right due to non-payment of annual fee