WO2017206903A1 - 应用控制方法及相关设备 - Google Patents

应用控制方法及相关设备 Download PDF

Info

Publication number
WO2017206903A1
WO2017206903A1 PCT/CN2017/086604 CN2017086604W WO2017206903A1 WO 2017206903 A1 WO2017206903 A1 WO 2017206903A1 CN 2017086604 W CN2017086604 W CN 2017086604W WO 2017206903 A1 WO2017206903 A1 WO 2017206903A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
preset
load
level
mobile terminal
Prior art date
Application number
PCT/CN2017/086604
Other languages
English (en)
French (fr)
Inventor
曾元清
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2017206903A1 publication Critical patent/WO2017206903A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present invention relates to the field of mobile terminal technologies, and in particular, to an application control method and related devices.
  • the kernel space is mainly responsible for various operating system core functions (process scheduling, memory management, interrupt response, user system calls, file system read and write, etc.).
  • the process management of popular mobile operating systems is not directly related to the load occupancy of the file system.
  • the kernel controls the process to directly access the file system, but since the process accesses the file system faster than the CPU accesses the file system, when the mobile operating system is applied
  • the memory resources of the application are too slow, which makes the application's task response speed slower.
  • the user feels that the foreground application cannot quickly access the required resources, causing a stuck phenomenon and affecting the user experience.
  • the embodiment of the invention provides an application control method and related equipment, so as to improve the kernel resource management efficiency of the mobile terminal, reduce the power consumption of the kernel, and improve the user experience.
  • an embodiment of the present invention provides an application control method, including:
  • an embodiment of the present invention provides an application control device, where the application control device includes a function module, and the function module is used to perform some or all of the steps described in any one of the first aspects of the embodiments of the present invention. .
  • an embodiment of the present invention provides a mobile terminal, including:
  • processor a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface are connected by the communication bus and complete communication with each other;
  • the memory stores executable program code for wireless communication
  • the processor is configured to invoke the executable program code in the memory to perform some or all of the steps described in any of the methods of the first aspect of the embodiments of the present invention.
  • FIG. 1 is a schematic flow chart of an application control method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flow chart of another application control method disclosed in an embodiment of the present invention.
  • FIG. 3 is a schematic flow chart of another application control method disclosed in an embodiment of the present invention.
  • FIG. 4 is a block diagram of a unit composition of an application control apparatus according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • the process management of popular mobile operating systems is not directly related to the load occupancy of the file system.
  • the kernel controls the process to directly access the file system, but since the process accesses the file system faster than the CPU accesses the file system, when the mobile operating system is applied
  • the memory resources of the application are too slow, which makes the application's task response speed slower.
  • the user feels that the foreground application cannot quickly access the required resources, causing a stuck phenomenon and affecting the user experience.
  • the application control method provided by the embodiment of the present invention obtains the system level IO load of the operating system of the mobile terminal, and obtains each application in the preset application set when the system level IO load is greater than the first preset threshold. Applying the level IO load, and changing the running state of at least one of the preset application sets according to the application level IO load of each application, and controlling the operating system's system level IO load is less than the first preset Threshold, so the system level IO load of the mobile terminal can always be less than The first preset threshold, thereby preventing the mobile terminal from temporarily using too much memory resources due to the IO operation, causing the application task response speed to be slow or even stuck, which is beneficial to improving the kernel resource management efficiency of the mobile terminal and reducing the kernel function. Consumption, improve user experience.
  • FIG. 1 is an application control method according to an embodiment of the present invention. As shown in the figure, the application control method includes:
  • the mobile terminal detects whether a system level read and write IO load of the operating system of the mobile terminal is greater than or equal to a first preset threshold.
  • the system level IO load of the operating system refers to the amount of data of all applications of the mobile terminal to read and write IO operations of the operating system file system at a certain system time.
  • the first preset threshold may be a duration ratio threshold, which may be specifically set by the user, or calculated by the mobile terminal according to some memory resource management algorithm.
  • the specific implementation manner that the mobile terminal detects whether the system level read and write IO load of the operating system of the mobile terminal is greater than or equal to the first preset threshold may be Yes:
  • the mobile terminal acquires a waiting time for a system level read and write IO operation of the operating system in a preset time period, where the preset time period includes a running time of the operating system, a sleep duration of the operating system, and a The waiting time for system level IO operations;
  • the mobile terminal detects whether the duration ratio is greater than or equal to the first preset threshold.
  • the mobile terminal acquires an application level IO load of each application in the preset application set when detecting that the system level IO load is greater than or equal to the first preset threshold.
  • the preset application set includes at least two applications, and the application may be various third-party applications such as Baidu map, QQ, WeChat, Youku video, or a telephone directory, a calendar, a system-equipped browser,
  • the various embodiments of the present invention are not limited by the embodiments of the present invention.
  • the mobile terminal acquires an application layer of each application in the preset application set.
  • the implementation of the level IO load can be:
  • the mobile terminal determines an application level IO load of each application according to the first system time, the second system time, the first data amount, and the second data amount of each application.
  • the second preset threshold is 0.3 MB/s
  • the first system time is 500 ms
  • the IO operations of the application A, the application B, and the application C are counted.
  • the data volume is 40 KB, 50 KB, and 60 KB, respectively.
  • the data volume of the IO operations of Application A, Application B, and Application C is 80 KB, 70 KB, and 70 KB, respectively.
  • the mobile terminal can calculate the unit of each application.
  • the application level IO load during the time is:
  • the mobile terminal changes an operation state of at least one application in the preset application set according to an application level IO load of each application, and controls a system level IO load of the operating system to be smaller than the first pre- Set the threshold.
  • the implementation manner of the mobile terminal changing the running state of the at least one application in the preset application set according to the application level IO load of each application may be:
  • the mobile terminal determines, according to the application level IO load of each application, at least one application that has an application level IO load in the preset application set that is greater than or equal to a second preset threshold;
  • the second preset threshold may be calculated, for example, according to a difference between a system level IO load currently detected by the mobile terminal and a preset highest system level IO load.
  • the mobile terminal changes an operating state of the at least one application to a suspended state.
  • the implementation manner of the mobile terminal changing the running state of the at least one application in the preset application set according to the application level IO load of each application may be:
  • the mobile terminal changes an operating state of the at least one application to a pause or stop state.
  • the application control method provided by the embodiment of the present invention obtains the system level IO load of the operating system of the mobile terminal, and obtains the preset application set when the system level IO load is greater than the first preset threshold.
  • the application level IO load of each application, and changing the running state of at least one application in the preset application set according to the application level IO load of each application, and controlling the operating system's system level IO load is less than the The first preset threshold, such that the system level IO load of the mobile terminal is always smaller than the first preset threshold, thereby preventing the mobile terminal from temporarily using too much memory resources due to the IO operation, causing the application task response speed to be slow or even a card
  • the situation of Dunton is beneficial to improve the efficiency of kernel resource management of mobile terminals, reduce the power consumption of the kernel, and improve the user experience.
  • FIG. 2 is a schematic flowchart of another application control method according to an embodiment of the present invention.
  • the application control method includes:
  • the mobile terminal acquires a waiting time for a system level read and write IO operation of the operating system in a preset time period, where the preset time period includes a running time of the operating system, a sleep duration of the operating system, and a location The waiting time for system level IO operations;
  • the mobile terminal determines a ratio of a waiting time of the system level IO operation to a duration of the preset time period
  • the mobile terminal detects whether the duration ratio is greater than or equal to the first preset threshold.
  • the mobile terminal acquires an application level IO load of each application in the preset application set when detecting that the system level IO load is greater than or equal to the first preset threshold.
  • the mobile terminal changes the according to an application level IO load of each application. Presetting the running state of the at least one application in the application set, and controlling the system level IO load of the operating system to be less than the first preset threshold.
  • the application control method provided by the embodiment of the present invention obtains the system level IO load of the operating system of the mobile terminal, and obtains the preset application set when the system level IO load is greater than the first preset threshold.
  • the application level IO load of each application, and changing the running state of at least one application in the preset application set according to the application level IO load of each application, and controlling the operating system's system level IO load is less than the The first preset threshold, such that the system level IO load of the mobile terminal is always smaller than the first preset threshold, thereby preventing the mobile terminal from temporarily using too much memory resources due to the IO operation, causing the application task response speed to be slow or even a card
  • the situation of Dunton is beneficial to improve the efficiency of kernel resource management of mobile terminals, reduce the power consumption of the kernel, and improve the user experience.
  • FIG. 3 is a schematic flowchart of another application control method according to an embodiment of the present invention. As shown in the figure, the application control method includes:
  • the mobile terminal acquires a waiting time of a system level read and write IO operation of the operating system in a preset time period, where the preset time period includes a running time of the operating system, a sleep duration of the operating system, and a location The waiting time for system level IO operations;
  • the mobile terminal determines a ratio of a waiting time of the system level IO operation to a duration of the preset time period
  • the mobile terminal detects whether the duration ratio is greater than or equal to the first preset threshold
  • the mobile terminal acquires, in the first system time, the first IO operation of each application in the preset application set when detecting that the system level IO load is greater than or equal to the first preset threshold.
  • the amount of data
  • the mobile terminal acquires, by using the second system time, a second data amount of an IO operation of each application in the preset application set.
  • the mobile terminal determines, according to the first system time, the second system time, the first data amount, and the second data quantity of each application, an application level IO load of each application. ;
  • the mobile terminal determines, according to an application level IO load of each application. Preset the IO load level of the application in the application set;
  • the mobile terminal determines, according to an IO load level of an application in the preset application set, and a preset usage priority of an application in the preset application set, to determine at least the preset of the application set.
  • the mobile terminal changes an operating state of the at least one application to a pause or stop state.
  • the application control method provided by the embodiment of the present invention obtains the system level IO load of the operating system of the mobile terminal, and obtains the preset application set when the system level IO load is greater than the first preset threshold.
  • the application level IO load of each application, and changing the running state of at least one application in the preset application set according to the application level IO load of each application, and controlling the operating system's system level IO load is less than the The first preset threshold, such that the system level IO load of the mobile terminal is always smaller than the first preset threshold, thereby preventing the mobile terminal from temporarily using too much memory resources due to the IO operation, causing the application task response speed to be slow or even a card
  • the situation of Dunton is beneficial to improve the efficiency of kernel resource management of mobile terminals, reduce the power consumption of the kernel, and improve the user experience.
  • the application control device may include a load detecting unit 401, a load obtaining unit 402, and a state changing unit 403, where:
  • the load detecting unit 401 is configured to detect whether a system level read and write IO load of an operating system of the mobile terminal is greater than or equal to a first preset threshold;
  • the load obtaining unit 402 is configured to acquire an application level IO load of each application in the preset application set when detecting that the system level IO load is greater than or equal to the first preset threshold;
  • the state changing unit 403 is configured to change an operating state of at least one application in the preset application set according to the application level IO load of each application, and control a system level IO load of the operating system is less than the The first preset threshold.
  • the load detecting unit 401 is configured to:
  • the load obtaining unit 402 is configured to:
  • the state changing unit 403 is configured to:
  • the state changing unit 403 is configured to:
  • the second preset threshold is calculated according to a difference between a system level IO load currently detected by the mobile terminal and a preset highest system level IO load.
  • the mobile terminal changes an operating state of the at least one application to a suspended state.
  • the load obtaining unit 402 is configured to: acquire, in the first system time, the first data quantity of the IO operation of each application in the preset application set, the:
  • the first system time utilizes a preset process of the operating system to read and write an IO operation statistical interface of the file system of the operating system, and statistics the amount of data of the IO operation of each application process.
  • the amount of data of the IO operation of each application process is the corresponding application IO operation The first amount of data.
  • the application control device described in the device embodiment of the present invention is presented in the form of a functional unit.
  • the term "unit” as used herein shall be understood to mean the broadest possible meaning, and the object for implementing the functions described for each "unit” may be, for example, an integrated circuit ASIC, a single circuit for executing one or more software or firmware.
  • a processor shared, dedicated or chipset
  • memory of the program combinatorial logic, and/or other suitable components that perform the functions described above.
  • the function of the load acquiring unit 402 to obtain the application level IO load may be implemented by the mobile terminal shown in FIG. 5, and the processor 101 may obtain the preset application set by calling the executable program code in the memory 102.
  • the application control device obtains the system level IO load of the operating system of the mobile terminal, and obtains the preset application set when the system level IO load is greater than the first preset threshold.
  • the application level IO load of each application, and changing the running state of at least one application in the preset application set according to the application level IO load of each application, and controlling the operating system's system level IO load is less than the The first preset threshold, such that the system level IO load of the mobile terminal is always smaller than the first preset threshold, thereby preventing the mobile terminal from temporarily using too much memory resources due to the IO operation, causing the application task response speed to be slow or even a card
  • the situation of Dunton is beneficial to improve the efficiency of kernel resource management of mobile terminals, reduce the power consumption of the kernel, and improve the user experience.
  • the embodiment of the present invention further provides another mobile terminal, as shown in FIG. 5, including: a processor 101, a memory 102, a communication interface 103, and a communication bus 104; wherein the processor 101, the memory 102, and the communication interface 103 communicate
  • the bus 104 connects and completes communication with each other;
  • the processor 101 controls wireless communication with the external cellular network through the communication interface 103;
  • the communication interface 103 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, and an LNA (Low Noise Amplifier, Low noise amplifier), duplexer, etc.
  • LNA Low Noise Amplifier, Low noise amplifier
  • the memory 102 includes at least one of: a random access memory, a nonvolatile memory, and an external memory, the memory 102 storing executable program code capable of directing the processor 101 to perform the method embodiment of the present invention
  • the application control method specifically disclosed in the following includes the following steps:
  • the processor 101 detects whether a system level read and write IO load of an operating system of the mobile terminal is greater than or equal to a first preset threshold
  • the processor 101 acquires an application level IO load of each application in the preset application set when detecting that the system level IO load is greater than or equal to the first preset threshold;
  • the processor 101 changes an operation state of at least one application in the preset application set according to the application level IO load of each application, and controls a system level IO load of the operating system to be smaller than the first preset. Threshold.
  • the application control method provided by the embodiment of the present invention obtains the system level IO load of the operating system of the mobile terminal, and obtains the preset application set when the system level IO load is greater than the first preset threshold.
  • the application level IO load of each application, and changing the running state of at least one application in the preset application set according to the application level IO load of each application, and controlling the operating system's system level IO load is less than the The first preset threshold, such that the system level IO load of the mobile terminal is always smaller than the first preset threshold, thereby preventing the mobile terminal from temporarily using too much memory resources due to the IO operation, causing the application task response speed to be slow or even a card
  • the situation of Dunton is beneficial to improve the efficiency of kernel resource management of mobile terminals, reduce the power consumption of the kernel, and improve the user experience.
  • the executable program code stored in the above-described memory 102 is also used to execute the relevant steps of the application control method shown in FIGS. 1, 2, and 3 described above. For example, a step of acquiring a waiting period of a system level read and write IO operation of the operating system within a preset time period, and the like is performed.
  • the embodiment of the present invention further provides another mobile terminal.
  • the mobile terminal can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, and the mobile terminal is used as a mobile phone as an example:
  • FIG. 6 is a block diagram showing a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present invention.
  • the mobile phone includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (WiFi) module 970, and a processor 980. And power supply 990 and other components.
  • RF radio frequency
  • the RF circuit 910 can be used for receiving and transmitting information.
  • RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • LNA Low Noise Amplifier
  • RF circuitry 910 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • E-mail Short Messaging Service
  • the memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 920.
  • the memory 920 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (load detection function, load acquisition function, etc.), and the like; the storage data area may be stored according to the mobile phone.
  • the data created by the use (such as the waiting time of system-level IO operations, the operating time of the operating system, etc.).
  • memory 920 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 930 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
  • the input unit 930 can include a fingerprint identification module 931 and other input devices 932.
  • the fingerprint identification module 931 can collect fingerprint data of the user.
  • the fingerprint identification module 931 can include an optical fingerprint module, a capacitive fingerprint module, and a radio frequency fingerprint module.
  • the fingerprint identification module 931 is an example of a capacitive fingerprint recognition module, and specifically includes a sensing electrode (an abnormal sensing electrode and a normal sensing electrode) and a signal processing circuit (such as an amplifying circuit, a noise suppression circuit, and a mode) connected to the sensing electrode. Number conversion circuit, etc.).
  • the input unit 930 may also include other input devices 932.
  • other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 940 can be used to display information input by the user or information provided to the user as well as a hand Various menus of the machine.
  • the display unit 940 can include a display screen 941.
  • the display screen 941 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the fingerprint recognition module 931 and the display screen 941 function as two separate components to implement the input and input functions of the mobile phone, in some embodiments, the fingerprint recognition module 931 and the display screen 941 can be Integrated to achieve the input and output functions of the phone.
  • the handset may also include at least one type of sensor 950, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen 941 according to the brightness of the ambient light, and the proximity sensor may turn off the display screen 941 and/or when the mobile phone moves to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration
  • vibration recognition related functions such as pedometer, tapping
  • the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • An audio circuit 960, a speaker 961, and a microphone 962 can provide an audio interface between the user and the handset.
  • the audio circuit 960 can transmit the converted electrical data of the received audio data to the speaker 961, and convert it into a sound signal output by the speaker 961.
  • the microphone 962 converts the collected sound signal into an electrical signal, and the audio circuit 960 After receiving, it is converted into audio data, and then processed by the audio data output processor 980, sent to the other mobile phone via the RF circuit 910, or outputted to the memory 920 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 970, which provides users with wireless broadband Internet access.
  • FIG. 6 shows the WiFi module 970, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 980 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 920, and invoking data stored in the memory 920, executing Mobile phone's various functions and processing data, thus moving into the phone Overall monitoring.
  • the processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 980.
  • the handset also includes a power source 990 (such as a battery) that supplies power to the various components.
  • a power source 990 such as a battery
  • the power source can be logically coupled to the processor 980 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • each step method flow can be implemented based on the structure of the mobile phone.
  • each unit function can be implemented based on the structure of the mobile phone.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of any one of the application control methods described in the foregoing method embodiments.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a memory. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing memory includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
  • ROM Read-Only Memory
  • RAM Random Access Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种应用控制方法及相关设备,该方法包括:检测移动终端的操作***的***层级读取和写入IO负载是否大于或等于第一预设阈值(S101);在检测到所述***层级IO负载大于或等于所述第一预设阈值时,获取预设应用集合中的每一个应用的应用层级IO负载(S102);根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态,控制所述操作***的***层级IO负载小于所述第一预设阈值(S103)。该方法有利于提升移动终端的内核资源管理效率,降低内核功耗,提升用户体验。

Description

应用控制方法及相关设备
本发明要求2016年5月31日递交的发明名称为“一种应用控制方法及移动终端”的申请号201610380711.5的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
技术领域
本发明涉及移动终端技术领域,具体涉及一种应用控制方法及相关设备。
背景技术
目前移动操作***中,内核空间主要负责各种操作***核心功能(进程调度,内存管理,中断响应,用户***调用和文件***读写等)。
流行的移动操作***的进程管理没有直接和文件***的负载占用关联起来。当应用的某个进程需要访问文件***时,内核会控制该进程直接访问文件***,但由于进程访问文件***的速度相比于CPU访问文件***的速度慢很多,所以当移动操作***的应用过多的对文件***进行IO访问时,会占用过多的内存资源,使得应用的任务响应速度会变慢,导致用户感觉前台应用无法快速访问到所需资源,出现卡顿现象,影响用户体验。
发明内容
本发明实施例提供了一种应用控制方法及相关设备,以期提升移动终端的内核资源管理效率,降低内核功耗,提升用户体验。
第一方面,本发明实施例提供一种应用控制方法,包括:
检测移动终端的操作***的***层级读取和写入IO负载是否大于或等于第一预设阈值;
在检测到所述***层级IO负载大于或等于所述第一预设阈值时,获取预设应用集合中的每一个应用的应用层级IO负载;
根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态,控制所述操作***的***层级IO负载小于所述第一预设阈值。
第二方面,本发明实施例提供了一种应用控制装置,所述应用控制装置包括功能模块,所述功能模块用于执行本发明实施例第一方面任一方法中所描述的部分或全部步骤。
第三方面,本发明实施例提供了一种移动终端,包括:
处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线连接并完成相互间的通信;
所述存储器存储有可执行程序代码,所述通信接口用于无线通信;
所述处理器用于调用所述存储器中的所述可执行程序代码,执行本发明实施例第一方面任一方法中所描述的部分或全部步骤。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例公开的一种应用控制方法的流程示意图;
图2是本发明实施例公开的另一种应用控制方法的流程示意图;
图3是本发明实施例公开的另一种应用控制方法的流程示意图;
图4是本发明实施例公开的一种应用控制装置的单元组成框图;
图5是本发明实施例公开的一种移动终端的结构示意图;
图6是本发明实施例公开的另一种移动终端的结构示意图。
具体实施方式
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施 例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、***、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
为了更好理解本发明实施例公开的一种应用控制方法及移动终端,下面对本发明实施例进行详细介绍。
流行的移动操作***的进程管理没有直接和文件***的负载占用关联起来。当应用的某个进程需要访问文件***时,内核会控制该进程直接访问文件***,但由于进程访问文件***的速度相比于CPU访问文件***的速度慢很多,所以当移动操作***的应用过多的对文件***进行IO访问时,会占用过多的内存资源,使得应用的任务响应速度会变慢,导致用户感觉前台应用无法快速访问到所需资源,出现卡顿现象,影响用户体验。本发明实施例提供的应用控制方法,通过检测移动终端的操作***的***层级IO负载,并在该***层级IO负载大于第一预设阈值的情况下,获取预设应用集合中的每一个应用的应用层级IO负载,并根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态,控制操作***的***层级IO负载小于所述第一预设阈值,如此可以是的移动终端的***层级IO负载始终小于 第一预设阈值,从而避免移动终端因IO操作暂用过多内存资源导致应用的任务响应速度会变慢甚至出现卡顿的情况发生,有利于提升移动终端的内核资源管理效率,降低内核功耗,提升用户体验。
请参阅图1,图1是本发明实施例提供了一种应用控制方法,如图所示,本应用控制方法包括:
S101,移动终端检测移动终端的操作***的***层级读取和写入IO负载是否大于或等于第一预设阈值;
其中,所述操作***的***层级IO负载是指移动终端的所有应用在某一***时间对操作***的文件***的读取和写入IO操作的数据量。
其中,上述第一预设阈值可以是一个时长比例阈值,具体可以由用户进行设定,或由移动终端根据一些内存资源管理算法计算得到。
当上述第一预设阈值为一个时长比例阈值时,对应的,上述移动终端检测移动终端的操作***的***层级读取和写入IO负载是否大于或等于第一预设阈值的具体实现方式可以是:
所述移动终端获取预设时段内所述操作***的***层级读取和写入IO操作的等待时长,所述预设时段包括所述操作***的运行时长、所述操作***的睡眠时长和所述***层级IO操作的等待时长;
所述移动终端确定所述***层级IO操作的等待时长与所述预设时段的时长比例;
所述移动终端检测所述时长比例是否大于或等于所述第一预设阈值。
S102,所述移动终端在检测到所述***层级IO负载大于或等于所述第一预设阈值时,获取预设应用集合中的每一个应用的应用层级IO负载;
其中,所述预设应用集合至少包括2个应用,该应用可以是百度地图、QQ、微信、优酷视频等各类第三方应用程序,也可以是电话号码簿、日历、***自带浏览器、自带相机等各种***应用程序,本发明实施例不做唯一限定。
可以理解的是,上述移动终端获取预设应用集合中的每一个应用的应用层级IO负载的实现方式可以是多种多样的,本发明实施例不做唯一限定。
一个实施例中,上述移动终端获取预设应用集合中的每一个应用的应用层 级IO负载的实现方式可以是:
所述移动终端在第一***时间获取所述预设应用集合中的每一个应用的IO操作的第一数据量;
所述移动终端在第二***时间获取所述预设应用集合中的每一个应用的IO操作的第二数据量;
所述移动终端根据所述每一个应用的所述第一***时间、所述第二***时间、所述第一数据量和第二数据量,确定所述每一个应用的应用层级IO负载。
举例来说,假设预设应用集合包括应用A、应用B和应用C,第二预设阈值为0.3MB/s,第一***时间500ms时刻统计出应用A、应用B和应用C的IO操作的数据量分别为40KB、50KB和60KB,第二***时间600ms时刻统计出应用A、应用B和应用C的IO操作的数据量分别为80KB、70KB、70KB,移动终端能够计算出每一个应用的单位时间内的应用层级IO负载为:
应用A:(80-40)KB/(600-500)ms=400KB/S
应用B:(70-50)KB/(600-500)ms=200KB/S
应用C:(70-60)KB/(600-500)ms=100KB/S。
S103,所述移动终端根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态,控制所述操作***的***层级IO负载小于所述第一预设阈值。
可以理解的是,上述移动终端根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态的具体实现方式可以是多种多样的,本发明实施例不做唯一限定。
一个实施例中,上述移动终端根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态的实现方式可以是:
所述移动终端根据所述每一个应用的应用层级IO负载,确定所述预设应用集合中的应用层级IO负载大于或等于第二预设阈值的至少一个应用;
其中,所述第二预设阈值例如可以根据移动终端当前检测到的***层级IO负载和预设的最高***层级IO负载之间的差值计算得到。
所述移动终端变更所述至少一个应用的运行状态为暂停状态。
又一个实施例中,上述移动终端根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态的实现方式可以是:
所述移动终端根据所述每一个应用的应用层级IO负载,确定所述预设应用集合中的应用的IO负载等级;
所述移动终端根据所述预设应用集合中的应用的IO负载等级,以及预设的所述应用集合中的应用的使用优先级,确定所述预设的所述应用集合中的至少一个应用;
所述移动终端变更所述至少一个应用的运行状态为暂停或停止状态。
可以看出,本发明实施例提供的应用控制方法,通过检测移动终端的操作***的***层级IO负载,并在该***层级IO负载大于第一预设阈值的情况下,获取预设应用集合中的每一个应用的应用层级IO负载,并根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态,控制操作***的***层级IO负载小于所述第一预设阈值,如此可以是的移动终端的***层级IO负载始终小于第一预设阈值,从而避免移动终端因IO操作暂用过多内存资源导致应用的任务响应速度会变慢甚至出现卡顿的情况发生,有利于提升移动终端的内核资源管理效率,降低内核功耗,提升用户体验。
与上述图1所示的实施例一致的,请参阅图2,图2是本发明实施例提供的另一种应用控制方法的流程示意图。如图所示,本应用控制方法包括:
S201,移动终端获取预设时段内所述操作***的***层级读取和写入IO操作的等待时长,所述预设时段包括所述操作***的运行时长、所述操作***的睡眠时长和所述***层级IO操作的等待时长;
S202,所述移动终端确定所述***层级IO操作的等待时长与所述预设时段的时长比例;
S203,所述移动终端检测所述时长比例是否大于或等于所述第一预设阈值;
S204,所述移动终端在检测到所述***层级IO负载大于或等于所述第一预设阈值时,获取预设应用集合中的每一个应用的应用层级IO负载;
S205,所述移动终端根据所述每一个应用的应用层级IO负载,变更所述 预设应用集合中的至少一个应用的运行状态,控制所述操作***的***层级IO负载小于所述第一预设阈值。
可以看出,本发明实施例提供的应用控制方法,通过检测移动终端的操作***的***层级IO负载,并在该***层级IO负载大于第一预设阈值的情况下,获取预设应用集合中的每一个应用的应用层级IO负载,并根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态,控制操作***的***层级IO负载小于所述第一预设阈值,如此可以是的移动终端的***层级IO负载始终小于第一预设阈值,从而避免移动终端因IO操作暂用过多内存资源导致应用的任务响应速度会变慢甚至出现卡顿的情况发生,有利于提升移动终端的内核资源管理效率,降低内核功耗,提升用户体验。
与上述图1和图2所示的实施例一致的,请参阅图3,图3是本发明实施例提供的另一种应用控制方法的流程示意图。如图所示,本应用控制方法包括:
S301,移动终端获取预设时段内所述操作***的***层级读取和写入IO操作的等待时长,所述预设时段包括所述操作***的运行时长、所述操作***的睡眠时长和所述***层级IO操作的等待时长;
S302,所述移动终端确定所述***层级IO操作的等待时长与所述预设时段的时长比例;
S303,所述移动终端检测所述时长比例是否大于或等于所述第一预设阈值;
S304,所述移动终端在检测到所述***层级IO负载大于或等于所述第一预设阈值时,在第一***时间获取所述预设应用集合中的每一个应用的IO操作的第一数据量;
S305,所述移动终端在第二***时间获取所述预设应用集合中的每一个应用的IO操作的第二数据量;
S306,所述移动终端根据所述每一个应用的所述第一***时间、所述第二***时间、所述第一数据量和第二数据量,确定所述每一个应用的应用层级IO负载;
S307,所述移动终端根据所述每一个应用的应用层级IO负载,确定所述 预设应用集合中的应用的IO负载等级;
S308,所述移动终端根据所述预设应用集合中的应用的IO负载等级,以及预设的所述应用集合中的应用的使用优先级,确定所述预设的所述应用集合中的至少一个应用;
S309,所述移动终端变更所述至少一个应用的运行状态为暂停或停止状态。
可以看出,本发明实施例提供的应用控制方法,通过检测移动终端的操作***的***层级IO负载,并在该***层级IO负载大于第一预设阈值的情况下,获取预设应用集合中的每一个应用的应用层级IO负载,并根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态,控制操作***的***层级IO负载小于所述第一预设阈值,如此可以是的移动终端的***层级IO负载始终小于第一预设阈值,从而避免移动终端因IO操作暂用过多内存资源导致应用的任务响应速度会变慢甚至出现卡顿的情况发生,有利于提升移动终端的内核资源管理效率,降低内核功耗,提升用户体验。
下面为本发明装置实施例,本发明装置实施例用于执行本发明方法实施例所实现的方法。如图4所示,该应用控制装置可以包括负载检测单元401、负载获取单元402以及状态变更单元403,其中:
所述负载检测单元401,用于检测移动终端的操作***的***层级读取和写入IO负载是否大于或等于第一预设阈值;
所述负载获取单元402,用于在检测到所述***层级IO负载大于或等于所述第一预设阈值时,获取预设应用集合中的每一个应用的应用层级IO负载;
所述状态变更单元403,用于根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态,控制所述操作***的***层级IO负载小于所述第一预设阈值。
可选的,所述负载检测单元401用于:
获取预设时段内所述操作***的***层级读取和写入IO操作的等待时长,所述预设时段包括所述操作***的运行时长、所述操作***的睡眠时长和所述***层级IO操作的等待时长;
确定所述***层级IO操作的等待时长与所述预设时段的时长比例;
检测所述时长比例是否大于或等于所述第一预设阈值。
可选的,所述负载获取单元402用于:
在第一***时间获取所述预设应用集合中的每一个应用的IO操作的第一数据量;
在第二***时间获取所述预设应用集合中的每一个应用的IO操作的第二数据量;
根据所述每一个应用的所述第一***时间、所述第二***时间、所述第一数据量和第二数据量,确定所述每一个应用的应用层级IO负载。
可选的,在所述根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态方面,所述状态变更单元403用于:
根据所述每一个应用的应用层级IO负载,确定所述预设应用集合中的应用的IO负载等级;
根据所述预设应用集合中的应用的IO负载等级,以及预设的所述应用集合中的应用的使用优先级,确定所述预设的所述应用集合中的至少一个应用;
变更所述至少一个应用的运行状态为暂停或停止状态。
在所述根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态方面,所述状态变更单元403用于:
根据所述每一个应用的应用层级IO负载,确定所述预设应用集合中的应用层级IO负载大于或等于第二预设阈值的至少一个应用;
其中,所述第二预设阈值是根据移动终端当前检测到的***层级IO负载和预设的最高***层级IO负载之间的差值计算得到。
所述移动终端变更所述至少一个应用的运行状态为暂停状态。
可选的,在所述在第一***时间获取所述预设应用集合中的每一个应用的IO操作的第一数据量方面,所述负载获取单元402用于:
在第一***时间利用预设的所述操作***的进程对所述操作***的文件***的读取和写入IO操作统计接口,统计所述每一个应用的进程的IO操作的数据量,所述每一个应用的进程的IO操作的数据量为对应的应用的IO操作的 第一数据量。
需要注意的是,本发明装置实施例所描述的应用控制装置是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC,单个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。
举例来说,上述负载获取单元402获取应用层级IO负载的功能可以由图5所示的移动终端来实现,具体可以通过处理器101通过调用存储器102中的可执行程序代码,获取预设应用集合中的每一个应用的应用层级IO负载。
可以看出,本发明实施例提供的应用控制装置,通过检测移动终端的操作***的***层级IO负载,并在该***层级IO负载大于第一预设阈值的情况下,获取预设应用集合中的每一个应用的应用层级IO负载,并根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态,控制操作***的***层级IO负载小于所述第一预设阈值,如此可以是的移动终端的***层级IO负载始终小于第一预设阈值,从而避免移动终端因IO操作暂用过多内存资源导致应用的任务响应速度会变慢甚至出现卡顿的情况发生,有利于提升移动终端的内核资源管理效率,降低内核功耗,提升用户体验。
本发明实施例还提供了另一种移动终端,如图5所示,包括:处理器101,存储器102,通信接口103、通信总线104;其中,处理器101、存储器102和通信接口103通过通信总线104连接并完成相互间的通信;处理器101通过通信接口103控制与外部蜂窝网的无线通信;通信接口103包括但不限于天线、放大器、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。存储器102包括以下至少一种:随机存取存贮器、非易失性存储器以及外部存储器,存储器102中存储有可执行程序代码,该可执行程序代码能够引导处理器101执行本发明方法实施例中具体披露的应用控制方法,包括以下步骤:
所述处理器101检测移动终端的操作***的***层级读取和写入IO负载是否大于或等于第一预设阈值;
所述处理器101在检测到所述***层级IO负载大于或等于所述第一预设阈值时,获取预设应用集合中的每一个应用的应用层级IO负载;
所述处理器101根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态,控制所述操作***的***层级IO负载小于所述第一预设阈值。
可以看出,本发明实施例提供的应用控制方法,通过检测移动终端的操作***的***层级IO负载,并在该***层级IO负载大于第一预设阈值的情况下,获取预设应用集合中的每一个应用的应用层级IO负载,并根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态,控制操作***的***层级IO负载小于所述第一预设阈值,如此可以是的移动终端的***层级IO负载始终小于第一预设阈值,从而避免移动终端因IO操作暂用过多内存资源导致应用的任务响应速度会变慢甚至出现卡顿的情况发生,有利于提升移动终端的内核资源管理效率,降低内核功耗,提升用户体验。
此外,上述存储器102中存储的可执行程序代码还用于执行上述图1、图2和图3所示的应用控制方法的相关步骤。如执行获取预设时段内所述操作***的***层级读取和写入IO操作的等待时长的步骤,等。
本发明实施例还提供了另一种移动终端,如图6所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以移动终端为手机为例:
图6示出的是与本发明实施例提供的移动终端相关的手机的部分结构的框图。参考图6,手机包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、显示单元940、传感器950、音频电路960、无线保真(Wireless Fidelity,WiFi)模块970、处理器980、以及电源990等部件。本领域技术人员可以理解,图6中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图6对手机的各个构成部件进行具体的介绍:
RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯***(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。
存储器920可用于存储软件程序以及模块,处理器980通过运行存储在存储器920的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器920可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序(负载检测功能、负载获取功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如***层级IO操作的等待时长、操作***的运行时长等)等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括指纹识别模组931以及其他输入设备932。指纹识别模组931,可采集用户在其上的指纹数据。可选的,指纹识别模组931可包括光学式指纹模块、电容式指纹模块以及射频式指纹模块。以指纹识别模组931为电容式指纹识别模组为例,具体包括感应电极(异常感应电极和正常感应电极)和与所述感应电极连接的信号处理电路(如放大电路、噪声抑制电路、模数转化电路,等等)。除了指纹识别模组931,输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手 机的各种菜单。显示单元940可包括显示屏941,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏941。虽然在图6中,指纹识别模组931与显示屏941是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将指纹识别模组931与显示屏941集成而实现手机的输入和输出功能。
手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏941的亮度,接近传感器可在手机移动到耳边时,关闭显示屏941和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号输出;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据输出处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据输出至存储器920以便进一步处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进 行整体监控。可选的,处理器980可包括一个或多个处理单元;优选的,处理器980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器980中。
手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理***与处理器980逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。
前述图1、图2和图3所示的实施例中,各步骤方法流程可以基于该手机的结构实现。
前述图4所示的实施例中,各单元功能可以基于该手机的结构实现。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种应用控制方法的部分或全部步骤。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。
以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (20)

  1. 一种应用控制方法,其特征在于,包括:
    检测移动终端的操作***的***层级读取和写入IO负载是否大于或等于第一预设阈值;
    在检测到所述***层级IO负载大于或等于所述第一预设阈值时,获取预设应用集合中的每一个应用的应用层级IO负载;
    根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态,控制所述操作***的***层级IO负载小于所述第一预设阈值。
  2. 根据权利要求1所述的方法,其特征在于,所述第一预设阈值包括时长比例阈值,所述时长比例阈值是所述移动终端根据预设内存资源管理算法计算得到的。
  3. 根据权利要求2所述的方法,其特征在于,所述检测移动终端的操作***的***层级读取和写入IO负载是否大于或等于第一预设阈值,包括:
    获取预设时段内所述操作***的***层级读取和写入IO操作的等待时长,所述预设时段包括所述操作***的运行时长、所述操作***的睡眠时长和所述***层级IO操作的等待时长;
    确定所述***层级IO操作的等待时长与所述预设时段的时长比例;
    检测所述时长比例是否大于或等于所述第一预设阈值。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述获取预设应用集合中的每一个应用的应用层级IO负载,包括:
    在第一***时间获取所述预设应用集合中的每一个应用的IO操作的第一数据量;
    在第二***时间获取所述预设应用集合中的每一个应用的IO操作的第二数据量;
    根据所述每一个应用的所述第一***时间、所述第二***时间、所述第一数据量和第二数据量,确定所述每一个应用的应用层级IO负载。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述根据所述每 一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态,包括:
    根据所述每一个应用的应用层级IO负载,确定所述预设应用集合中的应用的IO负载等级;
    根据所述预设应用集合中的应用的IO负载等级,以及预设的所述应用集合中的应用的使用优先级,确定所述预设的所述应用集合中的至少一个应用;
    变更所述至少一个应用的运行状态为暂停或停止状态。
  6. 根据权利要求1-4任一项所述的方法,其特征在于,所述根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态,包括:
    根据所述每一个应用的应用层级IO负载,确定所述预设应用集合中的应用层级IO负载大于或等于第二预设阈值的至少一个应用;
    其中,所述第二预设阈值是根据移动终端当前检测到的***层级IO负载和预设的最高***层级IO负载之间的差值计算得到;
    所述移动终端变更所述至少一个应用的运行状态为暂停状态。
  7. 根据权利要求5-6任一项所述的方法,其特征在于,所述在第一***时间获取所述预设应用集合中的每一个应用的IO操作的第一数据量,包括:
    在第一***时间利用预设的所述操作***的进程对所述操作***的文件***的读取和写入IO操作统计接口,统计所述每一个应用的进程的IO操作的数据量,所述每一个应用的进程的IO操作的数据量为对应的应用的IO操作的第一数据量。
  8. 根据权利要求7所述的方法,其特征在于,所述预设应用集合至少包括2个应用,所述应用为第三方应用,或者***应用。
  9. 根据权利要求8所述的方法,其特征在于,所述操作***的***层级IO负载是所述移动终端的所有应用在预设***时间对所述操作***的文件***的IO操作的数据量。
  10. 一种应用控制装置,其特征在于,包括:
    负载检测单元,用于检测移动终端的操作***的***层级读取和写入IO负载是否大于或等于第一预设阈值;
    负载获取单元,用于在检测到所述***层级IO负载大于或等于所述第一预设阈值时,获取预设应用集合中的每一个应用的应用层级IO负载;
    状态变更单元,用于根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态,控制所述操作***的***层级IO负载小于所述第一预设阈值。
  11. 根据权利要求10所述的装置,其特征在于,所述第一预设阈值包括时长比例阈值,所述时长比例阈值是所述移动终端根据预设内存资源管理算法计算得到的。
  12. 根据权利要求11所述的装置,其特征在于,所述负载检测单元用于:
    获取预设时段内所述操作***的***层级读取和写入IO操作的等待时长,所述预设时段包括所述操作***的运行时长、所述操作***的睡眠时长和所述***层级IO操作的等待时长;
    确定所述***层级IO操作的等待时长与所述预设时段的时长比例;
    检测所述时长比例是否大于或等于所述第一预设阈值。
  13. 根据权利要求10-12任一项所述的装置,其特征在于,所述负载获取单元用于:
    在第一***时间获取所述预设应用集合中的每一个应用的IO操作的第一数据量;
    在第二***时间获取所述预设应用集合中的每一个应用的IO操作的第二数据量;
    根据所述每一个应用的所述第一***时间、所述第二***时间、所述第一数据量和第二数据量,确定所述每一个应用的应用层级IO负载。
  14. 根据权利要求10-13任一项所述的装置,其特征在于,在所述根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态方面,所述状态变更单元用于:
    根据所述每一个应用的应用层级IO负载,确定所述预设应用集合中的应 用的IO负载等级;
    根据所述预设应用集合中的应用的IO负载等级,以及预设的所述应用集合中的应用的使用优先级,确定所述预设的所述应用集合中的至少一个应用;
    变更所述至少一个应用的运行状态为暂停或停止状态。
  15. 根据权利要求10-14任一项所述的装置,其特征在于,在所述根据所述每一个应用的应用层级IO负载,变更所述预设应用集合中的至少一个应用的运行状态方面,所述状态变更单元用于:
    根据所述每一个应用的应用层级IO负载,确定所述预设应用集合中的应用层级IO负载大于或等于第二预设阈值的至少一个应用;
    其中,所述第二预设阈值是根据移动终端当前检测到的***层级IO负载和预设的最高***层级IO负载之间的差值计算得到;
    所述移动终端变更所述至少一个应用的运行状态为暂停状态。
  16. 根据权利要求14-15任一项所述的装置,其特征在于,在所述在第一***时间获取所述预设应用集合中的每一个应用的IO操作的第一数据量方面,所述负载获取单元用于:
    在第一***时间利用预设的所述操作***的进程对所述操作***的文件***的读取和写入IO操作统计接口,统计所述每一个应用的进程的IO操作的数据量,所述每一个应用的进程的IO操作的数据量为对应的应用的IO操作的第一数据量。
  17. 根据权利要求16所述的装置,其特征在于,所述预设应用集合至少包括2个应用,所述应用为第三方应用,或者***应用。
  18. 根据权利要求17所述的装置,其特征在于,所述操作***的***层级IO负载是所述移动终端的所有应用在预设***时间对所述操作***的文件***的IO操作的数据量。
  19. 一种移动终端,其特征在于,包括:
    处理器、存储器;
    所述存储器存储有可执行程序代码;
    所述处理器用于调用所述存储器中的所述可执行程序代码,执行如权利要求1-9任一项所述的方法。
  20. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有程序,所述程序执行时包括如权利要求1-9任一项所述的方法。
PCT/CN2017/086604 2016-05-31 2017-05-31 应用控制方法及相关设备 WO2017206903A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610380711.5 2016-05-31
CN201610380711.5A CN106066814B (zh) 2016-05-31 2016-05-31 一种应用控制方法及移动终端

Publications (1)

Publication Number Publication Date
WO2017206903A1 true WO2017206903A1 (zh) 2017-12-07

Family

ID=57421445

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/086604 WO2017206903A1 (zh) 2016-05-31 2017-05-31 应用控制方法及相关设备

Country Status (2)

Country Link
CN (1) CN106066814B (zh)
WO (1) WO2017206903A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795238A (zh) * 2019-10-11 2020-02-14 Oppo广东移动通信有限公司 负载计算方法、装置、存储介质及电子设备

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106066814B (zh) * 2016-05-31 2018-05-29 广东欧珀移动通信有限公司 一种应用控制方法及移动终端
CN111414245B (zh) * 2020-03-26 2023-06-13 北京小米移动软件有限公司 一种控制闪存读写速率的方法、装置及介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070174839A1 (en) * 2006-01-24 2007-07-26 Ruriko Takahashi Method and system for managing programs within systems
CN103294548A (zh) * 2013-05-13 2013-09-11 华中科技大学 一种基于分布式文件***的io请求调度方法和***
CN103412793A (zh) * 2013-07-29 2013-11-27 北京奇虎科技有限公司 一种优化***资源的方法、装置及***
CN104182343A (zh) * 2014-08-22 2014-12-03 工业和信息化部电子第五研究所 操作***的性能测试方法及装置
CN105354093A (zh) * 2015-12-09 2016-02-24 广东欧珀移动通信有限公司 内存管理方法及移动终端
CN106066814A (zh) * 2016-05-31 2016-11-02 广东欧珀移动通信有限公司 一种应用控制方法及移动终端

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833512A (zh) * 2010-04-22 2010-09-15 中兴通讯股份有限公司 一种内存回收方法及其装置
CN103207827B (zh) * 2013-04-19 2016-03-16 北京百度网讯科技有限公司 基于Linux***下检测IO热点的方法与装置
CN104503887A (zh) * 2014-12-15 2015-04-08 北京奇虎科技有限公司 计算设备状态展示方法及装置
CN105159770B (zh) * 2015-09-21 2018-07-20 天脉聚源(北京)传媒科技有限公司 一种进程的管理方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070174839A1 (en) * 2006-01-24 2007-07-26 Ruriko Takahashi Method and system for managing programs within systems
CN103294548A (zh) * 2013-05-13 2013-09-11 华中科技大学 一种基于分布式文件***的io请求调度方法和***
CN103412793A (zh) * 2013-07-29 2013-11-27 北京奇虎科技有限公司 一种优化***资源的方法、装置及***
CN104182343A (zh) * 2014-08-22 2014-12-03 工业和信息化部电子第五研究所 操作***的性能测试方法及装置
CN105354093A (zh) * 2015-12-09 2016-02-24 广东欧珀移动通信有限公司 内存管理方法及移动终端
CN106066814A (zh) * 2016-05-31 2016-11-02 广东欧珀移动通信有限公司 一种应用控制方法及移动终端

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795238A (zh) * 2019-10-11 2020-02-14 Oppo广东移动通信有限公司 负载计算方法、装置、存储介质及电子设备
CN110795238B (zh) * 2019-10-11 2023-09-01 Oppo广东移动通信有限公司 负载计算方法、装置、存储介质及电子设备

Also Published As

Publication number Publication date
CN106066814A (zh) 2016-11-02
CN106066814B (zh) 2018-05-29

Similar Documents

Publication Publication Date Title
US10649720B2 (en) Sound effect configuration method and system and related device
WO2017206902A1 (zh) 应用控制方法及相关设备
WO2017206916A1 (zh) 处理器中内核运行配置的确定方法以及相关产品
WO2018032581A1 (zh) 一种应用程序控制方法及装置
WO2018219119A1 (zh) 应用功能的控制方法及相关产品
WO2017215629A1 (zh) 音效配置方法及相关设备
US10552178B2 (en) Method for controlling startup of application and terminal device
WO2017215652A1 (zh) 音效参数的调节方法及移动终端
WO2015035870A1 (zh) 多cpu调度方法及装置
WO2018166204A1 (zh) 一种控制指纹识别模组的方法、移动终端及存储介质
WO2017215653A1 (zh) 音量处理方法及用户终端
US10942644B2 (en) Method for sliding response acceleration and related products
CN109976611B (zh) 终端设备的控制方法及终端设备
WO2017206918A1 (zh) 终端加速唤醒方法以及相关产品
WO2019076250A1 (zh) 推送消息的管理方法及相关产品
WO2017206903A1 (zh) 应用控制方法及相关设备
WO2017206857A1 (zh) 响应控制方法及移动终端
WO2019072179A1 (zh) 应用程序运行控制方法及装置
WO2018219118A1 (zh) 界面显示方法及相关产品
WO2018145539A1 (zh) 一种流媒体数据的处理方法及移动终端
WO2017215663A1 (zh) 一种音效处理的方法及终端
WO2017206851A1 (zh) 安装任务的分配方法及移动终端
WO2017215658A1 (zh) 音效添加方法及用户终端
WO2015078349A1 (zh) 麦克风收音状态的切换方法和装置
WO2017215664A1 (zh) 一种音效处理的方法及终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17805848

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17805848

Country of ref document: EP

Kind code of ref document: A1