CN109992360A - 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
- CN109992360A CN109992360A CN201711480466.6A CN201711480466A CN109992360A CN 109992360 A CN109992360 A CN 109992360A CN 201711480466 A CN201711480466 A CN 201711480466A CN 109992360 A CN109992360 A CN 109992360A
- Authority
- CN
- China
- Prior art keywords
- resource
- waken
- target process
- target
- state
- 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
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
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
-
- 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/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
- G06F9/5038—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/5021—Priority
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/504—Resource capping
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application provides a kind of process handling method, device, electronic equipment, computer readable storage medium.The described method includes: when detecting that the target process in frozen state is waken up, it then controls the target process being waken up and enters resource constraint state, wherein, the process in the resource constraint state is at runtime to the resources occupation rate of electronic equipment less than the first occupancy threshold;The timing since at the time of the target process is waken up;When timing duration is more than the first duration threshold value, then freeze the target process.The resource utilization of equipment can be improved in above-mentioned process handling method, device, electronic equipment, computer readable storage medium.
Description
Technical field
This application involves field of computer technology, more particularly to a kind of process handling method, device, electronic equipment, meter
Calculation machine readable storage medium storing program for executing.
Background technique
Smart machine can realize different application operatings by application program, for example can pass through class application program of doing shopping
Purchase commodity check video etc. by video class application program.Application program can be frozen, and the application program after freezing can not
Be further continued for running, will not occupy processor resource in smart machine, but due to application program still exist in smart machine
, therefore can also occupy the resources such as memory, hardware in smart machine.
Summary of the invention
The embodiment of the present application provides a kind of process handling method, device, electronic equipment, computer readable storage medium, can
To improve the resource utilization of equipment.
A kind of process handling method, comprising:
When detecting that the target process in frozen state is waken up, then controls the target process being waken up and enter money
Source restriction state, wherein the process in the resource constraint state is at runtime less than the resources occupation rate of electronic equipment
First occupancy threshold;
The timing since at the time of the target process is waken up;
When timing duration is more than the first duration threshold value, then freeze the target process.
A kind of process processing unit, comprising:
Process wake-up module, for when detecting that the target process in frozen state is waken up, then control to be waken up
The target process enters resource constraint state, wherein the process in the resource constraint state at runtime sets electronics
Standby resources occupation rate is less than the first occupancy threshold;
Timing module, for the timing since at the time of the target process is waken up;
Process freezes module, for being more than the first duration threshold value when timing duration, then freezes the target process.
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 following steps:
When detecting that the target process in frozen state is waken up, then controls the target process being waken up and enter money
Source restriction state, wherein the process in the resource constraint state is at runtime less than the resources occupation rate of electronic equipment
First occupancy threshold;
The timing since at the time of the target process is waken up;
When timing duration is more than the first duration threshold value, then freeze the target process.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
Row following steps:
When detecting that the target process in frozen state is waken up, then controls the target process being waken up and enter money
Source restriction state, wherein the process in the resource constraint state is at runtime less than the resources occupation rate of electronic equipment
First occupancy threshold;
The timing since at the time of the target process is waken up;
When timing duration is more than the first duration threshold value, then freeze the target process.
Above-mentioned process handling method, device, electronic equipment, computer readable storage medium freeze shape when detecting to be in
The target process of state is waken up, then controls the target process being waken up and enter resource constraint state, and is super in the duration being waken up
When crossing threshold value, target process is freezed again.It can guarantee to quickly enter a kind of resource constraint after process is waken up in this way
State, to avoid being waken up using excessive occupancy device resource.Simultaneously when the duration that process is waken up is more than threshold value, allow
Process is again introduced into frozen state, avoids process from occupying the long-time of resource, further reduces resources occupation rate.
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 schematic diagram of process process flow in one embodiment;
Fig. 6 is the structural block diagram of the process processing unit of one embodiment;
Fig. 7 is the structural schematic diagram of process processing unit in another embodiment;
Fig. 8 is the block diagram of the part-structure of mobile phone relevant to electronic equipment provided by the embodiments of the present application.
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 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 to distinguish the first element from the other element.Citing comes
It says, in the case where not departing from scope of the present application, the first client can be known as the second client, and similarly, can incite somebody to action
Second client is known as the first client.The first client and the second client both client, but it is not same visitor
Family end.
As shown in Figure 1, providing the schematic diagram of internal structure of a kind of electronic equipment.The electronic equipment includes total by system
Processor, memory and the display screen of line connection.Wherein, which supports entire electricity for providing calculating and control ability
The operation of sub- equipment.Memory for storing data, program, and/or instruction code etc., at least one calculating is stored on memory
Machine program, the computer program can be executed by processor, to realize that is provided in the embodiment of the present application is suitable for electronic equipment
Process handling method.Memory may include that magnetic disk, CD, read-only memory (Read-Only Memory, ROM) etc. are non-easily
The property lost storage medium or random access memory (Random-Access-Memory, RAM) etc..For example, in one embodiment
In, memory includes non-volatile memory medium and built-in storage.Non-volatile memory medium is stored with operating system and calculating
Machine program.The computer program can performed by processor, with for realizing one kind provided by each embodiment of the application into
Journey processing method.Built-in storage in non-volatile memory medium operating system and computer program the fortune of cache is provided
Row environment.Display screen can be touch screen, for example be capacitance plate or electrical screen, the boundary for the corresponding application of display foreground process
Face information may be utilized for the touch operation that detection acts on the display screen, generate corresponding instruction, for example carry out front and back
The switching command etc. of application.
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.
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 21, local ccf layer 22 and kernel (Kernel) space layer 23 in standby architecture system.The space JAVA
It may include tactful application program 210 on layer 21, electronic equipment can be initiated to each by the strategy application program 210 using journey
Sequence freeze and the strategy that thaws, the operation freezing and thaw is realized to each application program in electronic equipment to realize.Example
Such as, the application program of backstage power consumption is judged by tactful application program 210, and initiates to do the application program of the backstage power consumption
Freeze operation.Freeze management module 222 comprising resource prioritization and limitation management module 220 and platform in local ccf layer 22.
Electronic equipment can be by resource prioritization and limitation management module 220 come the priority of real-time servicing application program and corresponding money
Source group, the priority and resource group that application program is adjusted according to the demand on upper layer to reach optimization performance save power consumption
Effect.Electronic equipment can freeze management module 222 for can freezing from the background for task according to entrance freeze-off time by platform
Length is assigned to the frozen crust of corresponding preset different levels, optionally, the frozen crust can include: CPU limitation sleep pattern,
CPU freezes sleep pattern, process deep freezing mode.It include UID management module 230, Cgroup module in kernel spacing layer 23
232, time-out is freezed to exit module 234, Binder control module 236, proceeding internal memory recycling module 238.Wherein, UID manages mould
Block 230 can User Identity (User Identifier, UID) Lai Guanli third party application based on application program
Resource or freezed.It is compared to and (Process Identifier, PID) Lai Jinhang process pipe is identified based on process identity
Control is more convenient for being managed collectively the resource of the application of a user by UID.Cgroup module 232 is a set of perfect for providing
Central processing unit (Central Processing Unit, CPU), CPUSET, memory (memory), input/output (input/
Output, I/O) and the relevant resource constraint mechanism of Net.Time-out freeze to exit module 234 for solve occur freezing overtime field
The exception that scape generates.Binder manages module 236 for realizing the control of the backstage binder priority communicated.Proceeding internal memory returns
Receiving module 238 can when third party application is chronically at frozen state for realizing the deep freezing mode of process
To discharge the file area of process, to reach the module for saving memory, also accelerate speed of the application program in starting next time.
By above-mentioned framework, it can be achieved that process handling method in each embodiment of the application.
Fig. 3 is the flow chart of process handling method in one embodiment.As shown in figure 3, the process handling method includes step
Rapid 302 to step 306.Wherein:
Step 302, when detecting that the target process in frozen state is waken up, then control the target process that is waken up into
Enter resource constraint state, wherein the process in resource constraint state is at runtime less than the resources occupation rate of electronic equipment
First occupancy threshold.
Application program (Application, APP) refers to the software write in electronic equipment for certain application purpose,
Electronic equipment can realize the Demand and service to user by application program.For example, user can pass through game class application program
Game is played, video can also be seen by video class application program, music etc. can also be played by music class application program.Using
Program can be divided into foreground application and background application according to the state of operation.Foreground application refers to be set in electronics
The application program of standby front stage operation, foreground application can with foreground show and with user realize interact.It answers on backstage
Refer to the application program in the running background of electronic equipment with program, background application cannot generally be shown on foreground and with
Realize interactive process in family.
Generally, the application operating of application program is completed jointly by one or more processes (process), and process is
It is the program in computer about the primary operation activity on certain data acquisition system, is that system carries out the basic of Resource Distribution and Schedule
Unit.Meanwhile a process can correspond to one or more threads, thread is a single sequential control process in program,
It is a relatively independent, schedulable execution unit in process.Process may include foreground process and background process, foreground process
As in the process of electronic equipment front stage operation, background process is the process in electronic equipment running background.Electronic equipment can
To control the switching of foreground process and background process, foreground process can switch to running background, and background process can also be switched to
Front stage operation.Specifically, the management to process can be realized by process pool, can be stored in process pool it is one or more into
The corresponding process identification (PID) of journey.Process pool may include foreground process pond and background process pond, include foreground in foreground process pond into
Journey corresponding process identification (PID) includes the corresponding process identification (PID) of background process in background process pond.When detect foreground process and after
When platform running state of a process changes, process pool can correspondingly add or delete the process identification (PID) for generating variation.For example, into
The process identification (PID) of journey A is that " 0123 " can be by the process of process A when detecting that process A becomes foreground process by background process
Mark " 0123 " is removed from background process pond, and is added in foreground process pond.
Specifically, process can be frozen, and the process in frozen state is not closed, not run temporarily only.
Process in frozen state is not take up processor resource and is run, but still occupy memory and the hardware of electronic equipment etc.
Resource.Resource prioritization and limitation management module in the local ccf layer of electronic equipment can mark state of a process
Note, by reading state of a process label it is known that whether process is in frozen state.After process is waken up, resource is excellent
First grade and limitation management module can correspondingly change state of a process label, thus realized by corresponding status indication into
The control of journey frozen state.
When detecting that target process is waken up from frozen state, then controls the target process being waken up and enter resource constraint
State.Resource constraint state refers to the state that the resource of the electronic equipment used at runtime process is limited.Resource is
Refer to software or hardware resource that electronic equipment must be used when handling application affairs, such as the CPU of electronic equipment
(Central Processing Unit, central processing unit), memory (Memory), hardware, Internet resources, IO (Input-
Output, input and output) etc..Resources occupation rate refers to the occupied ratio of the resource of electronic equipment, generally refers to occupied
The ratio of resource and whole resources, can be indicated by way of percentage.For example, equipment it is total in have 128GB,
Through it is occupied it is interior have 56GB, then the resources occupation rate of the equipment can be expressed as memory usage, obtained memory
Occupancy is 43.75%.It is understood that resources occupation rate when process is in resource constraint state, in operational process
No more than the first occupancy threshold, use of the process to electronic equipment resource can control in this way, to save electronic equipment
Resource.For example, the CPU usage of limiting process at runtime is no more than 10%.
Step 304, the timing since at the time of target process is waken up.
In one embodiment, when target process is waken up, electronic equipment starts timer, is then opened by timer
Beginning timing.If existing simultaneously the case where a plurality of target process is waken up, then one can be defined to every target process
Corresponding timer, every target process can carry out timing by corresponding timer.It is understood that defining
After target process, the corresponding relationship between the process identification (PID) of target process and the timing markers of timer can establish, in this way
After target process is waken up, it can be searched by the corresponding timing markers of process identification (PID) and start timer and start timing.With
For android system, system can pre-define a timer, when detecting that target process is waken up, process identification (PID)
Corresponding timer is searched, and passes through timer.setBase (SystemClock.elapsedRealtime ()) for timer
It resets, timer is then started by timer.start () function, start timing.It is understood that in the application with
Process handling method is illustrated for Android operation system, but the process handling method of the application is not limited in
It is realized in android system, can be applied in IOS (IPhone Operating System), Saipan, Windows, MAC
In the operating systems such as OS (Macintosh Operating System).
Step 306, when timing duration is more than the first duration threshold value, then freeze target process.
Start timing at the time of target process is waken up, to current at the time of timing duration expression is waken up from target process
The duration at moment.The first duration threshold value can be pre-defined, when timing duration is more than the first duration threshold value, by the target process
It re-starts and freezes.First duration threshold value can generally be set as a smaller threshold value, thus be avoided that target process is located always
In operating status, and occupy the resource of equipment.It is understood that identical first duration can be used in different target process
The first different duration threshold values also can be used, it is not limited here in threshold value.
Specifically, the application type of application program corresponding to target process can be obtained first, then according to using class
Type obtains corresponding first duration threshold value.For example, application program can be divided into the application such as instant messaging class, social category, tool-class
Type, since the requirement of real-time of instant messaging class is relatively high, then can be right by the process institute of instant messaging class application program
A biggish value is arranged in the first duration threshold value answered.The requirement of real-time of social category and tool-class application program is relatively low, then
A lesser value can be arranged in first duration threshold value corresponding to the process of social category and tool-class application program.In this way
Different processes can be arranged to the first different duration threshold values, the application program relatively low for some requirement of real-time, quilt
The target process of wake-up can quickly enter frozen state, to reduce the occupancy of resource.
Process handling method provided by the above embodiment, when detecting that the target process in frozen state is waken up, then
Control the target process that is waken up and enter resource constraint state, and when the duration being waken up is more than threshold value, again by target into
Cheng Jinhang freezes.It can guarantee to quickly enter a kind of resource constraint state after process is waken up in this way, be answered to avoid what is be waken up
With excessive occupancy device resource.Simultaneously when the duration that process is waken up is more than threshold value, process is allowed to be again introduced into frozen state,
It avoids process from occupying the long-time of resource, further reduces resources occupation rate.
Fig. 4 is the flow chart of process handling method in another embodiment.As shown in figure 4, the process handling method includes
Step 402 is to step 418.Wherein:
Step 402, it is corresponding for receiving the communication interface of communication information to monitor each process of freezing, freezes process as place
In the process of frozen state.
In one embodiment, communication interface refers to that process for receiving the interface of communication information, can be, but not limited to wrap
Include Binder communication interface and Socket communication interface.Wherein it is efficient to communicate the one kind for being to realize in android system by Binder
IPC (Inter-Process Communication, interprocess communication) mechanism, be a kind of client-server (client-
Server) communication structure.Client and server can define a corresponding proxy interface, in client call proxy interface
Method when, the parameter of client can be packaged into a Parcel object by the method for proxy interface, then proxy interface will
Parcel object is sent to the driving of the Binder in inner nuclear layer.Server can read the request data in Binder driving, so
Parcel object is parsed and handled afterwards, and processing result is returned.Socket communication can be to two network application journeys
Sequence is communicatively coupled, to realize the data exchange of the application program on network.Specifically, communication can lead between local process
It crosses PID (Process Identity, process identification (PID)) and carrys out one process of unique identification, but communication is that do not have between network process
What method was realized.And IP (Internet Protocol, the agreement interconnected between network) address can be unique in network communications
Identify network in host, " agreement+port " can with the process in unique identification host, therefore Socket communication in be usually
Come one process of unique identification by way of " IP address+agreement+port ".
Electronic equipment when establishing process, can to process definition communication interface, to process definition communication interface it
Afterwards, process could receive communication information by the communication interface.Specifically, the process collection in electronic equipment is traversed first, is read
The corresponding status indicator of each process in process collection is taken, obtains and freezes process in frozen state;Then it monitors each
It is corresponding for receiving the communication interface of communication information to freeze process, detection is each to freeze whether process receives communication information.
Step 404, freeze process as target process for receive communication information, and wake up target process.
Step 406, when detecting that the target process in frozen state is waken up, then the resource for obtaining electronic equipment always accounts for
With rate.
When detecting that the process of freezing receives communication information, target process can be waken up.Target after being waken up
Process can normally receive communication information, and respond.After target process is waken up, can control target process into
Enter a kind of resource constraint state, with the resource for the occupancy electronic equipment for preventing target process excessive.Electronic equipment is obtained first
The total occupancy of resource enters resource constraint state according to the total occupancy of resource to control target process.The total occupancy of resource refers to
Total occupation proportion of all processes to resource in electronic equipment.Electronic equipment operation during can with real-time statistics it is each into
Then the addition of the resources occupation rate of processes all in electronic equipment is obtained the total occupancy of resource by the resources occupation rate of journey.
Specifically, electronic equipment storage can monitor journal file in default storage address, according to monitoring log text
The total occupancy of the available CPU of part.Several sub-folders are also stored in the default storage address simultaneously, these sub-folders
In store each process log file.Process log file has recorded process from the practival operating condition opened to current time
Variation, according to these process log files can obtain the process occupied by cpu resource the case where, process can be obtained
CPU usage.
For example, in android system, the monitoring day of the storage total occupied information of CPU can be read in/proc catalogue
Will file.Wherein, multiple sub-folders are further comprised under/proc catalogue, it is corresponding that each process is stored in these sub-folders
CPU occupied information process log file.The file of the monitoring journal file stored in/proc catalogue is entitled " stat " ,/
Process log file is stored in sub-folder in proc catalogue, the file of process log file is entitled " stat "./ proc mesh
Stat file under record has recorded total occupied information of CPU, and the stat file in sub-folder under/proc catalogue has recorded respectively
The CPU occupied information of a process.For example, the stat file under/proc/pid catalogue has recorded the CPU occupied information of PID process.
Electronic equipment can be with the occupancy of the resources such as real-time statistics memory, hardware, Internet resources, IO, such as is passing through
The information for reading file "/proc/meminfo " can obtain the memory amount of mobile phone, and pass through
ActivityManager.getMemoryInfo (ActivityManager.MemoryInfo) method it is available it is current can
With amount of ram, the total occupancy of current memory then can be calculated by free memory amount and memory amount.In android system
In can run top order directly to count the occupancy of the resources such as CPU, memory, IO.
Step 408, it if the total occupancy of resource is more than the second occupancy threshold, controls the target process being waken up and enters money
Source restriction state.
When the total occupancy of the resource of electronic equipment is more than the second occupancy threshold, it is believed that the surplus resources ratio of electronic equipment
It is less, it will affect the normal operation of terminal.Target process needs to wake up target process to receive after receiving communication information
And handle communication information.In the case where the resource of electronic equipment is more nervous, the excessive occupancy of target process is provided in order to prevent
Source influences the operation of other processes, can control the target process being waken up and enters resource constraint state.In resource constraint shape
The resource that the process of state is able to use is limited, just will not influence the operation of other processes in this way.For example, can be in cell phone system
The resources occupation rates such as the CPU, memory, IO for controlling target process by cgroups (control groups, control group), i.e.,
Control target process enters resource constraint state.
Specifically, the occupancy situation to resource can be controlled according to the priority of target process, pre-establish target into
The priority of journey and the corresponding relationship of resource constraint rank, then control according to the priority of target process into resource constraint
The resource constraint rank of state.The priority of target process refers to the significance level of target process, can be configured in advance.Example
Such as, system-level process can be set to higher priority, third party's process is set as lower priority.Or it can root
The priority of application program is configured according to the type of process, the process of instant messaging class application program is set as higher
Priority, the process of tool-class application program are set as lower priority.Process can also be set according to other standards
Priority, herein without specifically limiting.Resource constraint rank refers to the degree limited the resource that process uses.It obtains
The corresponding priority of target process obtains corresponding resource constraint rank according to priority;Control the target process that is waken up into
Enter the corresponding resource constraint state of resource constraint rank.For example, the process of correspondence system grade can be set to slight resource constraint,
Third party's process can be set to depth resource constraint.
It is understood that the resource that different processes may rely on will be different, then can be relied on according to process
Resource type controls the resource constraint type of process.For example, the Internet resources that some local processes may use are fewer, and
Some Internet resources for needing the process for carrying out network communication to use can relatively it is more, can it is more to Internet usage into
The limitation of Cheng Jinhang Internet resources.Specifically, the resource occupation historical data for obtaining target process, according to resource occupation history number
According to the corresponding dependence resource type of acquisition target process, and be waken up according to dependence resource type and the control of resource constraint rank
Target process enters resource constraint state.Wherein, resource occupation historical data refers to that process history occupies the data of resource, relies on
Resource type is the type of the resource relied on when process operation.
In one embodiment, the corresponding relationship of resource total occupancy and resource constraint rank can also be established.Work as resource
When total occupancy is more than the second occupancy threshold, resource constraint rank is obtained according to the total occupancy of resource, then control is waken up
Target process enter the corresponding resource constraint state of resource constraint rank.For example, the second occupancy threshold is 50%, then work as money
When the total occupancy in source is more than 50%, the total occupancy of resource is divided into 50%~60%, 60%~80%, 80%~100% etc.
Then three occupancy levels respectively correspond slight resource constraint rank, common resources limitation rank and depth resource constraint rank
Equal three grades, according to the available corresponding resource constraint rank of the total occupancy of resource.It is understood that can be combined with
The priority of resource total occupancy and target process, to obtain resource constraint rank.
Step 410, the user group process of frozen state is obtained with the same user group of target process and be in, and wakes up user
Group process.
In one embodiment, user group (group) is exactly the aggregate of the user (user) with same characteristic features, will be more
A user is defined as a user group, then the permission all having the same of all users in the user group.It can be with by user group
It realizes management of the multi-user to the operating right of file or target, the behaviour of file or catalogue can be defined by user group first
Make permission, so that the user in user group has operating right to file or catalogue.For example, multiple users to be allowed all to have the right
Limit, then this multiple user group can be assigned to a user group, then modifies the modification of this file to modify a file
Permission makes user group have modification authority, then all users of the user group can modify to this file.User
Corresponding relationship with user group is: the relationships such as one-to-one, many-one, one-to-many or multi-to-multi.
Generally, process can be judged by the corresponding UID of process (User Identification, user identifier)
It is to be created by which user.The user identifier of target process is obtained first, is then traversed all processes in electronic equipment, is obtained
The user identifier of each process is compared with the user identifier of target process, obtains by the user identifier for taking each process
Take user identifier process identical with the user identifier of target process, and the process for frozen state being in acquired process
As user group process.For example, store all processes in system in cgroup.procs file in Linux system
UID can obtain the UID of a process by function getuid ().The UID for obtaining target process first, then traverses
The UID of each process in cgroup.procs file obtains identical with the UID of the target process process of UID, as and target into
The process of the same user group of journey.
Step 412, detection user group process whether there is corresponding communication interface, and control user group according to testing result
Process enters resource constraint state.
After user group process is waken up, detection user group process whether there is corresponding communication interface, and to user group into
Row classification, carries out different resource constraints for sorted user group process.Specifically, will be present the user group of communication interface into
Cheng Zuowei the first user group process, and control the first user group process and enter first resource restriction state;There will be no communications to connect
The user group process of mouth controls second user group process and enters Secondary resource restriction state as second user group process.The
One resource constraint state and Secondary resource restriction state can be the resource constraint state of different type and degree, such as the first money
Source restriction state can be the depth limit to Internet resources, and Secondary resource restriction state can be the slight limit to cpu resource
System etc., is not particularly limited herein.
Step 414, the timing since at the time of target process is waken up.
Step 416, when timing duration is more than the first duration threshold value, then obtaining the target process last time receives communication information
At the time of to current time communication time.
After target process is waken up, communication information may be constantly received.In order to allow target process to be in for a long time
Wake-up states, and device resource is occupied, a wake-up duration can be set.The timing since at the time of target process is waken up,
When timing duration is more than the first duration threshold value, the target process of wake-up is freezed.In addition, since electronic equipment is continuous
Ground receives communication information, in order to not influence the operation of target process, when target process continuously receives communication information, can allow mesh
Mark process continues to communication information.Electronic equipment can recorde target progress and receive the time of communication information every time, and count
The target process last time is calculated at the time of receive communication information to the communication time at current time.For example, target process is last
At the time of receiving communication information for 12 points 02 second 10 minutes, current time be 12 points 10 seconds 14 minutes, then when the communication being calculated
It is long just for 4 points 08 second.
Step 418, if communication time is more than the second duration threshold value, freeze target process and user group process.
When growing when in communication more than the second duration threshold value, it is believed that the frequency that the target process receives communication information is lower, then
It can freeze the target process, and freeze user group process simultaneously.Fig. 5 is the signal of process process flow in one embodiment
Figure.As shown in figure 5, whether real-time monitor process receives communication information when process is in frozen state.If so, should
Process wakes up, and the process for controlling wake-up enters resource constraint state.When wake-up duration is more than the first duration threshold value, freeze this
Process.When process is in frozen state, process is not run, and the corresponding resources occupation rate of process will not generate variation.In wake-up
State and when in resource constraint state, process can be run, but the part resource of equipment can only be occupied in operational process.
Process handling method provided by the above embodiment, when detect in frozen state target process and user group into
Journey is waken up, then obtains the total occupancy of resource of electronic equipment, and when the total occupancy of resource is more than the second occupancy threshold, control
It makes the target process being waken up and user group process enters resource constraint state.And when the duration being waken up is more than threshold value, obtain
The corresponding communication time of target process is taken, is again freezed target process and user group process according to communication time.In this way
It can guarantee to quickly enter a kind of resource constraint state after process is waken up, to avoid being waken up using excessive occupancy equipment
Resource.Simultaneously when the duration that process is waken up is more than threshold value, allows process to be again introduced into frozen state, avoid process to resource
It occupies for a long time, further reduces resources occupation rate.
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.
Fig. 6 is the structural block diagram of the process processing unit of one embodiment.As shown in fig. 6, the process processing unit includes
Process wake-up module 602, timing module 604 and process freeze module 606.Wherein:
Process wake-up module 602, for when detecting that the target process in frozen state is waken up, then control to be waken up
The target process enter resource constraint state, wherein the process in the resource constraint state is at runtime to electronics
The resources occupation rate of equipment is less than the first occupancy threshold.
Timing module 604, for the timing since at the time of the target process is waken up.
Process freezes module 606, for being more than the first duration threshold value when timing duration, then freezes the target process.
Process processing unit provided by the above embodiment, when detecting that the target process in frozen state is waken up, then
Control the target process that is waken up and enter resource constraint state, and when the duration being waken up is more than threshold value, again by target into
Cheng Jinhang freezes.It can guarantee to quickly enter a kind of resource constraint state after process is waken up in this way, be answered to avoid what is be waken up
With excessive occupancy device resource.Simultaneously when the duration that process is waken up is more than threshold value, process is allowed to be again introduced into frozen state,
It avoids process from occupying the long-time of resource, further reduces resources occupation rate.
Fig. 7 is the structural schematic diagram of process processing unit in another embodiment.As shown in fig. 7, the process processing unit
700 include that interface monitoring module 702, process wake-up module 704, timing module 706 and process freeze module 708.Wherein:
Interface monitors module 702, corresponding for receiving the communication interface of communication information for monitoring each process of freezing,
The process of freezing is the process in frozen state;Freeze process as target process for receive communication information, and calls out
It wakes up the target process.
Process wake-up module 704, for when detecting that the target process in frozen state is waken up, then control to be waken up
The target process enter resource constraint state, wherein the process in the resource constraint state is at runtime to electronics
The resources occupation rate of equipment is less than the first occupancy threshold.
Timing module 706, for the timing since at the time of the target process is waken up.
Process freezes module 708, for being more than the first duration threshold value when timing duration, then freezes the target process.
Process processing unit provided by the above embodiment, when detecting that the target process in frozen state is waken up, then
Control the target process that is waken up and enter resource constraint state, and when the duration being waken up is more than threshold value, again by target into
Cheng Jinhang freezes.It can guarantee to quickly enter a kind of resource constraint state after process is waken up in this way, be answered to avoid what is be waken up
With excessive occupancy device resource.Simultaneously when the duration that process is waken up is more than threshold value, process is allowed to be again introduced into frozen state,
It avoids process from occupying the long-time of resource, further reduces resources occupation rate.
In one embodiment, process wake-up module 704 is also used to obtain the total occupancy of resource of electronic equipment;If described
The total occupancy of resource is more than the second occupancy threshold, then controls the target process being waken up and enter resource constraint state.
In one embodiment, process wake-up module 704 is also used to obtain the corresponding priority of the target process, according to
The priority obtains corresponding resource constraint rank;It controls the target process being waken up and enters the resource constraint rank
Corresponding resource constraint state.
In one embodiment, process wake-up module 704 is also used to obtain and the same user group of the target process and place
In the user group process of frozen state, and wake up the user group process;The user group process is detected with the presence or absence of corresponding
Communication interface, and control the user group process according to testing result and enter resource constraint state.
In one embodiment, process wake-up module 704 is also used to will be present the user group process of communication interface as
One user group process, and control the first user group process and enter first resource restriction state;There will be no communication interfaces
User group process controls the second user group process and enters Secondary resource restriction state as second user group process.
In one embodiment, process freezes module 708 and is also used to obtain the target process last time to receive communication
To the communication time at current time at the time of message;If the communication time is more than the second duration threshold value, freeze the target
Process.
In one embodiment, process freezes module 708 and is also used to freeze the target process and user group 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.
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 in terminal or server.The program module that the computer program is constituted is storable in terminal
Or on the memory of server.When the computer program is executed by processor, method described in the embodiment of the present application is realized
Step.
The embodiment of the present application also provides a kind of computer readable storage mediums.One or more is executable comprising computer
The non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processors
When, so that the processor executes process handling method provided by the above embodiment.
A kind of computer program product comprising instruction, when run on a computer, so that computer execution is above-mentioned
The process handling method that embodiment provides.
The embodiment of the present application also provides a kind of electronic equipment.As shown in figure 8, for ease of description, illustrating only and this
Apply for the relevant part of embodiment, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.The electronics is set
It include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS for that can be
Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, wearable device, using electronic equipment as mobile phone
For:
Fig. 8 is the block diagram of the part-structure of mobile phone relevant to electronic equipment provided by the embodiments of the present application.With reference to Fig. 8,
Mobile phone includes: radio frequency (Radio Frequency, RF) circuit 810, memory 820, input unit 830, display unit 840, passes
Sensor 850, voicefrequency circuit 860, Wireless Fidelity (wireless fidelity, WiFi) module 870, processor 880, Yi Ji electricity
The components such as source 890.It, can be with it will be understood by those skilled in the art that handset structure shown in Fig. 8 does not constitute the restriction to mobile phone
Including perhaps combining certain components or different component layouts than illustrating more or fewer components.
Wherein, RF circuit 810 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 880;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 810 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 820 can be used for storing software program and module, and processor 880 is stored in memory 820 by operation
Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 820 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 820 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 830 can be used for receiving the number or character information of input, and generate the user setting with mobile phone 800
And the related key signals input of function control.Specifically, input unit 830 may include touch panel 831 and other inputs
Equipment 832.Touch panel 831, 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 831 or near touch panel 831),
And corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 831 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 880, and can receive order that processor 880 is sent and be executed.In addition,
Touch panel 831 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface
Plate 831, input unit 830 can also include other input equipments 832.Specifically, other input equipments 832 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 840 can be used for showing information input by user or be supplied to user information and mobile phone it is various
Menu.Display unit 840 may include display panel 841.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 841.In one embodiment, touch panel 831 can cover display panel 841, when touch panel 831 is examined
After measuring touch operation on it or nearby, processor 880 is sent to determine the type of touch event, is followed by subsequent processing device
880 provide corresponding visual output according to the type of touch event on display panel 841.Although in fig. 8, touch panel
831 and display panel 841 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 831 and display panel 841 and that realizes mobile phone output and input function.
Mobile phone 800 may also include at least one sensor 850, 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 841, and proximity sensor can close display panel when mobile phone is moved in one's ear
841 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 860, loudspeaker 861 and microphone 862 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 861, be converted to sound by loudspeaker 861 by road 860
Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 862, is turned after being received by voicefrequency circuit 860
It is changed to audio data, then by after the processing of audio data output processor 880, another mobile phone can be sent to through RF circuit 810, or
Person exports audio data to memory 820 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 870
Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 8 is shown
WiFi module 870, but it is understood that, and it is not belonging to must be configured into for mobile phone 800, it can according to need and omit.
Processor 880 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 820, and call and be stored in memory 820
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 880 may include one or more processing units.In one embodiment, processor 880 can integrate application processor and modulation
Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc.;Modulation /demodulation processing
Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 880.
Mobile phone 800 further includes the power supply 890 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity
Management system and processor 880 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system
The functions such as management.
In one embodiment, mobile phone 800 can also include camera, bluetooth module etc..
In the embodiment of the present application, processor 880 included by the electronic equipment executes the calculating of storage on a memory
The step of realizing process handling method provided by the above embodiment when machine program.
Any reference to memory, storage, database or other media used in this application may include non-volatile
And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled
Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory
(RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state 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) directly RAM (RDRAM), straight
Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
The limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the application
Protect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of process handling method characterized by comprising
When detecting that the target process in frozen state is waken up, then controls the target process being waken up and enter resource limit
State processed, wherein the process in the resource constraint state is at runtime to the resources occupation rate of electronic equipment less than first
Occupancy threshold;
The timing since at the time of the target process is waken up;
When timing duration is more than the first duration threshold value, then freeze the target process.
2. the method according to claim 1, wherein the method also includes:
It is corresponding for receiving the communication interface of communication information to monitor each process of freezing, the process of freezing is in freezing shape
The process of state;
Freeze process as target process for receive communication information, wakes up the target process.
3. the method according to claim 1, wherein the target process being waken up that controls enters resource
Restriction state includes:
Obtain the total occupancy of resource of electronic equipment;
If the total occupancy of resource is more than the second occupancy threshold, controls the target process being waken up and enter resource limit
State processed.
4. the method according to claim 1, wherein the target process being waken up that controls enters resource
Restriction state includes:
The corresponding priority of the target process is obtained, corresponding resource constraint rank is obtained according to the priority;
It controls the target process being waken up and enters the corresponding resource constraint state of the resource constraint rank.
5. freezing the target process the method according to claim 1, wherein described and including:
The target process last time is obtained at the time of receive communication information to the communication time at current time;
If the communication time is more than the second duration threshold value, freeze the target process.
6. the method according to any one of claims 1 to 5, which is characterized in that the method also includes:
Obtain with the same user group of the target process and be in frozen state user group process, and wake up the user group into
Journey;
The user group process is detected with the presence or absence of corresponding communication interface, and controls the user group process according to testing result
Into resource constraint state;
It is described to freeze the target process and include:
Freeze the target process and user group process.
7. according to the method described in claim 6, it is characterized in that, it is described control according to testing result the user group process into
Entering resource constraint state includes:
The user group process of communication interface will be present as the first user group process, and control the first user group process and enter
First resource restriction state;
There will be no the user group processes of communication interface as second user group process, and control the second user group process into
Enter Secondary resource restriction state.
8. a kind of process processing unit characterized by comprising
Process wake-up module, for when detecting that the target process in frozen state is waken up, then control be waken up it is described
Target process enters resource constraint state, wherein the process in the resource constraint state is at runtime to electronic equipment
Resources occupation rate is less than the first occupancy threshold;
Timing module, for the timing since at the time of the target process is waken up;
Process freezes module, for being more than the first duration threshold value when timing duration, then freezes the target process.
9. a kind of electronic equipment, including memory and processor, computer program, the computer are stored in the memory
When program is executed by the processor, so that the processor executes the process processing as described in any one of claims 1 to 7
The step of method.
10. 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 described in any one of claims 1 to 7 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711480466.6A CN109992360B (en) | 2017-12-29 | 2017-12-29 | Process processing method and device, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711480466.6A CN109992360B (en) | 2017-12-29 | 2017-12-29 | Process processing method and device, electronic equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109992360A true CN109992360A (en) | 2019-07-09 |
CN109992360B CN109992360B (en) | 2022-01-11 |
Family
ID=67109851
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711480466.6A Active CN109992360B (en) | 2017-12-29 | 2017-12-29 | Process processing method and device, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109992360B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110687998A (en) * | 2019-09-18 | 2020-01-14 | 华为技术有限公司 | Application management method and device |
CN111274008A (en) * | 2020-01-08 | 2020-06-12 | 百度在线网络技术(北京)有限公司 | Process control method, server and electronic equipment |
WO2024099017A1 (en) * | 2022-11-07 | 2024-05-16 | 蔚来移动科技有限公司 | Process management method, and electronic device and storage medium |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102713854A (en) * | 2012-03-15 | 2012-10-03 | 华为技术有限公司 | Method and apparatus for saving and restoring container state |
CN102736953A (en) * | 2011-04-08 | 2012-10-17 | 腾讯科技(深圳)有限公司 | System resource allocation method and equipment |
CN104503563A (en) * | 2014-12-30 | 2015-04-08 | 中科创达软件股份有限公司 | Electricity saving method and device of electronic equipment |
CN105159776A (en) * | 2015-08-03 | 2015-12-16 | 中科创达软件股份有限公司 | Process handling method and apparatus |
US20160224374A1 (en) * | 2012-06-21 | 2016-08-04 | Microsoft Technology Licensing, Llc | Performant runtime pause with no cpu utilization |
CN105975348A (en) * | 2016-05-31 | 2016-09-28 | 宇龙计算机通信科技(深圳)有限公司 | Memory optimization method, optimization device and terminal |
CN106250177A (en) * | 2016-07-26 | 2016-12-21 | 宇龙计算机通信科技(深圳)有限公司 | application program freezing method and system |
CN106293728A (en) * | 2016-08-04 | 2017-01-04 | 成都三零瑞通移动通信有限公司 | A kind of method for managing power supply of multitask TF crypto module |
CN106648849A (en) * | 2016-10-18 | 2017-05-10 | 上海传英信息技术有限公司 | Process freezing method and mobile terminal |
CN106774794A (en) * | 2016-11-30 | 2017-05-31 | 宇龙计算机通信科技(深圳)有限公司 | The processing method and processing device of terminal traffic |
CN107168803A (en) * | 2017-05-19 | 2017-09-15 | 努比亚技术有限公司 | A kind of cpu resource distribution method and terminal |
WO2017161638A1 (en) * | 2016-03-24 | 2017-09-28 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for freezing and waking up multiple systems |
-
2017
- 2017-12-29 CN CN201711480466.6A patent/CN109992360B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102736953A (en) * | 2011-04-08 | 2012-10-17 | 腾讯科技(深圳)有限公司 | System resource allocation method and equipment |
CN102713854A (en) * | 2012-03-15 | 2012-10-03 | 华为技术有限公司 | Method and apparatus for saving and restoring container state |
US20160224374A1 (en) * | 2012-06-21 | 2016-08-04 | Microsoft Technology Licensing, Llc | Performant runtime pause with no cpu utilization |
CN104503563A (en) * | 2014-12-30 | 2015-04-08 | 中科创达软件股份有限公司 | Electricity saving method and device of electronic equipment |
CN105159776A (en) * | 2015-08-03 | 2015-12-16 | 中科创达软件股份有限公司 | Process handling method and apparatus |
WO2017161638A1 (en) * | 2016-03-24 | 2017-09-28 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for freezing and waking up multiple systems |
CN105975348A (en) * | 2016-05-31 | 2016-09-28 | 宇龙计算机通信科技(深圳)有限公司 | Memory optimization method, optimization device and terminal |
CN106250177A (en) * | 2016-07-26 | 2016-12-21 | 宇龙计算机通信科技(深圳)有限公司 | application program freezing method and system |
CN106293728A (en) * | 2016-08-04 | 2017-01-04 | 成都三零瑞通移动通信有限公司 | A kind of method for managing power supply of multitask TF crypto module |
CN106648849A (en) * | 2016-10-18 | 2017-05-10 | 上海传英信息技术有限公司 | Process freezing method and mobile terminal |
CN106774794A (en) * | 2016-11-30 | 2017-05-31 | 宇龙计算机通信科技(深圳)有限公司 | The processing method and processing device of terminal traffic |
CN107168803A (en) * | 2017-05-19 | 2017-09-15 | 努比亚技术有限公司 | A kind of cpu resource distribution method and terminal |
Non-Patent Citations (2)
Title |
---|
JOOHYUN LEE等: "CAS: Context-Aware Background Application Scheduling in Interactive Mobile Systems", 《IEEE JOURNAL ON SELECTED AREAS IN COMMUNICATIONS 》 * |
王勇超: "移动设备能效与功耗优化策略研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110687998A (en) * | 2019-09-18 | 2020-01-14 | 华为技术有限公司 | Application management method and device |
WO2021052410A1 (en) * | 2019-09-18 | 2021-03-25 | 华为技术有限公司 | Application management method and apparatus |
CN111274008A (en) * | 2020-01-08 | 2020-06-12 | 百度在线网络技术(北京)有限公司 | Process control method, server and electronic equipment |
WO2024099017A1 (en) * | 2022-11-07 | 2024-05-16 | 蔚来移动科技有限公司 | Process management method, and electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109992360B (en) | 2022-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110008008A (en) | Applied program processing method and device, electronic equipment, computer readable storage medium | |
CN109144232A (en) | Process handling method and device, electronic equipment, computer readable storage medium | |
CN109992438A (en) | Information processing method, device, computer equipment and computer readable storage medium | |
CN109992398A (en) | Method for managing resource, device, mobile terminal and computer readable storage medium | |
CN110018904A (en) | Information processing method, device, computer equipment and computer readable storage medium | |
CN110032321A (en) | Applied program processing method and device, electronic equipment, computer readable storage medium | |
CN109992370A (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 | |
CN110032267A (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
CN110018900A (en) | Internal memory processing method and device, electronic equipment, computer readable storage medium | |
CN109992367A (en) | Application processing method and device, electronic equipment, computer readable storage medium | |
CN109992965A (en) | Process handling method and device, electronic equipment, computer readable storage medium | |
CN108616653A (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
CN110045809A (en) | Information processing method, device, computer equipment and computer readable storage medium | |
CN109992397A (en) | Process handling method and device, electronic equipment, computer readable storage medium | |
CN110018903A (en) | Method for managing resource, device, mobile terminal and computer readable storage medium | |
CN104424211A (en) | Microblog-based service data release method, device and system | |
CN109992380A (en) | Applied program processing method and device, electronic equipment, computer readable storage medium | |
CN110032429A (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
CN109992399A (en) | Method for managing resource, device, mobile terminal and computer readable storage medium | |
CN109992360A (en) | Process handling method and device, electronic equipment, computer readable storage medium | |
CN109992323A (en) | Process handling method and device, electronic equipment, computer readable storage medium | |
CN110018905A (en) | Information processing method, device, computer equipment and computer readable storage medium | |
CN110032439A (en) | Method for managing resource, device, mobile terminal and 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 | ||
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 |