CN109358961A - A kind of resource regulating method and its device and the device with store function - Google Patents
A kind of resource regulating method and its device and the device with store function Download PDFInfo
- Publication number
- CN109358961A CN109358961A CN201810925055.1A CN201810925055A CN109358961A CN 109358961 A CN109358961 A CN 109358961A CN 201810925055 A CN201810925055 A CN 201810925055A CN 109358961 A CN109358961 A CN 109358961A
- Authority
- CN
- China
- Prior art keywords
- resource
- cpu
- occupancy
- current
- processing unit
- 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/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
-
- 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
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/5021—Priority
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Supply And Distribution Of Alternating Current (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of resource regulating method and its device and with the device of store function, the resource regulating method includes: the total occupancy of Current resource of the central processing unit in acquisition system, judges whether the total occupancy of Current resource is greater than or equal to preset central processing unit resource alarm activation thresholding;If it is, according to the process in the sequence of process priority from low to high gradually limitation system to the occupancy of central processing unit.By the above-mentioned means, the present invention can ensure system function smoothly, user experience is improved.
Description
Technical field
The present invention relates to operating system fields, more particularly to a kind of resource regulating method and its device and have storage function
The device of energy.
Background technique
In linux system, while running multiple processes is very universal phenomenon.But for specific Linux equipment
For, cpu resource is limited, and to run multiple or even unlimited possible process, the scheduling for necessarily facing cpu resource is asked
Topic, if disregarded, it may appear that important process cannot get due cpu resource guarantee, to cause very poor user's body
It tests.
Summary of the invention
The invention mainly solves the technical problem of providing a kind of resource regulating method and its device and there is store function
Device, it can be ensured that system function smoothly, improve user experience.
In order to solve the above technical problems, one technical scheme adopted by the invention is that: a kind of resource regulating method is provided, is wrapped
Include: the total occupancy of the Current resource of the central processing unit in acquisition system judges whether the total occupancy of the Current resource is greater than
Or it is equal to preset central processing unit resource alarm and activates thresholding;If it is, the sequence according to process priority from low to high
The process in the system is gradually limited to the occupancy of the central processing unit.
In order to solve the above technical problems, another technical solution used in the present invention is: a kind of resource scheduling device is provided,
It include: the processor being mutually coupled, memory, the memory is for storing program data, and the processor is for running institute
Program data is stated to realize method as described above.
In order to solve the above technical problems, another technical solution used in the present invention is: providing a kind of with store function
Device, be stored with program data, described program data can be performed to realize the step in method as described above.
The beneficial effects of the present invention are: be in contrast to the prior art, the present invention is detecting that CPU Current resource always accounts for
When exceeded with rate, according to the process in the sequence of process priority from low to high gradually limitation system to the occupancy of CPU, pass through
The low process of first limit priority to discharge the resource of part CPU, and then transports the occupation rate of CPU for the high process of priority
Row provides enough cpu resource guarantees, it can be ensured that system operates normally, and improves user experience.
Detailed description of the invention
Fig. 1 is the flow diagram of the first embodiment of resource regulating method provided by the invention;
Fig. 2 is the process of process in limitation system provided by the invention to an embodiment of the method for the occupancy of CPU
Schematic diagram;
Fig. 3 is the flow diagram of the second embodiment of resource regulating method provided by the invention;
Fig. 4 is the flow diagram of the 3rd embodiment of resource regulating method provided by the invention;
Fig. 5 is the flow diagram of the fourth embodiment of resource regulating method provided by the invention;
Fig. 6 is an implementation of the releasing provided by the invention to the process in system to the method for the limitation of the occupancy of CPU
The flow diagram of example;
Fig. 7 is the flow diagram of the 5th embodiment of resource regulating method provided by the invention;
Fig. 8 is the flow diagram of the sixth embodiment of resource regulating method provided by the invention;
Fig. 9 is the structural schematic diagram of an embodiment of resource scheduling device provided by the invention;
Figure 10 is the structural schematic diagram of an embodiment of the device provided by the invention with store function.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment belongs to the scope of protection of the invention.
Referring to Fig. 1, Fig. 1 is the flow diagram of the first embodiment of resource regulating method provided by the invention.This hair
The resource regulating method of bright offer includes:
S101: the total occupancy of Current resource of the central processing unit in system is periodically acquired.
CPU (Central Processing Unit, centre in a specific implement scene, in acquisition system
Manage device) the total occupancy of Current resource.In this implement scene, this method is periodically executed, in other implement scenes, this
Method can also be condition and set out execution, such as detect that user sets out manually or cpu temperature is higher than preset threshold etc..
S102: judge whether the total occupancy of the Current resource is greater than or equal to preset central processing unit resource alarm and swashs
Valve limit.
In a specific implement scene, by the total occupancy of Current resource and preset cpu resource alarm activation thresholding
It compares, judges whether the total occupancy of CPU Current resource is greater than or equal to preset cpu resource alarm activation thresholding, wherein
Cpu resource alarm activation thresholding refer to cpu resource can occupied maximum value, if the occupied resource of CPU be more than the maximum
Value, it will issue resource alarm, it is excessive to notify that the current cpu resource of user occupies, it will influence the operation of important process.
S103: if it is, gradually limiting the process pair in the system according to the sequence of process priority from low to high
The occupancy of the central processing unit.
In a specific implement scene, the total occupancy of Current resource is greater than or equal to preset central processing unit resource
Alarm activation thresholding, then it represents that the resources occupation rate of Current central processor is excessively high, may will affect certain important processes and obtain
Less than required resource, so that system be caused to run Caton.Therefore using process in limitation system to the method for the occupancy of CPU
Cpu resource is discharged, in this implement scene, according to the process in the sequence of process priority from low to high gradually limitation system
To the occupancy of CPU.In this way in the case where resource is extremely limited, the process that priority is low, importance is low is first limited to CPU
Occupancy, and the process that priority is high, importance is high can keep the occupancy of original couple of CPU as far as possible.
Specifically, referring to Figure 2, Fig. 2 is occupancy of the process in limitation system provided by the invention to CPU
One embodiment of method flow diagram.The method packet of process in limitation system provided by the invention to the occupancy of CPU
It includes:
S201: judge the highest for all the processes whether priority of the process of current scheduling is lower than in the system
Priority.
In a specific implement scene, the priority of all processes is obtained, and determine highest priority therein.Sentence
Whether the priority of the process of disconnected current scheduling is lower than the highest priority.In other implement scenes, one can be preassigned
A priority is highest priority.
S202: if be lower than, judge whether the process of current scheduling surpasses the occupancy of the central processing unit
Cross the guarantee Center Processing Unit Utilization of the process.
In a specific implement scene, the priority of the process of current scheduling is lower than the highest priority, then it represents that
The importance of the process of current scheduling is lower, can limit its occupancy to CPU, but when the process CPU usage is too low
When, the normal operation of the process may be will affect.Therefore, whether the process for judging current scheduling is more than this to the occupancy of CPU
The guarantee CPU usage of process, wherein guaranteeing that CPU usage refers to the required minimum CPU usage of process operation.
In other implement scenes, preassigning a priority is highest priority, if the process of current scheduling
Priority is higher than the specified highest priority, then does not limit occupancy of the process to CPU.
S203: if it does, then limiting the process to the occupancy of central processing unit.
After executing S202 or S203, according to the sequence of process priority from low to high, through being located at the current scheduling
Process of the subsequent process of process as new current scheduling, and above-mentioned S201-S203 is repeated, until the institute of the current scheduling
The priority for stating process is small not less than the total occupancy of resource of the highest priority or CPU of all processes in the system
Thresholding is activated in the preset central processing unit resource alarm.
In a specific implement scene, the process of current scheduling is more than the guarantee CPU of the process to the occupancy of CPU
Occupancy of the process of current scheduling to CPU is then restricted to the guarantee CPU usage of the process by occupancy.
In another implement scene, the executable number of steps of the process of available current scheduling, according to the stepping
The process of several pairs of current schedulings limits the occupancy of CPU, such as the executable number of steps of process of current scheduling is
3, then it is divided into the guarantee CPU usage that occupancy of the process of current scheduling to CPU is gradually restricted to the process by 3 steps.
In another implement scene, during occupancy of the process of gradually limitation current scheduling to CPU, often hold
Whether the process of a step of having gone limitation current scheduling all checks current CPU usage more than CPU the process of the occupancy of CPU
Resource alarm activates thresholding, if being not above cpu resource alarm activation thresholding, stops to the process to the occupancy of CPU
Limitation.
In other implement scenes, if the process of current scheduling is not above the guarantee of the process to the occupancy of CPU
CPU usage does not limit occupancy of the process to CPU then.
In this implement scene, it can be limited since the minimum process of priority, from low to high according to priority
Sequence gradually limit each process to the occupancy of CPU.In other implement scenes, it can be carried out since any one process
Limitation.
In this implement scene, after having executed in system process to the occupancy of CPU, other will be no longer carried out
Operation.But next cycle is waited, after getting total occupancy of current CPU, step S102-S103 is executed again.
In this implement scene, which is linux system, and in other implement scenes, which can also be other
Operating system, such as Windows system.
As can be seen from the above description, this implementation is by when detecting that the total occupancy of CPU Current resource is exceeded, according to process
Gradually the process in limitation system, can be in the operation that do not influence the course to the occupancy of CPU for the sequence of priority from low to high
In the case of be released effectively cpu resource, the process operation for giving priority high provides enough resource guarantees, it can be ensured that system operation
Smoothly, user experience is improved.
Referring to Fig. 3, Fig. 3 is the flow diagram of the second embodiment of resource regulating method provided by the invention.This hair
The resource regulating method of bright offer includes:
The total occupancy S_CpuUsageRate of S301:CPU Current resource >=cpu resource alarm activation thresholding G_
CpuAlarmThreshold。
In a specific implement scene, in one cycle, the total occupancy S_ of resource of current CPU is got
After CpuUsageRate, S_CpuUsageRate >=cpu resource alarm activation thresholding G_CpuAlarmThreshold is judged,
Wherein, G_CpuAlarmThreshold is preset cpu resource alarm activation thresholding.It indicates do not influencing current all processes
Operation in the case where, the permitted peak of the total occupancy of cpu resource.
S302: judge whether the current dispatch state SM_Status of system is equal to 1.
In a specific implement scene, S_CpuUsageRate >=G_CpuAlarmThreshold, table are detected
Show that the total occupancy of the resource of current CPU is excessively high, the trouble-free operation for the process that priority is high, importance is high may be will affect, because
This needs limits the occupancy of CPU each process of operation.In this implement scene, when judgement needs to limit each process
When limiting the occupancy of CPU, the value of SM_Status is read, obtains the current dispatch state of system.
In this implement scene, when SM_Status=0, expression system is currently in scheduling;Table when SM_Status=1
It is minimum to show that all processes to be scheduled have been restricted to the occupancy of CPU, that is, the guarantee CPU for being restricted to each process is occupied
Rate;It indicates to have released limitation of all processes to be scheduled to CPU usage when SM_Status=2.Detecting S_
When CpuUsageRate >=G_CpuAlarmThreshold, judge whether SM_Status is equal to 1, i.e. judgement needs to be dispatched
Process whether the occupancy of CPU has been restricted to it is minimum, if SM_Status=1, then it represents that the occupancy of CPU has been
It is the required minimum for maintaining current system operation, can not further discharges cpu resource, therefore execute step S313, knot
Shu Benci scheduling of resource.If SM_Status ≠ 1, then it represents that currently still there is process to be not limited to the occupancy of CPU minimum,
The resource of CPU can be discharged to the occupancy of CPU by limiting these processes, executes step S303.
S303: judge whether the priority serial number SM_ProcDispatchNum of the process of current scheduling is equal to null.
In a specific implement scene, if SM_ProcDispatchNum=null, indicate to appoint currently without scheduling
What process executes step S304, if SM_ProcDispatchNum ≠ null, then it represents that system is currently at dispatch state, SM_
The value of ProcDispatchNum is the priority serial number of the process of current scheduling, executes step S305.
S304: the priority serial number SM_ProcDispatchNum=lowest priority serial number G_ of the process of current scheduling is enabled
ProcPrioritylowestNum;
The true value SM_ProcLimitCpuRate=null for enabling current CPU usage be limited to.
In a specific implement scene, SM_ProcDispatchNum=null indicates any currently without dispatching
Process enables SM_ProcDispatchNum=G_ProcPrioritylowestNum, if as scheduling not yet starts, from excellent
The minimum process of first grade starts to dispatch, and enables SM_ProcLimitCpuRate=null, if as scheduling not yet starts, will work as
The true value that preceding CPU usage is limited to is sky, to insert suitable value when subsequent execution.Execute step S308.At this
In implement scene, system first obtains the priority serial number for needing the process of being dispatched, and finds out lowest priority serial number G_ therein
ProcPriority lowestNum.In other implement scenes, it is minimum preferential that a priority serial number can be preassigned
Grade serial number.
S305: judge whether the priority serial number SM_ProcDispatchNum of the process of current scheduling is more than or equal to highest
Priority serial number G_ProcPriorityHighestNum.
In a specific implement scene, system first obtains the priority serial number for needing the process of being dispatched, and finds out most
High priority serial number G_ProcPriorityHighestNum.In other implement scenes, a priority can be preassigned
Serial number highest priority serial number.In this implement scene, SM_ProcDispatchNum ≠ null, that is to say, that system is current
In scheduling of resource state, the value of SM_ProcDispatchNum is the priority serial number of the process of current scheduling.By SM_
ProcDispatchNum size compared with G_ProcPriorityHighestNum, in this implement scene, the priority of process
Serial number is bigger, then the priority of the process is lower, for example, priority serial number 99 process priority be lower than priority serial number
For the priority of 1 process.If SM_ProcDispatchNum >=G_ProcPriorityHighestNum, indicate current
The priority of the process of scheduling is less than or equal to highest priority, then can limit occupancy of the process to CPU, hold
Row step S307.If SM_ProcDispatchNum < G_ProcPriorityHighestNum, the process of current scheduling is indicated
Priority be higher than highest priority, then mean that all schedulable processes limit the occupancy of CPU, execute step
Rapid S306.
S306: the current dispatch state SM_Status=1 of system;
The priority serial number SM_ProcDispatchNum=null of the process of current scheduling;
The true value SM_ProcLimitCpuRate=null that current CPU usage is limited to.
In a specific implement scene, SM_ProcDispatchNum < G_ProcPriorityHighestNum.Cause
This, sets 1 for the value of SM_Status, and it is minimum to indicate that all processes to be scheduled have been restricted to the occupancy of CPU, enables
SM_ProcDispatchNum=null and SM_ProcLimitCpu Rate=null indicates that this scheduling of resource terminates, when
It is preceding no longer to dispatch other processes, step S313 is executed, this scheduling of resource is terminated.
S307: whether the true value SM_ProcLimitCpuRate for judging that current CPU usage is limited to is equal to
null。
In a specific implement scene, SM_ProcDispatchNum >=G_ProcPriorityHighestNum,
It needs to limit the occupancy of CPU the process of current scheduling, SM_ProcLimitCpuRate=null, indicate to working as
The process of preceding scheduling not yet limits the occupancy of CPU, executes step S308.If SM_ProcLimitCpuRate ≠
Null, then it represents that occupancy of the process of current scheduling to CPU is limited, the value of SM_ProcLimitCpuRate
The true value that the as current process is limited to the occupancy of CPU, executable step S309 are further limited.
S308: the true value SM_ProcLimitCpuRate=priority serial number that current CPU usage is limited to
The maximum occupancy L_ProcMaxCpuRate [SM_ProcDispatc to CPU of the process of SM_ProcDispatchNum
hNum]。
In a specific implement scene, if SM_ProcLimitCpuRate=null, SM_ is enabled
ProcLimitCpuRate=L_ProcMaxCpuRate [SM_ProcDispatchNum], the as current process is to CPU's
The true value that occupancy is limited to is occupying to the maximum of CPU for the process of priority serial number SM_ProcDispatchNum
Rate.
S309: whether the true value SM_ProcLimitCpuRate for judging that current CPU usage is limited to is greater than or waits
In the guarantee occupancy L_ProcMInCpuRate [SM_ to CPU of the process of priority serial number SM_ProcDispatchNum
ProcDispatchNum]。
In a specific implement scene, L_ProcMInCpuRate [SM_ProcDispatchNum] as runs excellent
To the minimum occupancy of CPU needed for the process of first grade serial number SM_ProcDispatchNum.If SM_ProcLimitCpuRate
>=L_ProcMInCpuRate [SM_ProcDispatchNum], then it represents that the process is higher than minimum occupancy to the occupancy of CPU
Rate executes step S310 and limits occupancy of the process to CPU, if SM_ProcLimitCpuRate < L_
ProcMinCpu Rate [SM_ProcDispatchNum], then it represents that then the process is lower than minimum occupancy to the occupancy of CPU
Rate cannot limit its occupancy to CPU again, execute step S312.
S310: the process of priority serial number SM_ProcDispatchNum is restricted to current CPU to the occupancy of CPU
The true value SM_ProcLimitCpuRate that occupancy is limited to.
In a specific implement scene, SM_ProcLimitCpuRate >=L_ProcMInCpuRate [SM_
ProcDispatchNum], which is higher than minimum occupancy to the occupancy of CPU, therefore by limit priority serial number SM_
Occupancy of the process of ProcDispatchNum to CPU.
S311:SM_ProcLimitCpuRate=SM_ProcLimitCpuRate-L_CpuDispat chStep [SM_
ProcDispatchNum];
The current dispatch state SM_Status=0 of system.
In a specific implement scene, L_CpuDispatchStep indicates stepping of the process in scheduling of resource
Number, SM_ProcLimitCpuRate=SM_ProcLimitCpuRate-L_CpuDispatchSte p [SM_
ProcDispatchNum] it indicates according to number of steps gradually to limit the process of priority serial number SM_ProcDispatchNum
Its occupancy to CPU.For example, by the L_ of the process of priority serial number SM_ProcDispatchNum
CpuDispatchStep is 3, then divides 3 steps that occupancy of the process to CPU is restricted to its L_ProcMinCpuRate.
After completing to limit occupancy of the process to CPU, 0 is set by the value of SM_Status, indicates system
It is currently in scheduling, then executes step S313, terminate this scheduling of resource for being directed to the process.
S312: the priority serial number SM_ProcDispatchNum-1 of the process of current scheduling;
The true value SM_ProcLimitCpuRate=null that current CPU usage is limited to;
The current dispatch state SM_Status=0 of system.
In a specific implement scene, SM_ProcLimitCpuRate < L_ProcMinCpuRate [SM_
ProcDispatchNum], which cannot further limit the occupancy of CPU, then subtracts SM_ProcDispatchNum
1, in next period, the limitation of 1 grade of process progress CPU usage high to priority will be executed.Enable SM_
ProcLimitCpuRate=null indicates to have completed the limitation of CPU usage the process in this scheduling of resource,
0 is set by the value of SM_Status, expression system is currently in scheduling, is then executed step S313, is terminated this resource tune
Degree.
S313:Exit.
Terminate this scheduling of resource.
In this implement scene, the resource regulating method is executed according to the fixed period, in other implement scenes, the money
Source dispatching method can trigger for event, for example, when detecting that priority is higher than the process initiation of preset threshold, or detect
When being higher than preset threshold to the occupancy of central processing unit, the resource regulating method is executed.
In this implement scene, which is linux system, and in other implement scenes, which can also be other
Operating system, such as Windows system.
As can be seen from the above description, the present embodiment is by detecting the total occupancy S_ of CPU Current resource
CpuUsageRate be more than cpu resource alarm activation thresholding G_CpuAlarmThreshold when, according to process priority from as low as
Gradually the process in limitation system can effectively release the occupancy of CPU to high sequence in the case where not influencing the course operation
Cpu resource is put, provides enough resource guarantees to the high important process operation of priority, it can be ensured that system function smoothly,
Improve user experience.
Referring to Fig. 4, Fig. 4 is the flow diagram of the 3rd embodiment of resource regulating method provided by the invention.This hair
The resource regulating method of bright offer includes:
S401: the total occupancy of Current resource of the central processing unit in system is periodically acquired.
S402: judge whether the total occupancy of the Current resource is greater than or equal to preset central processing unit resource alarm and swashs
Valve limit.
Step S401-S402 in the present embodiment and the step in the first embodiment of resource regulating method provided by the invention
Rapid S101-S102 is almost the same, and details are not described herein again.
S403: if the total occupancy of the Current resource is less than the central processing unit resource alarm and activates thresholding, sentence
Whether the total occupancy of the Current resource of breaking is greater than or equal to preset central processing unit resource security thresholding.
In a specific implement scene, other than default cpu resource alarm activation thresholding, also default cpu resource
Secure Threshold, cpu resource Secure Threshold is lower than cpu resource alarm activation thresholding.When judging that the total occupancy of CPU Current resource is small
When cpu resource alerts activation thresholding, the size of CPU Current resource total occupancy and cpu resource Secure Threshold is further judged.
S404: if the total occupancy of the Current resource is greater than or equal to the central processing unit resource security thresholding,
Maintain current scheduling of resource situation.
In a specific implement scene, the total occupancy of CPU Current resource is greater than or equal to cpu resource Secure Threshold,
And it is less than cpu resource alarm activation thresholding, then it represents that current cpu resource is abundant, needed for process operation important enough, and
There is no resource excess.There is no need to carry out scheduling of resource, current scheduling of resource situation is maintained.
In this implement scene, the resource regulating method is executed according to the fixed period, in other implement scenes, the money
Source dispatching method can trigger for event, for example, detecting that user manually boots the resource regulating method, or detect CPU
Temperature is more than preset threshold etc..In this implement scene, it is greater than or equal in described in this week total occupancy of interim Current resource
Central processor resource security thresholding maintains current scheduling of resource situation, in next cycle, will continue acquisition CPU and currently provides
The total occupancy in source repeats step S401-S404.
In this implement scene, which is linux system, and in other implement scenes, which can also be other
Operating system, such as Windows system.
As can be seen from the above description, the present embodiment detect the total occupancy of CPU Current resource in or be equal to cpu resource pacify
Air cock limit, and be less than cpu resource alarm activation thresholding when, maintain Current resource dispatch situation, it is ensured that cpu resource did not had
It remains and results in waste of resources, cpu resource can also be released effectively in the insufficient situation of cpu resource, run to important process
There is provided enough resource guarantees, it can be ensured that system function smoothly improves user experience.
Referring to Fig. 5, Fig. 5 is the flow diagram of the fourth embodiment of resource regulating method provided by the invention.This hair
The resource regulating method of bright offer includes:
S501: the total occupancy of Current resource of the central processing unit in system is periodically acquired.
S502: judge whether the total occupancy of the Current resource is greater than or equal to preset central processing unit resource alarm and swashs
Valve limit.
S503: if the total occupancy of the Current resource is less than the central processing unit resource alarm and activates thresholding, sentence
Whether the total occupancy of the Current resource of breaking is greater than or equal to preset central processing unit resource security thresholding.
Step S501-S503 in the present embodiment and the step in the 3rd embodiment of resource regulating method provided by the invention
Rapid S401-S403 is almost the same, and details are not described herein again.
S504: if the total occupancy of the Current resource is less than the central processing unit resource security thresholding, judge institute
State whether the total occupancy of Current resource is greater than or equal to preset central processing unit resource alarm cancellation thresholding.
In a specific implement scene, presets cpu resource alarm and cancel thresholding, it is small that thresholding is cancelled in cpu resource alarm
In cpu resource Secure Threshold.If the total occupancy of CPU Current resource is less than cpu resource Secure Threshold, then it represents that current cpu resource
It is very sufficient, limitation of some processes to CPU usage can be released.
S505: if the total occupancy of the Current resource is greater than or equal to the central processing unit resource alarm and cancels door
Limit is then gradually released to the process in the system according to the sequence of priority from high to low to the occupancy of central processing unit
Limitation.
In a specific implement scene, if the total occupancy of CPU Current resource is less than cpu resource Secure Threshold, still
It is alerted more than or equal to cpu resource and cancels thresholding, expression then indicates that current cpu resource is superfluous, can release some processes to CPU
The limitation of occupancy.In this implement scene, according to the sequence of priority from high to low gradually to the process in system to CPU's
The limitation of occupancy can allow the process that priority is high, importance is high preferentially to enjoy sufficient cpu resource, facilitate it is important into
Journey is gone on smoothly.
Specifically, Fig. 6 is please referred to, Fig. 6 is occupancy of the releasing provided by the invention to the process in system to CPU
Limitation method an embodiment flow diagram.Releasing provided by the invention is to the process in system to the occupancy of CPU
The method of the limitation of rate includes:
S601: judge whether the priority of the process of current scheduling is higher than lowest priority.
In a specific implement scene, the priority of all processes is obtained, and determine lowest priority therein.?
In other implement scenes, can preassign a priority is lowest priority.By the priority of the process of current scheduling with
Lowest priority is compared, and judges whether the priority of the process of current scheduling is higher than lowest priority.
S602: if it is, the process for then releasing current scheduling limits the occupancy of central processing unit.
In a specific implement scene, the priority of the process of current scheduling is higher than lowest priority, then releasing pair
Limitation of the process to the occupancy of CPU, such as the process can be restored to the maximum occupancy of CPU.In other implementation fields
Jing Zhong retains to the process if the priority of the process of preceding scheduling is higher than lowest priority to the limit of the occupancy of CPU
System.
In this implement scene, the resource regulating method is executed according to the fixed period, in other implement scenes, the money
Source dispatching method can trigger for event, for example, detecting that user manually boots the resource regulating method, or detect CPU
Temperature is more than preset threshold etc..In this implement scene, this week it is interim relieve a process to the limitation of CPU usage after
It will will continue to obtain the total occupancy of CPU Current resource, and repeat step S501- without other operations, in next cycle
S505。
In this implement scene, which is linux system, and in other implement scenes, which can also be other
Operating system, such as Windows system.
As can be seen from the above description, the total occupancy of resource is less than cpu resource Secure Threshold before detecting in the present embodiment,
And when being greater than or equal to the alarm of preset cpu resource and cancelling thresholding, gradually limit according to the sequence of priority from high to low described in
Process in system can preferentially make the process that priority is high, importance is high in cpu resource surplus to the occupancy of CPU
More cpu resources are occupied, the operational efficiency of important process can be improved, avoid the wasting of resources, improve user experience.
Referring to Fig. 7, Fig. 7 is the flow diagram of the 5th embodiment of resource regulating method provided by the invention.This hair
The resource regulating method of bright offer includes:
The total occupancy S_CpuUsageRate of S701:CPU Current resource >=cpu resource alarm activation thresholding G_
The total occupancy S_CpuUsageRate of CpuUnAlarmThreshold and CPU Current resource < cpu resource Secure Threshold G_
CpuSafeThreshold。
In a specific implement scene, detect G_CpuUnAlarmThreshold≤S_CpuUs ageRate <
It when G_CpuSafeThreshold, indicates that the total occupancy of the resource of current CPU is lower, is likely to result in the wasting of resources, therefore need
At least partly limitation of the process to CPU usage is released, to make full use of the resource of CPU.
S702: judge whether the current dispatch state SM_Status of system is equal to 2.
In this implement scene, when determining to need to release limitation of each process to the occupancy of CPU, it is current to read system
Dispatch state SM_Status value.
In this implement scene, when SM_Status=0, expression system is currently in scheduling;Table when SM_Status=1
It is minimum to show that all processes to be scheduled have been restricted to the occupancy of CPU, that is, the guarantee CPU for being restricted to each process is occupied
Rate;It indicates to have released limitation of all processes to be scheduled to CPU usage when SM_Status=2.Work as SM_Status=2
When, it needs to release its limitation occupied to CPU without process to be scheduled, executes step S709, terminate this scheduling of resource.When
When SM_Status ≠ 2, it is understood that there may be process to be scheduled can release its limitation to CPU usage, execute step S703.
S703: whether the priority serial number SM_ProcDispatchNum for the process dispatched before judgement is null.
In a specific implement scene, if SM_ProcDispatchNum=null, indicate to appoint currently without scheduling
What process executes step S704, if SM_ProcDispatchNum ≠ null, then it represents that system is currently at dispatch state, SM_
The value of ProcDispatchNum is the priority serial number of the process of current scheduling, executes step S705.
S704: the priority serial number SM_ProcDispatchNum=highest priority serial number G_ of the process of current scheduling is enabled
ProcPriorityhighestNum;
The current dispatch state SM_ProcLimitCpuRate=null of system.
In a specific implement scene, SM_ProcDispatchNum=null indicates any currently without dispatching
Process enables M_ProcDispatchNum=G_ProcPriorityhighestNum, if as scheduling not yet starts, from excellent
The first highest process of grade starts to dispatch, and executes step S707.In this implement scene, system, which first obtains, needs the process of being dispatched
Priority serial number, and find out highest priority serial number G_ProcPriorityhighestNum therein.In other implement scenes
In, a priority serial number highest priority serial number can be preassigned.When SM_Status=0, expression system is currently at
In scheduling.
S705: judge whether the priority serial number SM_ProcDispatchNum of the process of current scheduling is less than or equal to most
Low priority serial number G_ProcPriorityLowestNum.
In a specific implement scene, system first obtains the priority serial number for needing the process of being dispatched, and finds out most
Low priority serial number G_ProcPriorityLowestNum.In other implement scenes, a priority sequence can be preassigned
Number be highest priority serial number.In this implement scene, SM_ProcDispatchNum ≠ null, that is to say, that system is currently located
In scheduling of resource state, the value of SM_ProcDispatchNum is the priority serial number of the process of current scheduling.By SM_
ProcDispatchNum size compared with G_ProcPriorityLowestNum, in this implement scene, the priority of process
Serial number is bigger, then the priority of the process is lower, for example, priority serial number 99 process priority be lower than priority serial number
For the priority of 1 process.If SM_ProcDispatchNum≤G_ProcPriorityLowestNum, indicates current and adjust
The priority of the process of degree is greater than or equal to lowest priority, then can release limitation of the process to the occupancy of CPU.If
SM_ProcDispatchNum > G_ProcPriorityHigh estNum, indicate the process of current scheduling priority be lower than in
Lowest priority then means that all schedulable processes have been released from the limitation of the occupancy of CPU, executes step
S706。
S706: the dispatch state SM_Status=2 that system is current is enabled;
The priority serial number SM_ProcDispatchNum=null of the process of current scheduling;
The true value SM_ProcLimitCpuRate=null that current CPU usage is limited to.
In a specific implement scene, SM_ProcDispatchNum≤G_ProcPriorityLowestNum.
Therefore, 2 are set by the value of SM_Status, indicate that all processes to be scheduled have released the limitation of the occupancy of CPU,
SM_ProcDispatchNum=null is enabled, SM_ProcLimitCpu Rate=null is enabled, indicates that this scheduling of resource terminates,
Step 709 is executed, this scheduling of resource is terminated.
S707: it releases the process that number is SM_ProcDispatchNum and the occupancy of CPU is limited.
In a specific implement scene, SM_ProcLimitCpuRate≤G_ProcPriorityLowestNum,
Limitation of the process to CPU usage is then released, further, it can be somebody's turn to do to the maximum for it to CPU to the occupancy of CPU
Occupancy L_ProcMaxCpuRate [SM_ProcDispatc hNum].
S708: the priority serial number SM_ProcDispatchNum+1 of the process of current scheduling;
The true value SM_ProcLimitCpuRate=null that current CPU usage is limited to;
The current dispatch state SM_Status=0 of system.
In a specific implement scene, limitation of the process to the occupancy of CPU is released, then by SM_
ProcDispatchNum adds 1, will release the limitation of low 1 grade of the process progress CPU usage of priority in the next steps.It enables
SM_ProcLimitCpuRate=null indicates complete to the limitation to CPU usage of the process in this scheduling of resource
At, set 0 for the value of SM_Status, expression system is currently in scheduling, then execute step S709, terminate this money
Source scheduling.
S709:Exit.
Terminate this scheduling.
In this implement scene, the resource regulating method is executed according to the fixed period, in other implement scenes, the money
Source dispatching method can trigger for event, for example, when detecting that priority is higher than the process initiation of preset threshold, or detect
When being higher than preset threshold to the occupancy of central processing unit, the resource regulating method is executed.
In this implement scene, which is linux system, and in other implement scenes, which can also be other
Operating system, such as Windows system.
As can be seen from the above description, the present embodiment is detecting cpu resource alarm activation thresholding G_
The total occupancy S_CpuUs ageRate of CpuUnAlarmThreshold≤CPU Current resource < cpu resource Secure Threshold G_
When CpuSafeThreshold, since the process for having highest priority, according to priority from high in the end successively in deactivation system
Important process can be improved so that the process that priority is high, importance is high occupies more cpu resources in limitation of the process to CPU
Operational efficiency, avoid the wasting of resources, improve user experience.
Referring to Fig. 8, Fig. 8 is the flow diagram of the sixth embodiment of resource regulating method provided by the invention.This hair
The resource regulating method of bright offer includes:
S801: the total occupancy of Current resource of the central processing unit in system is periodically acquired.
S802: judge whether the total occupancy of the Current resource is greater than or equal to preset central processing unit resource alarm and swashs
Valve limit.
S803: if the total occupancy of the Current resource is less than the central processing unit resource alarm and activates thresholding, sentence
Whether the total occupancy of the Current resource of breaking is greater than or equal to preset central processing unit resource security thresholding.
S804: if the total occupancy of the Current resource is less than the central processing unit resource security thresholding, judge institute
State whether the total occupancy of Current resource is greater than or equal to preset central processing unit resource alarm cancellation thresholding.
Step S801-S804 in the present embodiment and the step in the fourth embodiment of resource regulating method provided by the invention
Rapid S501-S504 is almost the same, and details are not described herein again.
S805: if the total occupancy of system central processor resource is less than the system central processor resource alarm
Cancel thresholding, then releases all processes in the system and the occupancy of central processing unit is limited.
In a specific implement scene, cpu resource alarm cancels thresholding and is less than cpu resource Secure Threshold, when CPU is provided
When the total occupancy in source is less than cpu resource Secure Threshold, compared with alerting with cpu resource by the total occupancy of cpu resource and cancel thresholding.If
The total occupancy of cpu resource is less than cpu resource alarm and cancels thresholding, indicates that cpu resource is seriously superfluous, all processes in deactivation system
Limitation to the occupancy of CPU, to avoid cpu resource waste.
In this implement scene, the resource regulating method is executed according to the fixed period, in other implement scenes, the money
Source dispatching method can trigger for event, for example, detecting that user manually boots the resource regulating method, or detect CPU
Temperature is more than preset threshold etc..In this implement scene, this week it is interim relieve all processes to the limitation of CPU usage after
It will will continue to obtain the total occupancy of CPU Current resource, and repeat step S801- without other operations, in next cycle
S805。
In this implement scene, which is linux system, and in other implement scenes, which can also be other
Operating system, such as Windows system.
As can be seen from the above description, in the present embodiment when detect the total occupancy of cpu resource be less than cpu resource alarm cancel
When thresholding, limitation of all processes to the occupancy of CPU, avoids cpu resource from wasting in deactivation system.
Referring to Fig. 9, Fig. 9 is the structural schematic diagram of resource scheduling device provided by the invention.Resource scheduling device 10 wraps
Include: processor 11, memory 12 and telecommunication circuit 13, memory 12 are deposited for storing program data, processor 11 for running
Program data in reservoir 12 is communicated with to control telecommunication circuit 13 and executes following method:
CPU (Central in a specific implement scene, in a predetermined period, in acquisition system
Processing Unit, central processing unit) the total occupancy of Current resource, and by the total occupancy of Current resource and preset CPU
Resource alarm activation thresholding compares, and judges whether the total occupancy of CPU Current resource is greater than or equal to preset cpu resource and accuses
Alert activation thresholding, wherein cpu resource alarm activation thresholding refers to that cpu resource can occupied maximum value.
In this implement scene, this week interim total occupancy of CPU Current resource is alerted more than or equal to preset cpu resource
Thresholding is activated, indicates that the resources occupation rate of current CPU is excessively high, may will affect certain important processes cannot get required money
Source, so that system be caused to run Caton.Therefore according to the process in the sequence of process priority from low to high gradually limitation system
To the occupancy of CPU.
In another implement scene, other than default cpu resource alarm activation thresholding, also default cpu resource safety
Thresholding, cpu resource Secure Threshold is lower than cpu resource alarm activation thresholding.When judging that CPU Current resource always occupies in this period
When rate is less than cpu resource alarm activation thresholding, further judge that the total occupancy of CPU Current resource and cpu resource are pacified in this period
The size of air cock limit.If the total occupancy of CPU Current resource is greater than or equal to cpu resource Secure Threshold, current CPU is indicated
It is nervous that resource is fully utilized and there is no resources, then maintains current scheduling of resource situation.
In another implement scene, thresholding is cancelled in also default cpu resource alarm, and cpu resource alarm is cancelled thresholding and is less than
Cpu resource Secure Threshold.If the total occupancy of CPU Current resource is less than cpu resource Secure Threshold in this period, will be in this period
Compared with the total occupancy of cpu resource alerts with cpu resource and cancels thresholding, cancels thresholding if more than or equal to cpu resource alarm, indicate
It then indicates that current cpu resource is superfluous, limitation of some processes to CPU usage can be released.In this implement scene, according to excellent
Gradually the process in limitation system can allow priority is high, importance is high to the occupancy of CPU to the sequence of first grade from high to low
Process preferentially enjoys sufficient cpu resource, facilitates going on smoothly for important process.
In another implement scene, the total occupancy of CPU Current resource is less than cpu resource alarm cancellation door in this period
Limit indicates that cpu resource is seriously superfluous, limitation of all processes to the occupancy of CPU in deactivation system, to avoid cpu resource wave
Take.
As can be seen from the above description, the present embodiment is in a predetermined period, by by the total occupancy of CPU Current resource with
Preset cpu resource alarm activation thresholding, cpu resource Secure Threshold and cpu resource alarm are cancelled thresholding and are compared, according to than
Compared with result judge that the resource of current CPU is and to take corresponding counter-measure using nervous or superfluous, it is ensured that
When cpu resource anxiety, the high important process of priority can have sufficient cpu resource, and in cpu resource surplus, priority
The limitation that high important process can preferentially release to CPU usage may insure in this way to occupy more cpu resources
The trouble-free operation of system, and cpu resource is avoided to be wasted, it can effectively improve system working efficiency, improve user experience.
Referring to Fig. 10, Figure 10 is the structural representation of an embodiment of the device provided by the invention with store function
Figure.At least one program data 21 is stored in device 20 with store function, program data 21 is for executing such as Fig. 1-Fig. 8
Shown in scheduling of resource method.In one embodiment, the device with store function can be storage chip in terminal,
The tool of hard disk either other read-write storages such as mobile hard disk or flash disk, CD, can also be server etc..
As can be seen from the above description, the present invention can be in CPU with the program stored in the Installation practice of store function
When resource anxiety, the important process for allowing priority high has sufficient cpu resource, and in cpu resource surplus, priority
The limitation that high important process can preferentially release to CPU usage may insure in this way to occupy more cpu resources
The trouble-free operation of system, and cpu resource is avoided to be wasted, it can effectively improve system working efficiency, improve user experience.
It is different from the prior art, the present invention is alerted in the total occupancy of CPU Current resource more than or equal to preset cpu resource
When activating thresholding, according to the process in the sequence of process priority from low to high gradually limitation system to the occupancy of CPU;?
When cpu resource Secure Threshold is less than cpu resource alarm activation thresholding and is greater than or equal to cpu resource Secure Threshold, then maintain to work as
Preceding scheduling of resource situation.It is less than cpu resource Secure Threshold in the total occupancy of CPU Current resource, and is greater than or equal to cpu resource
When thresholding is cancelled in alarm, according to the process in the sequence of priority from high to low gradually limitation system to the occupancy of CPU;?
When the total occupancy of CPU Current resource is less than cpu resource alarm cancellation thresholding, occupancy of all processes to CPU in deactivation system
Limitation.In this way can be in cpu resource anxiety, the important process for allowing priority high has a sufficient cpu resource, and
When cpu resource surplus, the high important process of priority can preferentially release the limitation to CPU usage, to occupy more
Cpu resource, may insure the trouble-free operation of system in this way, and cpu resource is avoided to be wasted, and can effectively improve system work effect
Rate improves user experience.
Mode the above is only the implementation of the present invention is not intended to limit the scope of the invention, all to utilize this
Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, it is relevant to be applied directly or indirectly in other
Technical field is included within the scope of the present invention.
Claims (10)
1. a kind of resource regulating method characterized by comprising
Periodically acquire the total occupancy of Current resource of the central processing unit in system;
Judge whether the total occupancy of the Current resource is greater than or equal to preset central processing unit resource alarm activation thresholding;
If it is, gradually limiting the process in the system to the centre according to the sequence of process priority from low to high
Manage the occupancy of device.
2. the method according to claim 1, wherein it is described according to process priority sequence from low to high gradually
The process in the system is limited to the occupancy of the central processing unit, comprising:
Judge the highest priority for all the processes whether priority of the process of current scheduling is lower than in the system;
If be lower than, judge whether the process of current scheduling is more than the process to the occupancy of the central processing unit
Guarantee Center Processing Unit Utilization;
If it does, then limiting the process to the occupancy of central processing unit.
3. according to the method described in claim 2, it is characterized in that, the Center Processing Unit Utilization of the limitation process,
Include:
According to the number of steps of the process of current scheduling, the Center Processing Unit Utilization of the process is gradually limited.
4. the method according to claim 1, wherein the method further includes:
If the total occupancy of Current resource, which is less than the central processing unit resource alarm, activates thresholding, judge described current
Whether the total occupancy of resource is greater than or equal to preset central processing unit resource security thresholding;
If the total occupancy of Current resource is greater than or equal to the central processing unit resource security thresholding, maintain currently
Scheduling of resource situation.
5. according to the method described in claim 4, it is characterized in that, the method further includes:
If the total occupancy of Current resource is less than the central processing unit resource security thresholding, the Current resource is judged
Whether total occupancy, which is greater than or equal to preset central processing unit resource alarm, is cancelled thresholding;
If the total occupancy of Current resource, which is greater than or equal to the central processing unit resource alarm, cancels thresholding, according to excellent
The sequence of first grade from high to low gradually releases the limitation to the process in the system to the occupancy of central processing unit.
6. according to the method described in claim 5, it is characterized in that, described gradually limit according to the sequence of priority from high to low
The Center Processing Unit Utilization of process in the system, comprising:
Judge whether the priority of the process of current scheduling is higher than lowest priority;
If it is, the process for then releasing current scheduling limits the occupancy of central processing unit.
7. according to the method described in claim 5, it is characterized in that, the method further includes:
If the total occupancy of system central processor resource, which is less than the system central processor resource alarm, cancels thresholding,
All processes in the system are then released to limit the occupancy of central processing unit.
8. method according to claim 1-7, which is characterized in that the system is linux system.
9. a kind of resource scheduling device characterized by comprising processor, the memory being mutually coupled, the memory are used for
Program data is stored, the processor is for running described program data to realize such as the described in any item sides of claim 1-8
Method.
10. a kind of device with storage function, which is characterized in that be stored with program data, described program data can be performed
To realize such as the step in any one of claim 1-8 the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810925055.1A CN109358961B (en) | 2018-08-14 | 2018-08-14 | Resource scheduling method and device with storage function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810925055.1A CN109358961B (en) | 2018-08-14 | 2018-08-14 | Resource scheduling method and device with storage function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109358961A true CN109358961A (en) | 2019-02-19 |
CN109358961B CN109358961B (en) | 2021-12-21 |
Family
ID=65349979
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810925055.1A Active CN109358961B (en) | 2018-08-14 | 2018-08-14 | Resource scheduling method and device with storage function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109358961B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112291205A (en) * | 2020-10-13 | 2021-01-29 | 杭州迪普科技股份有限公司 | Control method and device for deep packet inspection service and computer equipment |
CN112328386A (en) * | 2021-01-05 | 2021-02-05 | 北京国科环宇科技股份有限公司 | Operating system process scheduling method, device, medium and electronic equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1571538A (en) * | 2004-05-10 | 2005-01-26 | 中兴通讯股份有限公司 | A method for performing system load control on mobile switch center |
US9063795B2 (en) * | 2012-12-19 | 2015-06-23 | International Business Machines Corporation | Adaptive resource usage limits for workload management |
CN106095556A (en) * | 2016-06-20 | 2016-11-09 | 惠州Tcl移动通信有限公司 | A kind of method and system controlling terminal processes |
CN106250216A (en) * | 2016-07-21 | 2016-12-21 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method clearing up internal memory and terminal |
CN107391259A (en) * | 2017-07-25 | 2017-11-24 | 广东欧珀移动通信有限公司 | Method for processing resource and device, computer-readable recording medium, mobile terminal |
CN107402808A (en) * | 2017-07-31 | 2017-11-28 | 广东欧珀移动通信有限公司 | process management method, device, storage medium and electronic equipment |
CN107704316A (en) * | 2017-08-04 | 2018-02-16 | 广东欧珀移动通信有限公司 | Applied program processing method, device, mobile terminal and storage medium |
CN107861812A (en) * | 2017-10-30 | 2018-03-30 | 江西博瑞彤芸科技有限公司 | A kind of internal memory method for cleaning |
-
2018
- 2018-08-14 CN CN201810925055.1A patent/CN109358961B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1571538A (en) * | 2004-05-10 | 2005-01-26 | 中兴通讯股份有限公司 | A method for performing system load control on mobile switch center |
US9063795B2 (en) * | 2012-12-19 | 2015-06-23 | International Business Machines Corporation | Adaptive resource usage limits for workload management |
CN106095556A (en) * | 2016-06-20 | 2016-11-09 | 惠州Tcl移动通信有限公司 | A kind of method and system controlling terminal processes |
CN106250216A (en) * | 2016-07-21 | 2016-12-21 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method clearing up internal memory and terminal |
CN107391259A (en) * | 2017-07-25 | 2017-11-24 | 广东欧珀移动通信有限公司 | Method for processing resource and device, computer-readable recording medium, mobile terminal |
CN107402808A (en) * | 2017-07-31 | 2017-11-28 | 广东欧珀移动通信有限公司 | process management method, device, storage medium and electronic equipment |
CN107704316A (en) * | 2017-08-04 | 2018-02-16 | 广东欧珀移动通信有限公司 | Applied program processing method, device, mobile terminal and storage medium |
CN107861812A (en) * | 2017-10-30 | 2018-03-30 | 江西博瑞彤芸科技有限公司 | A kind of internal memory method for cleaning |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112291205A (en) * | 2020-10-13 | 2021-01-29 | 杭州迪普科技股份有限公司 | Control method and device for deep packet inspection service and computer equipment |
CN112328386A (en) * | 2021-01-05 | 2021-02-05 | 北京国科环宇科技股份有限公司 | Operating system process scheduling method, device, medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109358961B (en) | 2021-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111444012B (en) | Dynamic resource regulation and control method and system for guaranteeing delay-sensitive application delay SLO | |
CN107066332B (en) | Distributed system and scheduling method and scheduling device thereof | |
US8321065B2 (en) | Method for controlling/regulating at least one task | |
US8954975B2 (en) | Task scheduling method for real time operating system | |
CN103631661A (en) | Internal storage management method and device | |
CN110737534B (en) | Task processing method and device and server | |
CN105824702A (en) | Method and terminal for managing program memory footprint | |
CN109358961A (en) | A kind of resource regulating method and its device and the device with store function | |
CN110196766B (en) | Task scheduling and processing method and device, storage medium and processor | |
US9639399B2 (en) | Method, apparatus and terminal for releasing memory | |
EP3376381A1 (en) | Resource management method and system, and computer storage medium | |
CN105760216A (en) | Multi-process synchronization control method | |
CN116028210B (en) | Resource scheduling method, electronic equipment and storage medium | |
CN101625650B (en) | Controlling a computer system having a processor including a plurality of cores | |
CN106293805A (en) | The method and device that program loads | |
CN114327894A (en) | Resource allocation method, device, electronic equipment and storage medium | |
CN114461353A (en) | Method, terminal and computer readable storage medium for adjusting thread priority | |
CN105323315B (en) | Application method for down loading, server and client based on mobile terminal | |
CN105930215A (en) | Control method and control device for mobile terminal | |
CN102597976B (en) | Self-adaptation time division multiplexing is from the memory reference of multi-processor core core | |
JP2008225641A (en) | Computer system, interrupt control method and program | |
CN110402574A (en) | The method of running gear during unavailable time section | |
CN114706663A (en) | Computing resource scheduling method, medium and computing device | |
CN111176848B (en) | Cluster task processing method, device, equipment and storage medium | |
CN105264499B (en) | Message treatment method, device and reception core in a kind of shared queue |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |