CN109992397A - Process handling method and device, electronic equipment, computer readable storage medium - Google Patents
Process handling method and device, electronic equipment, computer readable storage medium Download PDFInfo
- Publication number
- CN109992397A CN109992397A CN201711488926.XA CN201711488926A CN109992397A CN 109992397 A CN109992397 A CN 109992397A CN 201711488926 A CN201711488926 A CN 201711488926A CN 109992397 A CN109992397 A CN 109992397A
- Authority
- CN
- China
- Prior art keywords
- priority
- relied
- background
- electronic equipment
- resource
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5022—Mechanisms to release resources
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/48—Indexing scheme relating to G06F9/48
- G06F2209/484—Precedence
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
This application involves a kind of process handling methods and device, electronic equipment, computer readable storage medium.This method comprises: obtaining the first process for being in electronic equipment front stage operation;Obtain the second process, second process is the background process that is relied on by first process;The priority of second process is adjusted to the priority with first process and is matched.The treatment effeciency of the first process can be improved in above-mentioned process handling method and device, electronic equipment, computer readable storage medium.
Description
Technical field
This application involves data processing fields, more particularly to a kind of process handling method and device, electronic equipment, calculating
Machine readable storage medium storing program for executing.
Background technique
With the development of mobile communication technology, is both provided in Mobile operating system and resource constraint is carried out to the process of application
Method.In traditional operating system, the process (i.e. the first process) of foreground application usually not will do it resource constraint, and
The process (i.e. background process) of the application of running background, which is then passed through, reduces its priority, to be subject to the limit used resource
System is used with providing more resources to the process of foreground application, improves the operating efficiency of foreground application.
However, being usually all to carry out resource constraint to all background process, answering resource all to foreground in conventional method
With inclination.However reality is, when the priority for the process for having part to enter backstage is lower, cause to be limited resource with
Afterwards, certain influence can be also also resulted in the first process, cause the response speed of foreground application slack-off.Therefore, traditional process
In processing method, the response efficiency of foreground application need to be improved.
Summary of the invention
The embodiment of the present application provides a kind of process handling method and device, electronic equipment, computer readable storage medium, can
To improve the response efficiency to the process of front stage operation.
A kind of process handling method, comprising:
Obtain the first process for being in electronic equipment front stage operation;
Obtain the second process, second process is the background process that is relied on by first process;
The priority of second process is adjusted to the priority with first process and is matched.
A kind of process processing unit, described device include:
First process obtains module, for obtaining the first process for being in electronic equipment front stage operation;
Second process obtains module, and for obtaining the second process, second process is is relied on by first process
Background process;
Module is adjusted, for adjusting the priority of second process to the priority phase with first process
Match.
A kind of electronic equipment, including memory and processor store computer program, the calculating in the memory
When machine program is executed by the processor, so that the processor executes the process handling method in each embodiment of the application
Step.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
The step of process handling method in each embodiment of the application is realized when row.
Process handling method and device provided by the embodiments of the present application, electronic equipment, computer readable storage medium, pass through
Obtain by the background process of the first process relied on, and by the priority of the background process relied on by the first process adjust to
The priority to match with the first process.Due to the highest priority of usual first process, and the priority of background process is lower, leads to
It crosses the priority of background process that adjustment is relied on by the first process, and the priority is adjusted to matching with foreground priority
Priority can prevent the priority of the second process lower and handle slowly, impact to foreground application, thus improve foreground
The treatment effeciency of the process of operation.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the schematic diagram of internal structure of electronic equipment in one embodiment;
Fig. 2 is the part frame schematic diagram of the system in one embodiment in electronic equipment;
Fig. 3 is the flow chart of process handling method in one embodiment;
Fig. 4 is the flow chart of process handling method in another embodiment;
Fig. 5 is the structural block diagram of process processing unit in one embodiment;
Fig. 6 is the structural block diagram of process processing unit in another embodiment;
Fig. 7 is the block diagram of the part-structure of mobile phone in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and
It is not used in restriction the application.
It is appreciated that term " first " used in the present invention, " 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 to distinguish the first element from the other element.Citing comes
It says, without departing from the scope of the invention, the first process can be known as the second process, and similarly, it can be by second
Process is known as the first process.First process and the second process both process, but it is not same process.
In one embodiment, as shown in Figure 1, providing the schematic diagram of internal structure of a kind of electronic equipment.The electronics is set
Standby includes processor, memory and the display screen connected by system bus.Wherein, which calculates and controls for providing
Ability supports the operation of entire electronic equipment.Memory for storing data, program, and/or instruction code etc., on memory
At least one computer program is stored, which can be executed by processor, and provide in the embodiment of the present application to realize
Process handling method suitable for electronic equipment.Memory may include magnetic disk, CD, read-only memory (Read-Only
Memory, ROM) etc. non-volatile memory mediums or random access memory (Random-Access-Memory, RAM) etc..Example
Such as, in one embodiment, memory includes non-volatile memory medium and built-in storage.Non-volatile memory medium is stored with
Operating system, database and computer program.It is stored in the database for realizing one provided by above each embodiment
The relevant data of process handling method are planted, such as the information such as title that can be stored with each process or application.The computer program
It can be performed by processor, for realizing a kind of process handling method provided by each embodiment of the application.Built-in storage
The running environment of cache is provided for operating system, database and the computer program in non-volatile memory medium.Display
Screen can be touch screen, for example be that capacitance plate or electrical screen may be used also for showing the interface information of the corresponding application of the first process
Be used to detect the touch operation for acting on the display screen, corresponding instruction is generated, for example carry out the switching of front and back application
Instruction etc..
It will be understood by those skilled in the art that structure shown in Fig. 1, only part relevant to application scheme is tied
The block diagram of structure, does not constitute the restriction for the electronic equipment being applied thereon to application scheme, and specific electronic equipment can be with
Including than more or fewer components as shown in the figure, perhaps combining certain components or with different component layouts.Such as electricity
Sub- equipment further includes the network interface connected by system bus, and network interface can be Ethernet card or wireless network card etc., is used
It is communicated in external electronic equipment, for example can be used for same server and communicated.For another example on the electronic equipment not
In the presence of the display connected by system bus, or external display device can be connected.
In one embodiment, as shown in Fig. 2, providing the part architecture diagram of a kind of electronic equipment.Wherein, which sets
It include JAVA space layer 210, local ccf layer 220 and kernel (Kernel) space layer 230 in standby architecture system.JAVA is empty
It may include that freezing pipe ought to use 212 on interbed 210, electronic equipment can ought to be realized with 212 by the freezing pipe and be answered each
Freeze strategy, the management operation such as freeze and thaw is done to the related application of backstage power consumption.Include money in local ccf layer 220
Source priority and limitation management module 222 and platform freezing pipe manage module 224.Electronic equipment can pass through resource prioritization and limitation
In different tissue of the application in different priorities and different resource of 222 real-time servicing of management module, and according to the need on upper layer
It asks to adjust the resource group of application program to reach optimization performance, saves the effect of power consumption.Electronic equipment can pass through platform
Freeze length of the management module 224 by can freezing from the background for task according to entrance freeze-off time, it is preset not to be assigned to correspondence
The frozen crust of same level, optionally, the frozen crust may include three, be respectively: CPU limitation sleep pattern, CPU freeze mould of sleeping
Formula, process deep freezing mode.Wherein, CPU limitation sleep pattern, which refers to, limits the occupied cpu resource of associated process
System, makes associated process occupy less cpu resource, and vacant cpu resource is tilted to other not frozen processes, is limited
To the occupancy of cpu resource, process is also accordingly limited to the occupancy of Internet resources and I/O interface resource;CPU freezes mould of sleeping
Formula, which refers to, forbids associated process using CPU, and retains the occupancy to memory, when being forbidden to use cpu resource, corresponding network money
Source and I/O interface resource are also prohibited from using;Process deep freezing mode refers in addition to being forbidden to use cpu resource, into one
Step recycles the occupied memory source of associated process, and the memory of recycling uses for other processes.Kernel spacing layer 230
In include UID management module 231, Cgroup module 232, Binder control module 233, proceeding internal memory recycling module 234 and
Freeze time-out and exits module 235.Wherein, UID management module 231 is for realizing the User Identity (User based on application
Identifier, UID) Lai Guanli third-party application resource or freezed.It is compared to and is identified based on process identity
The control of (Process Identifier, PID) Lai Jinhang process is more convenient for being managed collectively the application of a user by UID
Resource.Cgroup module 232 for provide a set of perfect central processing unit (Central Processing Unit, CPU),
CPUSET, memory (memory), input/output (input/output, I/O) and the relevant resource constraint mechanism of Net.Binder
Module 233 is managed for realizing the control of the backstage binder priority communicated.Wherein, the interface module of local ccf layer 220
Comprising developing to the binder interface on upper layer, binder interface of the frame or application on upper layer by offer limits to send resource
The instruction made or freezed manages module 224 to resource prioritization and limitation management module 222 and platform freezing pipe.Proceeding internal memory returns
Receipts module 234, in this way can be when some third-party application be chronically at frozen state for realizing process deep freezing mode
It waits, can mainly discharge the file area of process, to reach the module for saving memory, also accelerate this and apply in starting next time
Speed.Freeze time-out and exits exception of the module 235 for solving to occur freezing overtime scene generation.It, can by above-mentioned framework
Realize the process handling method in each embodiment of the application.
In one embodiment, as shown in figure 3, providing a kind of process handling method, the present embodiment is applied in this way
It is illustrated for electronic equipment as shown in Figure 1.This method comprises:
Step 302, the first process for being in electronic equipment front stage operation is obtained.
First process indicates the process for being in front stage operation.There are multiple processes in operating status in electronic equipment, into
Journey (process) is program in computer about the primary operation activity on certain data acquisition system, is that system carries out resource allocation
It is the basis of operating system configuration with the basic unit of scheduling.The operation of one application (Application, abbreviation APP) is usual
It is to be embodied by the operation of relevant multiple processes.The process that foreground application is related to when running is the first process, is answered from the background
The process being related to when with operation is background process.The first process when electronic equipment can be obtained in foreground application operation.Often
A process can be used as a task (task) and execute, and forming task by the first process is foreground task, and background process is formed
Task be background task.
For each process in front and back operation, electronic equipment is provided with corresponding different priority, and different is excellent
First grade corresponds to different resource constraint degree.The higher process of priority is lower to the limited degree of resource workable for it.It is logical
Chang Di, the first process correspondence is provided with highest priority, and is relatively higher than the priority of background process.The same process,
Priority when in front stage operation and in running background is not necessarily identical.And the same background process, in difference
Priority under state is also not necessarily identical.For example, unified background process, at different times or when the first process difference,
The priority of the background process is also not necessarily identical.
Electronic equipment can obtain the first process according to preset frequency or according to the user operation instruction detected.It can
Selection of land can obtain the process identification (PID) of first process, and process identification (PID) is used for the corresponding process of unique identification, can be by presetting digit capacity
The combination of one or more of number, letter or other characters is constituted.For example, can be indicated with process identification (PID) " 0001 "
Process A indicates process B etc. with " 1234 ".
Electronic equipment can be in the process of front stage operation according to the operating status of itself come real-time update and be in backstage
The process of operation, optionally, the first process pool of settable corresponding first process and the background process pond of background process.
Process identification (PID) in the first process is added in first process pool, the background process is added in the process identification (PID) of background process
Chi Zhong, and when detecting that the process of front and back operation has variation, it is corresponding to update in first process pool and background process pond
Process identification (PID).For example, when detecting that process B becomes the first process by background process, it can be by the process identification (PID) of process B
" 1234 " move into the first process pool from background process pond.
In one embodiment, electronic equipment can be directed to each process, and corresponding foreground label is arranged or backstage marks, will
Process with foreground label is determined as the first process, or will there is the process of backstage label to be determined as background process.Pass through
The process with foreground label is obtained, to realize the acquisition to the first process.
Step 304, the second process is obtained, the second process is the background process that is relied on by the first process.
Relying on indicates that a process needs to be used in another or the data of multiple processes and could smoothly realize to this
The relationship of the execution of one process.There are two processes of dependence, the process of the process and dependence that are respectively relied on, electricity
Sub- equipment will test out using the background process relied on by the first process as the second process.Electronic equipment can be to the quilt detected
The background process setting that first process is relied on is corresponding to be relied on label, and obtains to have from background process pond and be relied on mark
The background process of note, using the background process as the second process.
For example, process A is relied on dependent on process B or process B by process A, i.e., expression process A needs to utilize process B
Data be just able to achieve the execution to process A, at this point, process A be rely on process, process B is the second process.It can be with
Understand ground, the process of dependence is also possible to as the first process, and the second process may be background process.Electronic equipment can be from background process
It is detected in set, whether there is the background process relied on by the first process to inquire.
In one embodiment, before step 304, further includes: in detection background process set, if exist by first
The background process that process relies on, if so, using the background process as the second process.
Background process set, which refers to, is formed by set by background process, comprising transporting in backstage in the background process set
Capable process.Electronic equipment can traverse all background process, and detect whether there is the background process relied on by the first process,
Background process is detected with raising comprehensive.
In one embodiment, electronic equipment can be directed to all processes, record the dependence between each process, and
It records between the process with dependence, which is relying party, which is the side of being relied on.It, can be according to for first process
The dependence pre-established inquires the side of being relied on of first process, i.e., the background process relied on by first process.
Step 306, the priority of the second process is adjusted to the priority with the first process and is matched.
Optionally, for the second process inquired, electronic equipment can be adjusted its priority, so that adjusted
The priority of priority and first process matches.The priority of settable the second different process of electronic equipment and foreground are excellent
The matching relationship of first grade.According to the matching relationship, the corresponding priority for being suitable for the second process is obtained, and by the second process
Priority is adjusted to the priority, the resource constraint degree to the second process is reduced, so that the money that can be used the second process
The limited degree in source and the limited degree of the first process match.Wherein, foreground priority is the priority for first process that indicates.
In one embodiment, the priority to match with the priority of first process, can be and first process
The identical priority of priority.I.e. electronic equipment can adjust the priority of second process to the priority with first process
Identical priority, so that the limited degree for the resource that can be used to the second process is identical as the limited degree of the first process.
Above-mentioned process handling method, by obtaining the background process that is relied on by the first process, will by the first process institute according to
The priority of bad background process is adjusted to the priority to match with the first process.Due to usual first process priority most
The limited degree of height, corresponding workable resource is minimum, and the priority of background process is lower, to prevent background process from occupying
More resources, impacts foreground application.However it is relied in background process there is being relied on by the first process
Background process execution efficiency when, the first process can also be impacted.The application by adjusting the second process priority tune
The whole priority extremely to match with foreground priority, so as to reduce the limited degree for the resource that the second process can use, from
And improve the treatment effeciency of the second process.Since the treatment effeciency of second process improves, depended on to also improve
The treatment effeciency of first process of second process.
In one embodiment, after step 306, further includes: when the first process terminates the dependence to the second process,
By priority of the preferential level restoration of the second process to before adjusting.
Electronic equipment can detect whether the first process terminates the dependence to the second process, if so, by the excellent of the second process
Priority of the first level restoration to before adjusting.
First process is not the dependence being always maintained to the second process.When the first process do not needed to rely on again second into
When the data of journey, then the first process terminates the dependence of the second process.Electronic equipment can according to preset frequency to this first into
Dependence between journey and the second process is measured in real time, to detect whether the first process terminates to the second process
It relies on.Optionally, after first process that detects terminates the dependence of a certain second process, the preferential of second process can be restored
Grade, the i.e. priority by the preferential level restoration of second process to before adjusting.
Since the first process has been no longer dependent on the second process, thus the priority of the second process is restored, is mentioned
The resource that is relied on that height terminates dependence limits the use of available resources, so as to reserve more resources for the first process
It uses, further improves the treatment effeciency of the first process.
For example, priority 1 can be respectively set to priority 5 according to priority from high to low in electronic equipment, and totally 5 grades
Priority, the higher process of priority are lower to the limited degree of resource workable for it.When there are the second process A, second into
When journey A is in the state relied on by the first process, electronic equipment can be adjusted the priority of second process A by priority 4
, to improve the treatment effeciency of the second process A, make to priority 1 so that there is the second process A highest priority to be handled
Obtaining the first process can be improved the service efficiency of the data to the second process A, to improve the treatment effeciency of the first process;When detecting
When first process is over the dependence to second process A, since the first process is not depending on second process A, so
The priority of second process A is restored, the priority of second process A is adjusted by priority 1 to priority 4, with
Retain more available resources to use to the first process, further increases the service efficiency of the first process.
In one embodiment, before step 304, further includes: communicated when existing between background process and the first process
When mechanism, using the background process with communication mechanism as the second process.
Electronic equipment can detect background process set in, if exist with the first process have communication mechanism backstage into
Background process with communication mechanism is determined as the background process relied on by the first process by journey.
Interdepending between two processes is always built upon on the basis that they need to communicate with each other.In operating system
In, the interaction mechanism between process is broadly divided into synchronization mechanism and communication mechanism.Wherein, communication mechanism include socket,
Binder, shared drive etc..Two programs on network realize the exchange of data, this company by a two-way communication connection
The one end connect is known as a socket.Binder is a kind of inter-process communication mechanisms, provides remote procedure call function.In shared
Depositing exactly allows two incoherent processes to access the same logical memories, shared drive be the process that is currently running at two it
Between share and a kind of very effective mode of transmitting data, the memory shared between different processes are usually arranged for same section of object
Manage memory.
In one embodiment, when there are socket to communicate between background process and the first process, binder communication, memory
When shared or lock waits, determine that there are communication mechanisms between background process and the first process.
Optionally, electronic equipment can be detected whether to exist by any one or a few following mode and be had with the first process
The background process of communication mechanism:
(1) detect whether there is the background process that with the first process there is socket and/or binder to communicate;
(2) detect whether there is the background process that memory sharing is carried out between the first process;
(3) background process stayed in lock resource there are first process etc. is detected whether.
Electronic equipment can traverse background process, detect whether exist between the first process have socket and/or
The background process of binder communication, if so, the background process that will test out is as the second process.Also can detect whether exist with
The background process that memory sharing is carried out between first process, if so, the background process that will test out is also used as the second process.
In one embodiment, electronic equipment can setting be between the first process and background process in Binder driving
No there are the testing mechanisms of Binder communication, and are invoked at the testing mechanism being arranged in Binder driving, to detect and first
Process is there are the background process that Binder is communicated, and the background process that will test out is as the second process.
In one embodiment, electronic equipment can detect each lock resource, and lock resource includes thread lock, file handle, letter
Number etc..For each lock resource, it can detect whether that lock, which occurs, to be waited, i.e. lock resource waits.It, can when detecting that generating lock waits
Further detect whether the behavior waited occurs in the first process.If so, traversal etc. stays in above the lock resource
All background process, will test etc. the background process that stays in the lock resource be used as second process.
In one embodiment, lock monitoring resource module and excellent can be arranged in electronic equipment in the kernel spacing of operating system
First grade adjusts module, and lock monitoring resource module is embedded into the primary waiting interface of kernel.Pass through the lock monitoring resource mould
Block, detects thread lock, file handle, and signal etc. locks various lock resources, if waits, whether the behavior waited is hair
Life is on the first process, and if it is generation on foreground task, then the message that will test is sent to priority adjustment mould
Block.The lock resource all of the above background thread is stayed in by priority adjustment traversal etc., using these background process as the
Two processes.And module is adjusted by the priority and adjusts the priority of the second process to the priority to match.
In one embodiment, before step 304, further includes: when there are synchronous between background process and the first process
When mechanism, using the background process with synchronization mechanism as the second process.
Electronic equipment can also by call futex system call detection background process set in, if exist with first into
Journey have synchronization mechanism background process, by the background process with synchronization mechanism be determined as by the first process rely on backstage into
Journey.
In concurrent program design, each process must restrict the access of public variable, and this restriction is known as synchronizing.?
In operating system, the synchronization mechanism of User space (user mode) can be realized by calling futex system to call.Wherein, User space
Refer to unprivileged.Synchronization mechanism includes semaphore, mutual exclusion lock etc..It is detected and the first process when by futex system calling
There are when the background process of any one synchronization mechanism, the background process that can be will test is as the second process.
In the above method, by the detection to communication mechanism and/or synchronization mechanism between the first process and background process,
What be will test out has the background process of communication mechanism and/or synchronization mechanism as the second process with the first process, can be improved pair
The efficiency of the detection of second process.
In one embodiment, before step 306, further includes: the second process of detection, which is performed required resource, is
Otherwise the no corresponding maximum allowable resource of current priority for being greater than the second process, keeps second if so, thening follow the steps 306
The priority of process is constant.
Optionally, electronic equipment can further detect second process institute when executed after detecting the second process
The resource needed is enough.Wherein, required resource representation process be performed it is each when inscribe, the maximum money of required occupancy
Source.For every kind of priority, electronic equipment is provided with corresponding resource constraint degree, and the maximum of different resource constraint degree permits
Perhaps resource is different.I.e. different priority corresponds to different maximum allowable resources.Maximum allowable resource representation process is when each
Inscribe the maximum resource for allowing to be used.
Wherein, above-mentioned resource may include CPU, I/O file resource etc..Electronic equipment can detect second process, be in
In corresponding priority, whether confined maximum allowable resource is greater than that be performed be required resource, if so, illustrating to execute
Resource needed for second process is enough, it may not be necessary to be adjusted to its priority.Any one is provided needed for the second process
When source is less than the maximum allowable resource of corresponding type, then above-mentioned step 306 is executed.
Come using resource as memory for example, required memory is 20Mb when the second process executes, and second process
Locating priority it is corresponding it is maximum allowable in save as 15Mb, then determine second process be performed required resource be less than pair
The maximum allowable resource answered is adjusted the priority of second process to continue to execute step 306, thus realization pair
The adjustment of corresponding maximum allowable resource.
In one embodiment, when the second process is in the CPU usage limitation of frozen state or the second process less than the
When the CPU usage limitation of one process, execution, which adjusts the priority of the second process to the priority with the first process, to match
Priority.
Electronic equipment can detect whether the second process is in frozen state;And/or the CPU usage limit of the second process of detection
The CPU usage made less than the first process limits.
For every kind of process, corresponding process status is also recorded in electronic equipment, and process status includes frozen state and can
Operating status.Although indicating that process also exists when frozen state, but it is not allowed to run and account for the resources such as memory.It can run
State is to indicate the state of permission process operation.When second process that detects is in frozen state, then money needed for directly determining
Source is greater than maximum allowable resource, and executes step 306.It, can be further to the second process when detecting in operating status
CPU usage limitation is detected, by the CPU usage of the limitation of the CPU usage of second process and the first process limit into
Row compares, when detecting CPU usage limitation of the CPU usage limitation to the second process less than the first process, then equally
Resource needed for determining is greater than maximum allowable resource, and executes step 306.
In the above method, by being performed the current preference whether required resource is greater than the second process to the second process
The corresponding maximum allowable resource of grade is detected, when required resource is greater than corresponding maximum allowable resource, then by the second process
Priority adjust the priority to match to the priority with the first process, if required resource is enough, can need not carry out excellent
First grade adjustment, can reduce the operation of electronic equipment.
In one embodiment, the second process is relied on process and second including first and is relied on process;Second is relied on
Process is relied on process by first and directly relies on, and first, which is relied on process, is directly relied on or indirectly relied on by the first process.
Before the priority of the second process adjusted to the priority with the first process matching, further includes: the first quilt
When dependent process is waken up, determine that the first process terminates the dependence for being relied on process to second.
Electronic equipment detectable first is relied on whether process is waken up, if so, being relied on the preferential of process for second
Priority of the level restoration to before adjusting.
Optionally, the dependence between process includes directly relying on and indirectly relying on.For example, there are process A, process B,
This 4 processes of process C and process D.Process A depends directly on the data of process B, and process B depends directly on the number of process C again
According to, and process C also depends directly on the data of process D.That is the dependence between process A~D is a kind of dependence of chain type.At this point,
The dependence between adjacent processes in chain type dependence is to directly rely on, rather than the dependence between adjacent processes is closed
System is to indirectly rely on.That is process A depends directly on process B, process B depends directly on process C, process C depend directly on again into
Journey B.And process A indirectly depends on process C and process D, and process B also indirectly depends on process D.
Electronic equipment can obtain all background process for being directly relied on and being indirectly relied on by the first process.By the first process
In multiple second processes relied on, when there is a certain second process to depend directly on another second process, then this certain second
Process can be denoted as first and be relied on process, and another second process can then be denoted as second and be relied on process.It is to be appreciated that due to
First, which is relied on process, depends directly on second and is relied on process, therefore first is relied on process certainly by between the first process
Connect dependence, and this second to be relied on process then may be to be directly relied on by the first process, it is also possible to by the first process indirectly according to
Rely.
In one embodiment, electronic equipment can be for all processes of the relationship relied on there are chain type, according to dependence
Sequence carry out sequence wake-up so that when a certain second process complete execute after, wake up depend directly on second process into
Journey simultaneously executes.Such as above-mentioned process A~D, then can wakeup process D first, after process D is finished, then wakeup process C is simultaneously
It executes.
Electronic equipment detectable first is relied on whether process is waken up, and after first, which is relied on process, is waken up, then says
It is bright by first be relied on that process directly relied on second be relied on process and be finished, or second be relied on process institute
The resource of occupancy has discharged, i.e., first, which is relied on process, has needed not rely upon this and second be relied on process, similarly, first
Process second will not be relied on process dependent on this again, can determine that foreground thread to second be relied on process dependence it is whole
Only.Therefore, the priority that second is relied on process can be restored to original priority.
In the above method, wake-up detection is carried out by being relied on process to first, when detecting that first is relied on process and calls out
After waking up, then the dependence for determining that the first process is relied on process to second terminates, to be relied on the preferential of process for second
Priority of the level restoration to before adjusting, the preferential level restoration for the second process that can be run in time to completion prevent its long period
To the occupancy of resource, used to can provide more resources for the first process, further improve the first process executes effect
Rate.
In one embodiment, as shown in figure 4, providing another process handling method, this method comprises:
Step 402, the first process for being in electronic equipment front stage operation is obtained.
Optionally, the process identification (PID) of the recordable process for switching to front stage operation of electronic equipment, according to the process identification (PID) come
Obtain corresponding first process.Wherein, the first process may include multiple.For the first process for switching to front stage operation, electronics
Equipment can ought to use 212 by the freezing pipe in Fig. 2, by Binder interface to resource prioritization and limitation management module 222
It is preferential by receiving to send the priority adjustment instruction to the first process, the resource prioritization and limitation management module 222
The priority of first process is adjusted to the priority of highest level by grade adjustment instruction, so as to the resource constraint journey of the first process
It spends minimum.
Step 404, the second process is obtained, the second process is the background process that is relied on by the first process.
Electronic equipment can detect in background process set, if there is the background process relied on by the first process, it will be by the
The background process that one process relies on is as the second process.
Optionally, it can be inquired from all background process by resource prioritization and limitation management module 222, with
Detect whether there is the background process relied on by the first process, using the process being relied on inquired as the second process.
In one embodiment, can detect the first process whether there is between some or multiple background process in the presence of same
The interaction mechanisms such as step mechanism or communication mechanism, and if it exists, then using the one or more background process as the second process.For same
The detection of step mechanism can be realized by calling futex system to call;For the detection of communication mechanism, can be driven by binder
To be detected.
Step 406, the second process of detection is performed the current priority pair whether required resource is greater than the second process
Otherwise the maximum allowable resource answered, executes step 414 if so, thening follow the steps 408.
Optionally, electronic equipment can be arranged more by resource prioritization and limitation management module 222 and Cgroup module 232
A different priority and the corresponding resource constraint degree of each priority.Confined resource may include CPU, CPUSET,
The resource of the types such as memory, I/O and Net.Different priority can be allowed to the maximum resource occupied difference, priority advance notice
, resource constraint degree is lower, and the maximum resource for allowing to occupy is also bigger.Priority locating for different background process is not necessarily
It is identical, and the resource of required occupancy is also not necessarily identical.Electronic equipment can by be relied on backstage required resource and it is corresponding most
It is big that resource is allowed to be compared, when the resource needed for any one is greater than the maximum allowable resource of respective items, then follow the steps
408, when the resource needed for each phase is respectively less than the maximum allowable resource of respective items, then follow the steps 410.
Step 408, the priority of the second process is adjusted to identical as the priority of the first process.
Optionally, electronic equipment can be sent to resource prioritization and limitation management module 222 to the by Binder interface
The priority adjustment instruction of two processes, second process are the background process that above-mentioned judgement needs process priority to adjust.It can be with
Understand ground, and the second not all process requires process priority adjustment, can adjust part therein.Resource prioritization and limit
After management module 222 processed receives the priority adjustment instruction, the priority of corresponding second process is adjusted to excellent with foreground
First grade is identical, and reduction prevents foreground application from Caton occur its resource constraint so that the second process can be performed as early as possible.
Step 410, detection first is relied on whether process is waken up, if so, thening follow the steps 412, otherwise, executes step
414。
Step 412, priority of the preferential level restoration of process to before adjusting is relied on by second.
In one embodiment, the second process may include multiple, and in multiple second process, comprising directly by foreground according to
Bad background process, it is also possible to including indirectly by the first process rely on background process, i.e. the second process may include first by according to
Process and second is relied to be relied on process.First, which is relied on process, depends directly on second and is relied on process.
When the operation for the lock resource that second is relied on dependence needed for process is completed to be relied on process to first, just
It can successively wake-up waiting (pending) be in second process of lock resource all of the above (including first be relied on process) and successively
Execute the second process waken up.
Due to promoting the priority of the second process onto the priority to match with the first process, rely in this way
The speed that process executes will be very fast, and the lock resource so as to quickly hold itself discharges, so that depending on
The process of the lock resource smoothly executes, and then begins to wake up the normal execution that the foreground task in sleep carries out next step quickly
Operation.Meanwhile second is relied on process and is discharged to the lock resource, and the first of the lock resource is waited to be relied on process
It then terminates the dependence to the process and is waken up, which can be restored.
Step 414, keep the priority of the second process constant.
When the second process is performed the corresponding maximum of current priority that required resource is less than or equal to the second process
When allowing resource, then the adjustment of priority is not carried out to second process, remains unchanged it.When the second process has not been performed
After, it can make it that priority identical with the first process be kept to be executed, until the process is performed and finishes.It has executed
Complete process still keeps original low priority to run, and will not obtain forever high priority and not discharge, to influence system
Performance.
It should be understood that although each step in the flow chart of Fig. 3 and Fig. 4 is successively shown according to the instruction of arrow,
But these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these
There is no stringent sequences to limit for the execution of step, these steps can execute in other order.Moreover, in Fig. 3 and Fig. 4
At least part step may include that perhaps these sub-steps of multiple stages or stage are not necessarily same to multiple sub-steps
One moment executed completion, but can execute at different times, and the execution in these sub-steps or stage sequence is also not necessarily
Be successively carry out, but can at least part of the sub-step or stage of other steps or other steps in turn or
Alternately execute.
In one embodiment, as shown in figure 5, providing a kind of process processing unit, which includes:
First process obtains module 502, for obtaining the first process for being in electronic equipment front stage operation.
Second process obtains module 504, and for obtaining the second process, the second process is the backstage that is relied on by the first process
Process.
Module 506 being adjusted, being matched for adjusting the priority of the second process to the priority with the first process.
In one embodiment, adjustment module 506 is also used to when the first process terminates the dependence to the second process, by the
Priority of the preferential level restoration of two processes to before adjusting.
In one embodiment, as shown in fig. 6, providing another process processing unit, the device further include:
Process detection module 608, for when, there are when communication mechanism, having communication between background process and the first process
The background process of mechanism is as the second process.
In one embodiment, process detection module 608 is also used to work as and exist between background process and the first process
When socket communication, binder communication, memory sharing or lock wait, determine that there are communication equipments between background process and the first process
System.
In one embodiment, process detection module 608 is also used to when there are synchronous between background process and the first process
When mechanism, using the background process with synchronization mechanism as the second process.
In one embodiment, adjustment module 506 is also used to detect the second process whether be performed required resource big
In the corresponding maximum allowable resource of the current priority of the second process;If so, adjusting the priority of the second process to
The priority that the priority of one process matches;Otherwise, keep the priority of the second process constant.
In one embodiment, adjustment module 506 is also used to be in frozen state or the second process when the second process
When CPU usage limits the CPU usage limitation less than the first process, executes and adjust the priority of the second process to first
The priority that the priority of process matches.
In one embodiment, the second process is relied on process and second including first and is relied on process;Second is relied on
Process is relied on process by first and directly relies on, and first, which is relied on process, is directly relied on or indirectly relied on by the first process.
When adjustment module 506 is also used to first and is relied on process and is waken up, determine that the first process terminates to be relied on to second
The dependence of process.
In one embodiment, adjustment module 506 be also used to adjust the priority of the second process to the first process
Priority is identical.
Above-mentioned process processing unit will be by the first process institute by obtaining the background process relied on by the first process
The priority of the background process of dependence is adjusted to the priority to match with the first process.Due to usual first process priority most
The limited degree of height, corresponding workable resource is minimum, and the priority of background process is lower, to prevent background process from occupying
More resources, impacts foreground application.However it is relied in background process there is being relied on by the first process
Background process execution efficiency when, the first process can also be impacted.The application by adjusting the second process priority tune
The whole priority extremely to match with foreground priority, so as to reduce the limited degree for the resource that the second process can use, from
And improve the treatment effeciency of the second process.Since the treatment effeciency of second process improves, depended on to also improve
The treatment effeciency of first process of second process.
The division of modules is only used for for example, in other embodiments in above-mentioned process processing unit, can will be into
Journey processing unit is divided into different modules as required, to complete all or part of function of above-mentioned process processing unit.
Specific about process processing unit limits the restriction that may refer to above for process handling method, herein not
It repeats again.Modules in above-mentioned process processing unit can be realized fully or partially through software, hardware and combinations thereof.On
Stating each module can be embedded in the form of hardware or independently of in the processor in electronic equipment, can also be stored in a software form
In memory in electronic equipment, the corresponding operation of the above modules is executed in order to which processor calls.
Realizing for the modules in process processing unit provided in the embodiment of the present application can be the shape of computer program
Formula.The computer program can be run on the electronic equipments such as terminal or server.The program module that the computer program is constituted can
It is stored on the memory of electronic equipment.When the computer program is executed by processor, realize described in the embodiment of the present application
Process handling method the step of.
In one embodiment, a kind of electronic equipment is provided, including memory, processor and storage are on a memory simultaneously
The computer program that can be run on a processor, processor execute computer program when realize the various embodiments described above provided by into
The step of journey processing method.
In one embodiment, a kind of computer readable storage medium is additionally provided, on the computer readable storage medium
It is stored with computer program, when which executes processor, realizes process described in each embodiment of the application
The step of processing method.
In one embodiment, a kind of computer program product comprising instruction is provided, when it runs on computers
When, so that computer executes process handling method described in each embodiment of the application.
The embodiment of the present application also provides a kind of computer equipments.As shown in fig. 7, for ease of description, illustrate only with
The relevant part of the embodiment of the present application, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.The calculating
Machine equipment can be include mobile phone, tablet 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 device are with computer equipment
For mobile phone:
Fig. 7 is the block diagram of the part-structure of mobile phone relevant to computer equipment provided by the embodiments of the present application.With reference to figure
7, mobile phone include: radio frequency (Radio Frequency, RF) circuit 710, memory 720, input unit 730, display unit 740,
Sensor 750, voicefrequency circuit 760, Wireless Fidelity (wireless fidelity, WiFi) module 770, processor 780 and
The components such as power supply 790.It will be understood by those skilled in the art that handset structure shown in Fig. 7 does not constitute the restriction to mobile phone, it can
To include perhaps combining certain components or different component layouts than illustrating more or fewer components.
Wherein, RF circuit 710 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station
After downlink information receives, handled to processor 780;The data of uplink can also be sent to base station.In general, RF circuit 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 circuit 710 can also be communicated with network and other equipment by wireless communication.Above-mentioned channel radio
Any communication standard or agreement, including but not limited to global system for mobile communications (Global System of can be used in letter
Mobile communication, GSM), general packet radio service (General Packet Radio Service,
GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code
Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email,
Short message service (Short Messaging Service, SMS) etc..
Memory 720 can be used for storing software program and module, and processor 780 is stored in memory 720 by operation
Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 720 can mainly include
Program storage area and data storage area, wherein program storage area can application journey needed for storage program area, at least one function
Sequence (such as application program, application program of image player function of sound-playing function etc.) etc.;Data storage area can store root
Created data (such as audio data, address list etc.) etc. are used according to mobile phone.In addition, memory 720 may include 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 unit 730 can be used for receiving the number or character information of input, and generate the user setting with mobile phone 700
And the related key signals input of function control.Specifically, input unit 730 may include touch panel 731 and other inputs
Equipment 732.Touch panel 731, alternatively referred to as touch screen collect touch operation (such as the user of user on it or nearby
Use the operation of any suitable object or attachment such as finger, stylus on touch panel 731 or near touch panel 731),
And corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 731 may include touching inspection
Survey two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation
Bring signal, 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 780, and can receive order that processor 780 is sent and be executed.In addition,
Touch panel 731 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface
Plate 731, input unit 730 can also include other input equipments 732.Specifically, other input equipments 732 may include but not
It is limited to one of physical keyboard, function key (such as volume control button, switch key etc.) etc. or a variety of.
Display unit 740 can be used for showing information input by user or be supplied to user information and mobile phone it is various
Menu.Display unit 740 may include display panel 741.In one embodiment, liquid crystal display (Liquid can be used
Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED)
To configure display panel 741.In one embodiment, touch panel 731 can cover display panel 741, when touch panel 731 is examined
After measuring touch operation on it or nearby, processor 780 is sent to determine the type of touch event, is followed by subsequent processing device
780 provide corresponding visual output according to the type of touch event on display panel 741.Although in Fig. 7, touch panel
731 and display panel 741 are the input and input function for realizing mobile phone as two independent components, but in certain implementations
In example, can be integrated by touch panel 731 and display panel 741 and that realizes mobile phone output and input function.
Mobile phone 700 may also include at least one sensor 750, such as optical sensor, motion sensor and other sensings
Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 741, and proximity sensor can close display panel when mobile phone is moved in one's ear
741 and/or backlight.Motion sensor may include acceleration transducer, can detect by acceleration transducer and adds in all directions
The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of 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 sensor etc..
Voicefrequency circuit 760, loudspeaker 761 and microphone 762 can provide the audio interface between user and mobile phone.Audio-frequency electric
Electric signal after the audio data received conversion can be transferred to loudspeaker 761, be converted to sound by loudspeaker 761 by road 760
Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 762, is turned after being received by voicefrequency circuit 760
It is changed to audio data, then by after the processing of audio data output processor 780, another mobile phone can be sent to through RF circuit 710, or
Person exports audio data to memory 720 so as to subsequent processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 770
Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 7 is shown
WiFi module 770, but it is understood that, and it is not belonging to must be configured into for mobile phone 700, it can according to need and omit.
Processor 780 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to
It crosses operation or executes the software program and/or module being stored in memory 720, and call and be stored in memory 720
Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment, it handles
Device 780 may include one or more processing units.In one embodiment, processor 780 can integrate application processor and modulation
Demodulator, wherein the main processing operation system of application processor, user interface and application program etc.;Modem is mainly located
Reason wireless communication.It is understood that above-mentioned modem can not also be integrated into processor 780.For example, the processor
780 can integrate application processor and baseband processor, baseband processor with and the composable modem such as other peripheral chips.
Mobile phone 700 further includes the power supply 790 (such as battery) powered to all parts, it is preferred that power supply can pass through power management system
It unites logically contiguous with processor 780, to realize the function such as management charging, electric discharge and power managed by power-supply management system
Energy.
In one embodiment, mobile phone 700 can also include camera, bluetooth module etc..
In the embodiment of the present application, when processor included by the mobile phone executes the computer program of storage on a memory
Realize above-mentioned described process handling method.
Any reference to memory, storage, database or other media used in this application may include non-volatile
And/or volatile memory.Suitable nonvolatile memory may include read-only memory (ROM), programming ROM (PROM),
Electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access
Memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as
It is static RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced
SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
Above embodiments only express the several embodiments of the application, and the description thereof is more specific and detailed, but can not
Therefore it is interpreted as the limitation to the application the scope of the patents.It should be pointed out that for those of ordinary skill in the art,
Without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection model of the application
It encloses.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (12)
1. a kind of process handling method characterized by comprising
Obtain the first process for being in electronic equipment front stage operation;
Obtain the second process, second process is the background process that is relied on by first process;
The priority of second process is adjusted to the priority with first process and is matched.
2. the method according to claim 1, wherein by the priority of second process adjust to it is described
After the priority of first process matches, further includes:
When first process terminates the dependence to second process, by the preferential level restoration of second process to adjustment
Preceding priority.
3. the method according to claim 1, wherein before the second process of the acquisition, further includes:
When between background process and first process there are when communication mechanism, using the background process with communication mechanism as
Two processes.
4. according to the method described in claim 3, it is characterized in that, when existing between background process and first process
When socket communication, binder communication, memory sharing or lock wait, determine to deposit between the background process and first process
In communication mechanism.
5. the method according to claim 1, wherein before the second process of the acquisition, further includes:
When between background process and first process there are when synchronization mechanism, using the background process with synchronization mechanism as
Two processes.
6. the method according to claim 1, wherein the priority by second process adjust to
Before the priority of first process matches, further includes:
Detect second process be performed required resource whether be greater than second process current priority it is corresponding
Maximum allowable resource;
Match if so, executing the priority by second process and adjusting to the priority with first process
Priority;
Otherwise, keep the priority of second process constant.
7. the method according to claim 1, wherein the priority by second process adjust to
Before the priority of first process matches, further includes:
When second process is in CPU of the CPU usage limitation less than the first process of frozen state or second process
When occupancy limits, the execution priority by second process, which is adjusted to the priority with first process, to match
Priority.
8. according to the method described in claim 2, it is characterized in that, second process is relied on process and second including first
It is relied on process;Described second, which is relied on process, is relied on process by described first and directly relies on, and described first is relied on process
It is directly relied on or is indirectly relied on by first process;
Before the priority by second process adjusts to the priority with first process and matches, also wrap
It includes:
Described first is relied on process when being waken up, determine first process terminate to described second be relied on process according to
Rely.
9. method according to any one of claim 1 to 8, which is characterized in that described by the preferential of second process
Grade, which is adjusted to the priority with first process, to match, comprising:
The priority of second process is adjusted to identical as the priority of first process.
10. a kind of process processing unit, which is characterized in that described device includes:
First process obtains module, for obtaining the first process for being in electronic equipment front stage operation;
Second process obtains module, for obtaining the second process, after second process is is relied on by first process
Platform process;
Module being adjusted, being matched for adjusting the priority of second process to the priority with first process.
11. a kind of electronic equipment, including memory and processor, computer program, the calculating are stored in the memory
When machine program is executed by the processor, so that the processor executes at process as claimed in any one of claims 1-9 wherein
The step of reason method.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of process handling method as claimed in any one of claims 1-9 wherein is realized when being executed by processor.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711488926.XA CN109992397A (en) | 2017-12-29 | 2017-12-29 | Process handling method and device, electronic equipment, computer readable storage medium |
PCT/CN2018/117459 WO2019128588A1 (en) | 2017-12-29 | 2018-11-26 | Process processing method and apparatus, electronic device, computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711488926.XA CN109992397A (en) | 2017-12-29 | 2017-12-29 | Process handling method and device, electronic equipment, computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109992397A true CN109992397A (en) | 2019-07-09 |
Family
ID=67063040
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711488926.XA Pending CN109992397A (en) | 2017-12-29 | 2017-12-29 | Process handling method and device, electronic equipment, computer readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109992397A (en) |
WO (1) | WO2019128588A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110704112A (en) * | 2019-08-30 | 2020-01-17 | 阿里巴巴集团控股有限公司 | Method and apparatus for concurrently executing transactions in a blockchain |
CN112445628A (en) * | 2019-09-03 | 2021-03-05 | 腾讯科技(深圳)有限公司 | Inter-process resource sharing method and device and electronic equipment |
WO2021208627A1 (en) * | 2020-04-13 | 2021-10-21 | 荣耀终端有限公司 | Task scheduling method and apparatus, and electronic device |
WO2022127632A1 (en) * | 2020-12-14 | 2022-06-23 | 华为技术有限公司 | Resource management and control method, and device |
CN116701320A (en) * | 2022-12-01 | 2023-09-05 | 荣耀终端有限公司 | Log generation method and related device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105843650A (en) * | 2016-03-31 | 2016-08-10 | 青岛海信移动通信技术股份有限公司 | Application program management method and device in intelligent terminal |
CN107391241A (en) * | 2017-06-22 | 2017-11-24 | 努比亚技术有限公司 | Using quick start method, terminal and computer-readable recording medium |
CN107402808A (en) * | 2017-07-31 | 2017-11-28 | 广东欧珀移动通信有限公司 | process management method, device, storage medium and electronic equipment |
CN107463403A (en) * | 2017-07-31 | 2017-12-12 | 广东欧珀移动通信有限公司 | Course control method, device, storage medium and electronic equipment |
CN107463436A (en) * | 2017-07-31 | 2017-12-12 | 广东欧珀移动通信有限公司 | Course control method, device, storage medium and electronic equipment |
US20170357448A1 (en) * | 2005-09-30 | 2017-12-14 | Intel Corporation | Selective i/o prioritization by system process/thread |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102163161B (en) * | 2011-04-01 | 2018-09-25 | 奇智软件(北京)有限公司 | A kind of process management method and device |
CN110083444B (en) * | 2013-12-10 | 2024-06-11 | 华为终端有限公司 | Task management method and device |
CN103838630A (en) * | 2014-03-03 | 2014-06-04 | 联想(北京)有限公司 | Information processing method, system and electronic equipment |
CN107479954B (en) * | 2017-07-31 | 2019-10-29 | Oppo广东移动通信有限公司 | Process management method, device, storage medium and electronic equipment |
-
2017
- 2017-12-29 CN CN201711488926.XA patent/CN109992397A/en active Pending
-
2018
- 2018-11-26 WO PCT/CN2018/117459 patent/WO2019128588A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170357448A1 (en) * | 2005-09-30 | 2017-12-14 | Intel Corporation | Selective i/o prioritization by system process/thread |
CN105843650A (en) * | 2016-03-31 | 2016-08-10 | 青岛海信移动通信技术股份有限公司 | Application program management method and device in intelligent terminal |
CN107391241A (en) * | 2017-06-22 | 2017-11-24 | 努比亚技术有限公司 | Using quick start method, terminal and computer-readable recording medium |
CN107402808A (en) * | 2017-07-31 | 2017-11-28 | 广东欧珀移动通信有限公司 | process management method, device, storage medium and electronic equipment |
CN107463403A (en) * | 2017-07-31 | 2017-12-12 | 广东欧珀移动通信有限公司 | Course control method, device, storage medium and electronic equipment |
CN107463436A (en) * | 2017-07-31 | 2017-12-12 | 广东欧珀移动通信有限公司 | Course control method, device, storage medium and electronic equipment |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110704112A (en) * | 2019-08-30 | 2020-01-17 | 阿里巴巴集团控股有限公司 | Method and apparatus for concurrently executing transactions in a blockchain |
CN110704112B (en) * | 2019-08-30 | 2021-04-02 | 创新先进技术有限公司 | Method and apparatus for concurrently executing transactions in a blockchain |
CN112445628A (en) * | 2019-09-03 | 2021-03-05 | 腾讯科技(深圳)有限公司 | Inter-process resource sharing method and device and electronic equipment |
CN112445628B (en) * | 2019-09-03 | 2023-10-24 | 腾讯科技(深圳)有限公司 | Inter-process resource sharing method and device and electronic equipment |
WO2021208627A1 (en) * | 2020-04-13 | 2021-10-21 | 荣耀终端有限公司 | Task scheduling method and apparatus, and electronic device |
CN113535340A (en) * | 2020-04-13 | 2021-10-22 | 荣耀终端有限公司 | Task scheduling method and device and electronic equipment |
CN113535340B (en) * | 2020-04-13 | 2023-03-31 | 荣耀终端有限公司 | Task scheduling method and device and electronic equipment |
WO2022127632A1 (en) * | 2020-12-14 | 2022-06-23 | 华为技术有限公司 | Resource management and control method, and device |
CN116701320A (en) * | 2022-12-01 | 2023-09-05 | 荣耀终端有限公司 | Log generation method and related device |
CN116701320B (en) * | 2022-12-01 | 2024-05-14 | 荣耀终端有限公司 | Log generation method and related device |
Also Published As
Publication number | Publication date |
---|---|
WO2019128588A1 (en) | 2019-07-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109992397A (en) | Process handling method and device, electronic equipment, computer readable storage medium | |
CN109992523A (en) | Internal memory processing method and device, electronic equipment, computer readable storage medium | |
CN109992393A (en) | Application processing method and device, electronic equipment, computer readable storage medium | |
CN110008008A (en) | Applied program processing method and device, electronic equipment, computer readable storage medium | |
CN110018902A (en) | Internal memory processing method and device, electronic equipment, computer readable storage medium | |
CN110018900A (en) | Internal memory processing method and device, electronic equipment, computer readable storage medium | |
CN109992402A (en) | Internal memory processing method and device, electronic equipment, computer readable storage medium | |
CN110018904A (en) | Information processing method, device, computer equipment and computer readable storage medium | |
CN109992370A (en) | Applied program processing method and device, electronic equipment, computer readable storage medium | |
CN109992398A (en) | Method for managing resource, device, mobile terminal and computer readable storage medium | |
CN109144232A (en) | Process handling method and device, electronic equipment, computer readable storage medium | |
CN110018901A (en) | Method for recovering internal storage, device, computer equipment and computer readable storage medium | |
CN109992438A (en) | Information processing method, device, computer equipment and computer readable storage medium | |
CN110045809A (en) | Information processing method, device, computer equipment and computer readable storage medium | |
CN110032431A (en) | Application processing method and device, electronic equipment, computer readable storage medium | |
CN110032266A (en) | Information processing method, device, computer equipment and computer readable storage medium | |
CN109992522A (en) | Application processing method and device, electronic equipment, computer readable storage medium | |
CN110046032A (en) | Applied program processing method and device, electronic equipment, computer readable storage medium | |
CN110018905A (en) | Information processing method, device, computer equipment and computer readable storage medium | |
CN109992375A (en) | Information processing method, device, computer equipment and computer readable storage medium | |
CN110018903A (en) | Method for managing resource, device, mobile terminal and computer readable storage medium | |
CN109992399A (en) | Method for managing resource, device, mobile terminal and computer readable storage medium | |
CN109992425A (en) | Information processing method, device, computer equipment and computer readable storage medium | |
CN109992360A (en) | Process handling method and device, electronic equipment, computer readable storage medium | |
CN110032397A (en) | Application processing method and device, electronic equipment, computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190709 |