CN105005504A - Single-task mode implementation method and system of Android platform - Google Patents

Single-task mode implementation method and system of Android platform Download PDF

Info

Publication number
CN105005504A
CN105005504A CN201510457733.2A CN201510457733A CN105005504A CN 105005504 A CN105005504 A CN 105005504A CN 201510457733 A CN201510457733 A CN 201510457733A CN 105005504 A CN105005504 A CN 105005504A
Authority
CN
China
Prior art keywords
application
cpu
frequency
resource consumption
statistical form
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510457733.2A
Other languages
Chinese (zh)
Other versions
CN105005504B (en
Inventor
郭楚鹏
李阳
焉立峰
郭乐寿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN201510457733.2A priority Critical patent/CN105005504B/en
Publication of CN105005504A publication Critical patent/CN105005504A/en
Application granted granted Critical
Publication of CN105005504B publication Critical patent/CN105005504B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a single-task mode implementation method and system of an Android platform. An installed application in Android equipment is analyzed to judge the category and the degree of the resource consumption of the installed application, and a started application determines a CPU (Central Processing Unit) frequency required at present after a statistical result is stable. When a situation that the application of a high resource consumption type is in the presence is judged, the processing work of other tasks stops, and only the application with a high resource consumption type a pplication identifier operates to improve the an operation smoothness degree of the current application.

Description

A kind of single task mode implementation method of Android platform and system
Technical field
The present invention relates to Android device technical field, in particular a kind of single task mode implementation method of Android platform and system, be particularly useful for the scene that hardware resource is limited.
Background technology
Android device good can realize multitasking under normal circumstances, but continues to increase along with system loading, and user often can experience equipment and become card and pause.In this case, user needs manually to go to terminate some application, makes the state of System recover smoothness.
On the other hand, converter technique has been applied in Android device gradually.Main flow CPU in the market both provides the support to converter technique.From linux2.6, cpufreq subsystem is introduced in kernel.Cpufreq subsystem provides altogether five kinds of basic governors (i.e. manager) for user's choice for use, they are userspace(User space pattern respectively), conservative(conservative mode), the instant adjustment modes of ondemand(), powersave (energy saver mode) and performance(performance mode).What then the monitoring field of platform resource consumption had been developed is comparatively ripe.Therefore it is as follows to analyze governors defect:
1) the static governors such as powersave, performance lacks along with system loading change and the ability of adjustment.
2) this kind of dynamic governors of userspace often needs to use a sampled point, and along with the raising of sample frequency, itself just consumes system resource.
3) existing governors mainly regulates for CPU, when system bottleneck is IO or other non-CPU reasons, can not effectively improve application response speed.
Visible, this converter technique is normally passive, has mostly departed from the actual use scenes of user.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
In view of above-mentioned the deficiencies in the prior art, the object of the present invention is to provide a kind of single task mode implementation method and system of Android platform, be intended to solve Android device Yi Kadun when multitask processes simultaneously in prior art, cannot closed portion process automatically, or cannot automatically make CPU frequency of operation be converted to the defect being adapted to current system load.
Technical scheme of the present invention is as follows:
A single task mode implementation method for Android platform, wherein, comprises step:
When application is opened, judge whether this application has been present in resource consumption statistical form, and judge whether this application is the application of strong resource-hungry;
When this application has been present in resource consumption statistical form and this is applied as the application of strong resource-hungry, then current C PU is set to maximum operation frequency, and specifies operations of other application of timing cycle internal congestion;
When this be applied in maximum operation frequency to exceed working time specify timing cycle time, then perform the application of other communication classes.
The single task mode implementation method of described Android platform, wherein, also comprises:
When this be applied in do not exist in resource consumption statistical form time, then each CPU of multi-core CPU is all set to highest frequency, and judges currently to have started in application non-existent total number in resource consumption statistical form and whether be more than or equal to 1;
When total number equals 1, then obtain this and be applied in and specify the CPU in timing cycle to consume mean value, and this application and the CPU corresponding with this application are consumed mean value be increased to resource consumption statistical form;
Judging that the CPU of this application consumes mean value and whether is more than default cpu frequency threshold value, then this application in resource consumption statistical form being labeled as the application of strong resource-hungry when exceeding, and corresponding renewal resource consumption statistical form.
The single task mode implementation method of described Android platform, wherein, also comprises:
When total number is greater than 1, then blocks and start application;
Obtain this to be applied in and to specify the CPU in timing cycle to consume mean value, and this application and the CPU corresponding with this application are consumed mean value be increased to resource consumption statistical form;
Judging that the CPU of this application consumes mean value and whether is more than default cpu frequency threshold value, then this application in resource consumption statistical form being labeled as the application of strong resource-hungry when exceeding, and corresponding renewal resource consumption statistical form.
The single task mode implementation method of described Android platform, wherein, also comprises:
When this is applied in existence in resource consumption statistical form and this application is not applied for strong resource-hungry, then obtain current C PU frequency, statistics active user starts application, obtains all startup apply and required CPU frequency of operation summation according to resource consumption statistical form;
If when current C PU frequency is greater than required CPU frequency of operation summation, then reduce mxm. in multi-core CPU frequency, until the average frequency value of multi-core CPU reaches mean value corresponding to required CPU frequency of operation summation;
If when current C PU frequency is less than required CPU frequency of operation summation, then increase minimum in multi-core CPU frequency, until the average frequency value of multi-core CPU reaches mean value corresponding to required CPU frequency of operation summation.
The single task mode implementation method of described Android platform, wherein, in described resource consumption statistical form to each application all carry out APK title, the thread that APK is corresponding, the status indication position of corresponding each thread, APK CPU consumes mean value, the CPU of APK consumes currency, APK statistic behavior zone bit, APK statistics number, APK timing statistics, strong resource-hungry application identity position and communication class application identity position record.
The single task pattern of Android platform realizes a system, wherein, comprising:
Application judge module, during for applying unlatching, judges whether this application has been present in resource consumption statistical form, and judges whether this application is the application of strong resource-hungry;
Application controls module, for be present in when this application in resource consumption statistical form and this is applied as the application of strong resource-hungry time, be then maximum operation frequency by current C PU set of frequency, and specifying operations of other application of timing cycle internal congestion;
Overtime control module, when specifying timing cycle for exceeding working time when the maximum operation frequency that this is applied in CPU, then performs the application of other communication classes.
The single task pattern of described Android platform realizes system, wherein, also comprises:
Arrange and judge module, for when this be applied in do not exist in resource consumption statistical form time, then each CPU of multi-core CPU is all set to highest frequency, and judges currently to have started in application non-existent total number in resource consumption statistical form and whether be greater than 1;
First new opplication statistical module, for when total number equals 1, then obtains this and is applied in and specifies the CPU in timing cycle to consume mean value, and this application and the CPU corresponding with this application are consumed mean value is increased to resource consumption statistical form;
First statistical form update module, for judging that the CPU of this application consumes mean value and whether is more than default cpu frequency threshold value, is then labeled as the application of strong resource-hungry by this application in resource consumption statistical form when exceeding, and corresponding renewal resource consumption statistical form.
The single task pattern of described Android platform realizes system, wherein, also comprises:
Application obstructive root canal module, for when total number is greater than 1, then blocks other and starts application;
Second new opplication statistical module, is applied in specifies the CPU in timing cycle to consume mean value for obtaining this, and this application and the CPU corresponding with this application are consumed mean value is increased to resource consumption statistical form;
Second statistical form update module, for judging that the CPU of this application consumes mean value and whether is more than default cpu frequency threshold value, is then labeled as the application of strong resource-hungry by this application in resource consumption statistical form when exceeding, and corresponding renewal resource consumption statistical form.
The single task pattern of described Android platform realizes system, wherein, also comprises:
Frequency of operation acquisition module, for when this is applied in existence in resource consumption statistical form and this application is not applied for strong resource-hungry, then obtain current C PU frequency, statistics active user starts application, obtains all startup apply and required CPU frequency of operation summation according to resource consumption statistical form;
Frequency reducing module, if when being greater than required CPU frequency of operation summation for current C PU frequency, then reduces mxm. in multi-core CPU frequency, until the average frequency value of multi-core CPU reaches mean value corresponding to required CPU frequency of operation summation;
Raising frequency module, if when being less than required CPU frequency of operation summation for current C PU frequency, then increases minimum in multi-core CPU frequency, until the average frequency value of multi-core CPU reaches mean value corresponding to required CPU frequency of operation summation.
The single task pattern of described Android platform realizes system, wherein, in described resource consumption statistical form to each application all carry out APK title, the thread that APK is corresponding, the status indication position of corresponding each thread, APK CPU consumes mean value, the CPU of APK consumes currency, APK statistic behavior zone bit, APK statistics number, APK timing statistics, strong resource-hungry application identity position and communication class application identity position record.
Beneficial effect: the present invention analyzes having installed application in Android device, judges classification and the degree of its resource consumption, and after statistics is stable, by the cpu frequency that should be used for determining current needs started.To the work for the treatment of of other tasks be stopped when judging have strong resource-hungry apply, isolated operation this there is the application of strong resource-hungry application identities, improve the operation smoothness degree of current application.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the single task mode implementation method preferred embodiment of Android platform of the present invention;
Fig. 2 is the process flow diagram of the single task mode implementation method specific embodiment of Android platform of the present invention;
Fig. 3 is the structured flowchart that the single task pattern of Android platform of the present invention realizes system preferred embodiment.
Embodiment
The invention provides a kind of single task mode implementation method and system of Android platform, for making object of the present invention, technical scheme and effect clearly, clearly, the present invention is described in more detail below.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the process flow diagram of the single task mode implementation method preferred embodiment of Android platform of the present invention.As shown in Figure 1, it comprises the following steps:
When step S101, application are opened, judge whether this application has been present in resource consumption statistical form, and judge whether this application is the application of strong resource-hungry;
Step S102, when this application has been present in resource consumption statistical form and this is applied as the application of strong resource-hungry, is then maximum operation frequency by current C PU set of frequency, and has specified operations of other application of timing cycle internal congestion;
Step S103, when the maximum operation frequency that this is applied in CPU to exceed working time specify timing cycle time, then perform the application of other communication classes.
In embodiments of the invention, before execution step S101, need proceed as follows:
First, confirm whether processor supports frequency conversion.The ARM chip of current main flow all supports frequency conversion function.
Then recompilate kernel, configuration kernel CONFIG_CPU_FREQ option is the yes option in y(and yes/no), use the CPU frequency conversion function of kernel; Configuration modprobe cpufreq_userspace modulator option is y, namely adds user and regulates cpu frequency support; Configuration CONFIG_SCHED_MC modulator option is y, namely adds dispatching process support on kernel.
Finally, the new kernel of burning is compiled.
After CPUfreq subsystem has added, check current modulator and relevant configuration thereof in respective directories, path is /sys/devices/system/cpu/cpu0/cpufreq/, and obtains the highest frequency of CPU support from scheme business.
When application initial start-up after, then first judge which application belong to system application, and for user interpolation application set up resource consumption statistical form, the following content of member record of this resource consumption statistical form:
1) APK title;
2) thread that APK is corresponding;
3) the status indication position of corresponding each thread, the status indication position state of thread is divided into execution, blocks or halted state;
4) CPU of APK consumes mean value;
5) CPU of APK consumes currency;
6) APK statistic behavior zone bit, APK statistic behavior zone bit is divided into not to be added up, does not terminate and done state;
7) APK statistics number;
8) APK timing statistics;
9) strong resource-hungry application identity position;
10) communication class application identity position.
This resource consumption statistical form is for recording the process of application correspondence, the consumption degree of resource and some zone bits, and it is stored in flash, reads, and add when running non-statistics application after each start.After Android device start terminates, first the user's application started in inquiry system, traversal resource consumption statistical form, for each process of this application arranges corresponding state zone bit, and the accumulative user respectively started applies CPU consumption figures, reset cpu frequency, and in ActivityManagerService, monitor switch application action.
Therefore in step S101-S103, when judging that this is applied as the application of strong resource-hungry, then the systematic evaluation of Android device is to single task pattern, is maximum operation frequency by current C PU set of frequency, and opening timing device, for other tasks of period treatment.Traversal resource consumption statistical form, by turning down the priority of the corresponding process of other tasks, ensures that it is before timer terminates, and only performs current application.When timer terminates, whether there is communication type to apply in check system, if had, improve the priority of corresponding process, to ensure not affect user and extraneous communication, after its execution terminates, recover its priority to block this interprocess communication, reset timer, continue to perform predecessor's business.When user exits application, then terminate single task pattern.
As the preferred embodiment of the present invention, as shown in Figure 2, the single task mode implementation method of described Android platform also comprises:
Step S104, when this be applied in do not exist in resource consumption statistical form time, then each CPU of multi-core CPU is all set to highest frequency, and judges currently to have started in application non-existent total number in resource consumption statistical form and whether be greater than 1;
Step S105, when total number equals 1, then obtain this and be applied in and specify the CPU in timing cycle to consume mean value, and this application and the CPU corresponding with this application are consumed mean value be increased to resource consumption statistical form;
Step S106, judging that the CPU of this application consumes mean value and whether is more than default cpu frequency threshold value, then this application in resource consumption statistical form being labeled as the application of strong resource-hungry when exceeding, and corresponding upgrade resource consumption statistical form.
In step S104-S106, be then judge that this is applied in when not existing in resource consumption statistical form, the information of this application be added into the detailed process of resource consumption statistical form.Be specially:
First, the highest frequency that CPU is operated in acquiescence is set, and blocks other non-statistics application, guarantee that current C PU utilization factor increment is only relevant to non-statistics application.
Then, in resource consumption statistical form, inquire about APK statistic behavior zone bit, if this APK statistic behavior zone bit is-1, represent that statistics starts but do not terminate, if be that 0 representative is not added up, if be that 1 representative statistics terminates.When this is applied as and runs first, then will open counter, and after user operation being detected, extract CPU consumption mean value, and uplink and downlink communication data volume.If user exits application during monitoring, current statistic value will be preserved.Next time enters into this application again, and inquiry APK statistic behavior zone bit, proceeds statistics.When applied statistics terminates, enter the judgement of resource consumption type, exceed default cpu frequency threshold value when the CPU of application consumes mean value, then represent that this is applied as the application of strong resource-hungry, putting corresponding strong resource-hungry application identity position is 1.When up-downgoing letter data amount ratio close to 1 time (be similar to QQ chat) or close to 0 time (being similar to download), then represent that this is applied as communication type application, this kind of application needs its communication data of Timing Processing.
As the preferred embodiment of the present invention, as shown in Figure 2, the single task mode implementation method of described Android platform also comprises:
Step S107, when total number is greater than 1, then blocks other and start application;
Step S108, obtain this and be applied in and specify the CPU in timing cycle to consume mean value, and this application and the CPU corresponding with this application are consumed mean value be increased to resource consumption statistical form;
Step S109, judging that the CPU of this application consumes mean value and whether is more than default cpu frequency threshold value, then this application in resource consumption statistical form being labeled as the application of strong resource-hungry when exceeding, and corresponding upgrade resource consumption statistical form.
Step S107-S109 judges the current embodiment started in application when non-existent total number in resource consumption statistical form is greater than 1.Be with the difference of step S106-109, first need block and start application, now only perform the resource consumption statistical form renewal process corresponding with this application.After completing, then perform the resource consumption statistical form renewal process of other application successively.
As the preferred embodiment of the present invention, as shown in Figure 2, the single task mode implementation method of described Android platform also comprises:
Step S110, when this be applied in resource consumption statistical form exist and this application for the application of strong resource-hungry time, then obtain current C PU frequency, statistics active user starts application, obtains all startup apply and required CPU frequency of operation summation according to resource consumption statistical form;
If when step S111 current C PU frequency is greater than required CPU frequency of operation summation, then reduce mxm. in multi-core CPU frequency, until the average frequency value of multi-core CPU reaches mean value corresponding to required CPU frequency of operation summation;
If when step S112 current C PU frequency is less than required CPU frequency of operation summation, then increase minimum in multi-core CPU frequency, until the average frequency value of multi-core CPU reaches mean value corresponding to required CPU frequency of operation summation.
In embodiments of the invention, when this is applied in existence in resource consumption statistical form and this application is not applied for strong resource-hungry, if user enters self-starting application, owing to comprising this application component in current C PU frequency, therefore background service is left intact.If user enters non-start from opening application, then traveling through resource consumption statistical form, after obtaining cpu frequency increment, recalculating and upgrading CPU frequency of operation needed for this application.Concrete, if multinuclear situation, should adjust one by one, make the average frequency value of multi-core CPU identical with required CPU frequency of operation, the multinuclear that is assigned to avoiding out current task too much performs, and drags down system effectiveness.When user exits a certain application, in order to avoid corresponding process continues to perform on backstage, consume system resources.There is provided the corresponding interface, for confirming whether user thoroughly exits application.If user selects thoroughly to exit application, then corresponding for this application all process priorities are turned down and ensure it in cases of a jam, stopped by ActivityManagerService, and Resource recovery.
Visible, system resource is associated with application, when carrying out performance and switching, using embody rule as adjustment foundation, more meets the use scenes of user.Original frequency conversion, overlockin add the realization of single task.Reduce the system bottleneck factor except CPU as much as possible, for the adjustment of CPU can bring more significant effect to lay the foundation to system, ensure that user obtains when using Android device and better experience.The single task mode implementation method of the described Android platform of this invention, not only in TV domain application, can also use in all intelligent terminals such as mobile phone, pad, intelligent robot.
Based on said method, the present invention also provides a kind of single task pattern of Android platform to realize system, and as shown in Figure 3, it comprises:
Application judge module 100, during for applying unlatching, judges whether this application has been present in resource consumption statistical form, and judges whether this application is the application of strong resource-hungry;
Application controls module 200, for be present in when this application in resource consumption statistical form and this is applied as the application of strong resource-hungry time, be then maximum operation frequency by current C PU set of frequency, and specifying operations of other application of timing cycle internal congestion;
Overtime control module 300, when specifying timing cycle for exceeding working time when the maximum operation frequency that this is applied in CPU, then performs the application of other communication classes.
Further, realize, in system, also comprising in the single task pattern of described Android platform:
Arrange and judge module, for when this be applied in do not exist in resource consumption statistical form time, then each CPU of multi-core CPU is all set to highest frequency, and judges currently to have started in application non-existent total number in resource consumption statistical form and whether be greater than 1; As detailed above.
First new opplication statistical module, for when total number equals 1, then obtains this and is applied in and specifies the CPU in timing cycle to consume mean value, and this application and the CPU corresponding with this application are consumed mean value is increased to resource consumption statistical form; As detailed above.
First statistical form update module, for judging that the CPU of this application consumes mean value and whether is more than default cpu frequency threshold value, is then labeled as the application of strong resource-hungry by this application in resource consumption statistical form when exceeding, and corresponding renewal resource consumption statistical form; As detailed above.
Further, realize, in system, also comprising in the single task pattern of described Android platform:
Application obstructive root canal module, for when total number is greater than 1, then blocks other and starts application; As detailed above.
Second new opplication statistical module, is applied in specifies the CPU in timing cycle to consume mean value for obtaining this, and this application and the CPU corresponding with this application are consumed mean value is increased to resource consumption statistical form; As detailed above.
Second statistical form update module, for judging that the CPU of this application consumes mean value and whether is more than default cpu frequency threshold value, is then labeled as the application of strong resource-hungry by this application in resource consumption statistical form when exceeding, and corresponding renewal resource consumption statistical form; As detailed above.
Further, realize, in system, also comprising in the single task pattern of described Android platform:
Frequency of operation acquisition module, for when this is applied in existence in resource consumption statistical form and this application is not applied for strong resource-hungry, then obtain current C PU frequency, statistics active user starts application, obtains all startup apply and required CPU frequency of operation summation according to resource consumption statistical form; As detailed above.
Frequency reducing module, if when being greater than required CPU frequency of operation summation for current C PU frequency, then reduces mxm. in multi-core CPU frequency, until the average frequency value of multi-core CPU reaches mean value corresponding to required CPU frequency of operation summation; As detailed above.
Raising frequency module, if when being less than required CPU frequency of operation summation for current C PU frequency, then increases minimum in multi-core CPU frequency, until the average frequency value of multi-core CPU reaches mean value corresponding to required CPU frequency of operation summation; As detailed above.
Further, realize in system in the single task pattern of described Android platform, in described resource consumption statistical form to each application all carry out APK title, the thread that APK is corresponding, the status indication position of corresponding each thread, APK CPU consumes mean value, the CPU of APK consumes currency, APK statistic behavior zone bit, APK statistics number, APK timing statistics, strong resource-hungry application identity position and communication class application identity position record; As detailed above.
In sum, the present invention analyzes having installed application in Android device, judges classification and the degree of its resource consumption, and after statistics is stable, by the cpu frequency that should be used for determining current needs started.To the work for the treatment of of other tasks be stopped when judging have strong resource-hungry apply, isolated operation this there is the application of strong resource-hungry application identities, improve the operation smoothness degree of current application.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection domain that all should belong to claims of the present invention.

Claims (10)

1. a single task mode implementation method for Android platform, is characterized in that, comprise step:
When application is opened, judge whether this application has been present in resource consumption statistical form, and judge whether this application is the application of strong resource-hungry;
When this application has been present in resource consumption statistical form and this is applied as the application of strong resource-hungry, then current C PU is set to maximum operation frequency, and specifies operations of other application of timing cycle internal congestion;
When the maximum operation frequency that this is applied in CPU to exceed working time specify timing cycle time, then perform the application of other communication classes.
2. the single task mode implementation method of Android platform according to claim 1, is characterized in that, also comprise:
When this be applied in do not exist in resource consumption statistical form time, then each CPU of multi-core CPU is all set to highest frequency, and judges currently to have started in application non-existent total number in resource consumption statistical form and whether be greater than 1;
When total number equals 1, then obtain this and be applied in and specify the CPU in timing cycle to consume mean value, and this application and the CPU corresponding with this application are consumed mean value be increased to resource consumption statistical form;
Judging that the CPU of this application consumes mean value and whether is more than default cpu frequency threshold value, then this application in resource consumption statistical form being labeled as the application of strong resource-hungry when exceeding, and corresponding renewal resource consumption statistical form.
3. the single task mode implementation method of Android platform according to claim 2, is characterized in that, also comprise:
When total number is greater than 1, then blocks other and start application;
Obtain this to be applied in and to specify the CPU in timing cycle to consume mean value, and this application and the CPU corresponding with this application are consumed mean value be increased to resource consumption statistical form;
Judging that the CPU of this application consumes mean value and whether is more than default cpu frequency threshold value, then this application in resource consumption statistical form being labeled as the application of strong resource-hungry when exceeding, and corresponding renewal resource consumption statistical form.
4. the single task mode implementation method of Android platform according to claim 1, is characterized in that, also comprise:
When this is applied in existence in resource consumption statistical form and this application is not applied for strong resource-hungry, then obtain current C PU frequency, statistics active user starts application, obtains all startup apply and required CPU frequency of operation summation according to resource consumption statistical form;
If when current C PU frequency is greater than required CPU frequency of operation summation, then reduce mxm. in multi-core CPU frequency, until the average frequency value of multi-core CPU reaches mean value corresponding to required CPU frequency of operation summation;
If when current C PU frequency is less than required CPU frequency of operation summation, then increase minimum in multi-core CPU frequency, until the average frequency value of multi-core CPU reaches mean value corresponding to required CPU frequency of operation summation.
5. the single task mode implementation method of Android platform according to claim 1, it is characterized in that, in described resource consumption statistical form to each application all carry out APK title, the thread that APK is corresponding, the status indication position of corresponding each thread, APK CPU consumes mean value, the CPU of APK consumes currency, APK statistic behavior zone bit, APK statistics number, APK timing statistics, strong resource-hungry application identity position and communication class application identity position record.
6. the single task pattern of Android platform realizes a system, it is characterized in that, comprising:
Application judge module, during for applying unlatching, judges whether this application has been present in resource consumption statistical form, and judges whether this application is the application of strong resource-hungry;
Application controls module, for be present in when this application in resource consumption statistical form and this is applied as the application of strong resource-hungry time, be then maximum operation frequency by current C PU set of frequency, and specifying operations of other application of timing cycle internal congestion;
Overtime control module, when specifying timing cycle for exceeding working time when the maximum operation frequency that this is applied in CPU, then performs the application of other communication classes.
7. the single task pattern of Android platform realizes system according to claim 6, it is characterized in that, also comprises:
Arrange and judge module, for when this be applied in do not exist in resource consumption statistical form time, then each CPU of multi-core CPU is all set to highest frequency, and judges currently to have started in application non-existent total number in resource consumption statistical form and whether be greater than 1;
First new opplication statistical module, for when total number equals 1, then obtains this and is applied in and specifies the CPU in timing cycle to consume mean value, and this application and the CPU corresponding with this application are consumed mean value is increased to resource consumption statistical form;
First statistical form update module, for judging that the CPU of this application consumes mean value and whether is more than default cpu frequency threshold value, is then labeled as the application of strong resource-hungry by this application in resource consumption statistical form when exceeding, and corresponding renewal resource consumption statistical form.
8. the single task pattern of Android platform realizes system according to claim 7, it is characterized in that, also comprises:
Application obstructive root canal module, for when total number is greater than 1, then blocks other and starts application;
Second new opplication statistical module, is applied in specifies the CPU in timing cycle to consume mean value for obtaining this, and this application and the CPU corresponding with this application are consumed mean value is increased to resource consumption statistical form;
Second statistical form update module, for judging that the CPU of this application consumes mean value and whether is more than default cpu frequency threshold value, is then labeled as the application of strong resource-hungry by this application in resource consumption statistical form when exceeding, and corresponding renewal resource consumption statistical form.
9. the single task pattern of Android platform realizes system according to claim 6, it is characterized in that, also comprises:
Frequency of operation acquisition module, for when this is applied in existence in resource consumption statistical form and this application is not applied for strong resource-hungry, then obtain current C PU frequency, statistics active user starts application, obtains all startup apply and required CPU frequency of operation summation according to resource consumption statistical form;
Frequency reducing module, if when being greater than required CPU frequency of operation summation for current C PU frequency, then reduces mxm. in multi-core CPU frequency, until the average frequency value of multi-core CPU reaches mean value corresponding to required CPU frequency of operation summation;
Raising frequency module, if when being less than required CPU frequency of operation summation for current C PU frequency, then increases minimum in multi-core CPU frequency, until the average frequency value of multi-core CPU reaches mean value corresponding to required CPU frequency of operation summation.
10. the single task pattern of Android platform realizes system according to claim 6, it is characterized in that, in described resource consumption statistical form to each application all carry out APK title, the thread that APK is corresponding, the status indication position of corresponding each thread, APK CPU consumes mean value, the CPU of APK consumes currency, APK statistic behavior zone bit, APK statistics number, APK timing statistics, strong resource-hungry application identity position and communication class application identity position record.
CN201510457733.2A 2015-07-30 2015-07-30 A kind of the single task mode implementation method and system of Android platform Expired - Fee Related CN105005504B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510457733.2A CN105005504B (en) 2015-07-30 2015-07-30 A kind of the single task mode implementation method and system of Android platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510457733.2A CN105005504B (en) 2015-07-30 2015-07-30 A kind of the single task mode implementation method and system of Android platform

Publications (2)

Publication Number Publication Date
CN105005504A true CN105005504A (en) 2015-10-28
CN105005504B CN105005504B (en) 2019-01-29

Family

ID=54378184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510457733.2A Expired - Fee Related CN105005504B (en) 2015-07-30 2015-07-30 A kind of the single task mode implementation method and system of Android platform

Country Status (1)

Country Link
CN (1) CN105005504B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708575A (en) * 2016-12-20 2017-05-24 北京奇虎科技有限公司 Mobile terminal and method and device for loading and operating applications by mobile terminal
WO2017128032A1 (en) * 2016-01-26 2017-08-03 华为技术有限公司 Data processing method, and data processing apparatus
CN107239325A (en) * 2016-03-28 2017-10-10 平安科技(深圳)有限公司 Document data processing method and device
CN107391254A (en) * 2017-06-14 2017-11-24 深圳天珑无线科技有限公司 Intelligent terminal and its resource allocation method, computer-readable recording medium
CN110609602A (en) * 2018-06-14 2019-12-24 联想(新加坡)私人有限公司 Information processing apparatus, control method for information processing apparatus, and program

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477398A (en) * 2008-12-25 2009-07-08 深圳华为通信技术有限公司 Terminal power consumption control method and apparatus
CN102830785A (en) * 2011-06-17 2012-12-19 上海果壳电子有限公司 Quick response system for equipment end input interaction and implementation method thereof
US8621253B1 (en) * 2012-06-26 2013-12-31 Google Inc. Processor boost based on user interface demand
CN103543982A (en) * 2012-07-16 2014-01-29 安凯(广州)微电子技术有限公司 Clock frequency management method and mobile device
CN104007806A (en) * 2014-06-20 2014-08-27 中科创达软件股份有限公司 Method and device for controlling CPU frequency in Android system and equipment
CN104298515A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Awakening control method and device for application program in mobile terminal and mobile terminal
US20150031326A1 (en) * 2013-07-24 2015-01-29 Qualcomm Incorporated High Level Operating System Application Use Case Identification System to Improve User Experience
CN104794005A (en) * 2015-03-23 2015-07-22 北京畅游天下网络技术有限公司 Method and device for optimizing CPU running frequencies

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477398A (en) * 2008-12-25 2009-07-08 深圳华为通信技术有限公司 Terminal power consumption control method and apparatus
CN102830785A (en) * 2011-06-17 2012-12-19 上海果壳电子有限公司 Quick response system for equipment end input interaction and implementation method thereof
US8621253B1 (en) * 2012-06-26 2013-12-31 Google Inc. Processor boost based on user interface demand
CN103543982A (en) * 2012-07-16 2014-01-29 安凯(广州)微电子技术有限公司 Clock frequency management method and mobile device
CN104298515A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Awakening control method and device for application program in mobile terminal and mobile terminal
US20150031326A1 (en) * 2013-07-24 2015-01-29 Qualcomm Incorporated High Level Operating System Application Use Case Identification System to Improve User Experience
CN104007806A (en) * 2014-06-20 2014-08-27 中科创达软件股份有限公司 Method and device for controlling CPU frequency in Android system and equipment
CN104794005A (en) * 2015-03-23 2015-07-22 北京畅游天下网络技术有限公司 Method and device for optimizing CPU running frequencies

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017128032A1 (en) * 2016-01-26 2017-08-03 华为技术有限公司 Data processing method, and data processing apparatus
US11061857B2 (en) 2016-01-26 2021-07-13 Huawei Technologies, Co., Ltd. Data processing method and device
CN107239325A (en) * 2016-03-28 2017-10-10 平安科技(深圳)有限公司 Document data processing method and device
CN106708575A (en) * 2016-12-20 2017-05-24 北京奇虎科技有限公司 Mobile terminal and method and device for loading and operating applications by mobile terminal
CN107391254A (en) * 2017-06-14 2017-11-24 深圳天珑无线科技有限公司 Intelligent terminal and its resource allocation method, computer-readable recording medium
CN107391254B (en) * 2017-06-14 2021-03-26 深圳天珑无线科技有限公司 Intelligent terminal, resource allocation method thereof and computer-readable storage medium
CN110609602A (en) * 2018-06-14 2019-12-24 联想(新加坡)私人有限公司 Information processing apparatus, control method for information processing apparatus, and program

Also Published As

Publication number Publication date
CN105005504B (en) 2019-01-29

Similar Documents

Publication Publication Date Title
CN105005504A (en) Single-task mode implementation method and system of Android platform
US20050015592A1 (en) System and method for application and user-based class of security
CN105468409A (en) Application program closing method and device and electronic equipment
CN103780447B (en) A kind of flow control methods and device
US11010190B2 (en) Methods, mediums, and systems for provisioning application services
CN102981905B (en) A kind of application control method and electronic equipment
CN103701889A (en) Data center energy saving method on basis of cloud computing
CN105101138A (en) Method and system for controlling traffic, and terminal
CN101772140A (en) Self-adaption energy saving method and business system having self-adaption energy saving function
Raj et al. Power aware provisioning in cloud computing environment
WO2016192163A1 (en) Method and system for reducing power consumption of mobile terminal, and mobile terminal
CN105094945A (en) Method, equipment and system for virtualization platform thread control
KR20160032881A (en) Cloud based intelligent power control system
CN102819474B (en) Test method and device for system operation
CN113742009A (en) Desktop cloud environment resource scheduling method, device, equipment and storage medium
CN107391254B (en) Intelligent terminal, resource allocation method thereof and computer-readable storage medium
CN104349506A (en) Association management method, wireless access device and system
US20220311677A1 (en) Control device, control method, and control program
CN114915460B (en) Heterogeneous dynamic capacity expansion and contraction device and method for container cloud
Escheikh et al. Performability evaluation of server virtualized systems under bursty workload
CN111443792A (en) Power consumption control method and device for processor, and electronic and storage device
WO2017173901A1 (en) Energy saving method and apparatus for virtualized network, and computer storage medium
CN111796658B (en) Information processing method, electronic equipment and computer readable storage medium
CN107330324A (en) The method for deleting and erasing apparatus of a kind of application data
CN110795240A (en) Task management method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190129

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