CN106155733B - Method and device for running application program - Google Patents

Method and device for running application program Download PDF

Info

Publication number
CN106155733B
CN106155733B CN201510198492.4A CN201510198492A CN106155733B CN 106155733 B CN106155733 B CN 106155733B CN 201510198492 A CN201510198492 A CN 201510198492A CN 106155733 B CN106155733 B CN 106155733B
Authority
CN
China
Prior art keywords
processor
frequency
application program
gear
temperature
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.)
Active
Application number
CN201510198492.4A
Other languages
Chinese (zh)
Other versions
CN106155733A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510198492.4A priority Critical patent/CN106155733B/en
Publication of CN106155733A publication Critical patent/CN106155733A/en
Application granted granted Critical
Publication of CN106155733B publication Critical patent/CN106155733B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a device for running an application program, and belongs to the technical field of computers. The method comprises the following steps: acquiring each frequency gear supported by a local processor, detecting a locally installed application program of a target type, and monitoring the starting of the locally installed application program of the target type; when a first application program in the locally installed application programs of the target type is started, according to each frequency gear supported by the processor, the frequency gear used by the processor is promoted; and running the first application program based on the promoted frequency gear. By adopting the invention, the efficiency of starting the application program can be improved.

Description

Method and device for running application program
Technical Field
The present invention relates to the field of computers, and in particular, to a method and an apparatus for running an application.
Background
With the rapid development of terminal technology, terminals such as mobile phones and computers have gradually entered the daily life of people, and become indispensable tools in life. Accordingly, the types of applications that can be run by the user in the terminal are increasing, and the number of applications is increasing, wherein the game type applications already occupy a larger proportion.
The game application generally occupies higher terminal processing resources when running. In order to ensure smooth operation of the game application program, before starting the game application program, a user often needs to open a process management page of a terminal, select one or more application program processes needing to be closed, close the application program processes, then close the process management page, and then start the game application program.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
before starting the game-type application, if the user chooses to adopt the above-described complicated operation, a lot of time is consumed, thereby reducing the efficiency in starting the application.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for running an application. The technical scheme is as follows:
in a first aspect, a method for running an application is provided, the method comprising:
acquiring each frequency gear supported by a local processor, detecting a locally installed application program of a target type, and monitoring the starting of the locally installed application program of the target type;
when a first application program in the locally installed application programs of the target type is started, according to each frequency gear supported by the processor, the frequency gear used by the processor is promoted;
and running the first application program based on the promoted frequency gear.
In a second aspect, there is provided an apparatus for running an application, the apparatus comprising:
the acquisition module is used for acquiring each frequency gear supported by a local processor;
the monitoring module is used for detecting the locally installed application program of the target type and monitoring the starting of the locally installed application program of the target type;
the frequency modulation module is used for promoting the frequency gear used by the processor according to each frequency gear supported by the processor when a first application program in the locally installed application programs of the target type is started;
and the running module is used for running the first application program based on the promoted frequency gear.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, each frequency gear supported by a local processor is acquired, a locally installed application program of a target type is detected, the start of the locally installed application program of the target type is monitored, when a first application program in the locally installed application program of the target type is started, the frequency gear used by the processor is promoted according to each frequency gear supported by the processor, and the first application program is operated based on the promoted frequency gear. Therefore, the frequency gear of the processor is improved, more processing resources can be provided for the running of the first application program, and the complicated operation of closing the process by a user is not needed when the application program is started, so that the efficiency of starting the application program can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for running an application according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a frequency step adjustment according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a frequency step adjustment according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for running an application according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Example one
An embodiment of the present invention provides a method for running an application, and as shown in fig. 1, a processing flow of the method may include the following steps:
step 101, acquiring each frequency gear supported by a local processor, detecting a locally installed application program of a target type, and monitoring the start of the locally installed application program of the target type.
And 102, when a first application program in the locally installed application programs of the target types is started, increasing the frequency gear used by the processor according to each frequency gear supported by the processor.
Step 103, running the first application program based on the promoted frequency gear.
In the embodiment of the invention, each frequency gear supported by a local processor is acquired, a locally installed application program of a target type is detected, the start of the locally installed application program of the target type is monitored, when a first application program in the locally installed application program of the target type is started, the frequency gear used by the processor is promoted according to each frequency gear supported by the processor, and the first application program is operated based on the promoted frequency gear. Therefore, the frequency gear of the processor is improved, more processing resources can be provided for the running of the first application program, and the complicated operation of closing the process by a user is not needed when the application program is started, so that the efficiency of starting the application program can be improved. .
Example two
The embodiment of the invention provides a method for running an application program, and an execution main body of the method can be a terminal. The terminal can be a computer, a mobile phone and other electronic equipment with a terminal processor. The application program monitored in the method can be an application program occupying processing resources of a larger terminal processor, such as a game application program, a flat design application program, an image processing application program and the like. In addition, a platform application may be installed in the terminal, and the platform application may be an application for managing and serving a certain type of application (e.g., game type application) in the terminal, such as a game box. The processor in the terminal has a certain number of frequency steps and can switch between different frequency steps. In this embodiment, the implementation subject is a mobile phone, and the target type application is a game type application, which are taken as examples, so as to perform detailed description of the scheme.
The process flow shown in fig. 1 will be described in detail below with reference to specific embodiments, and the contents may be as follows:
step 101, acquiring each frequency gear supported by a local processor, detecting a locally installed application program of a target type, and monitoring the start of the locally installed application program of the target type.
The processor may be a multi-core CPU (Central Processing Unit). The frequency gears are different frequencies when the processor works, the frequency gears can be in a frequency range such as 1500-1700 MHz, 1700-1900 MHz, 1900-2100 MHz and the like, the frequency gears can also be a central frequency, and the frequency when the processor works can fluctuate around the central frequency such as 1600MHz, 1800MHz, 2000MHz and the like. The frequency gear may be a frequency gear of the processor itself, which is generally set before the processor leaves a factory, or may be a frequency gear set by a system program for the processor, and a general system may be provided with a plurality of operating modes, such as a high performance mode, a low energy consumption mode, and the like, and different frequency gears are respectively used in different modes. The frequency range corresponding to the frequency notch set by the system program is generally larger than the frequency range corresponding to the frequency notch of the processor.
In implementation, the terminal may be installed with a platform application, and the platform application may obtain all frequency steps of the processor from the system program when the platform application starts itself, or may also obtain all frequency steps set by the system program, or may obtain both of them at the same time. The platform application may store therein an application identification list of one or more types of applications (i.e., the above-mentioned target types). When step 101 is executed, the platform application may query the system program for application identifiers (generally, package names of the application programs) of all locally installed application programs, match and compare the queried application identifiers with an application identifier list stored in the platform application, and the application program corresponding to the application identifier included in the application identifier list is the target-type application program, so that the application identifier of the local target-type application program may be recorded. Based on this record, the platform application can monitor the launch of locally installed applications of the target type.
And 102, when a first application program in the locally installed application programs of the target types is started, increasing the frequency gear used by the processor according to each frequency gear supported by the processor.
In implementation, in the process of monitoring the start of the locally installed application program of the target type by the platform application program, if the start of a certain application program is detected and the application program is the application program of the target type, the platform application program may request the system program to raise the frequency gear used by the processor. Specifically, the frequency steps may be increased by a preset number of frequency steps from the current frequency step, for example, the processor includes 10 frequency steps, which are arranged in a range from 1 step to 10 steps from low to high in frequency, and assuming that the current frequency step is 5 steps, when the frequency step is increased, the frequency step may be increased by 3 steps (the preset number) to 5 steps. Alternatively, the current frequency gear may be shifted to a higher frequency gear specified in advance, for example, if the current frequency gear is 5 th gear, the current frequency gear may be shifted to 9 th gear (a frequency gear specified in advance) by continuing the above example.
Optionally, when the first application program is started, the higher the frequency of the processor is, the better the acceleration effect is, and correspondingly, the processing procedure of raising the frequency gear used by the processor in step 102 may specifically be as follows: and adjusting the frequency gear used by the processor to be the highest frequency gear in the frequency gears supported by the processor.
In an implementation, the platform application may select the highest frequency gear from the processor frequency gears recorded in step 101, and notify the system program to increase the processor frequency gear to the highest frequency gear, as shown in fig. 2. If the platform application program obtains all frequency steps of the processor from the system program in step 101 and obtains all frequency steps set by the system program, in step 102, the frequency step set by the system program may be adjusted to a highest frequency step, a frequency range corresponding to the highest frequency step may include a plurality of frequency steps of the processor itself, a highest frequency step may be further selected from the plurality of frequency steps, and the frequency step of the processor is increased to the highest frequency step. For example, the frequency range corresponding to the highest frequency gear set by the system program is 1500-2100 MHz, wherein the frequency range includes three frequency gears of the processor itself, and the frequency ranges are 1500-1700 MHz, 1700-1900 MHz, and 1900-2100 MHz respectively.
Optionally, when the step 102 is executed, the frequency step before the boosting may be recorded, and during the subsequent processing, the frequency step may be adjusted back to the frequency step.
Step 103, running the first application program based on the promoted frequency gear.
In implementation, the frequency step of the processor may be increased after the first application program is started, and the first application program may be run in the frequency step after the processor is increased. Alternatively, the frequency step of the processor may be increased during the first application program start-up process.
Optionally, the frequency step may be reduced based on the temperature condition of the processor, and accordingly, after the step 103 is executed, the following processing may be performed: detecting the temperature of the processor according to a preset period; if the temperature of the processor is higher than the preset temperature threshold value, the frequency gear used by the processor is reduced by one gear according to each frequency gear supported by the processor, and if the temperature of the processor is lower than the preset temperature threshold value, the frequency gear used by the processor is kept unchanged.
Wherein the preset temperature threshold may be the highest temperature at which the processor can keep normal operation for a long time
In an implementation, a preset period (e.g., 5 minutes) may be stored in the platform application for detecting the temperature of the processor, and a temperature threshold (e.g., 60 ℃) may also be stored for determining whether the processor is working normally. After the first application program is started, the platform application program may periodically obtain the temperature of the processor detected by the temperature sensor on the motherboard from the system program according to a preset period, and compare the temperature with a preset temperature threshold. If the temperature of the processor exceeds the preset temperature threshold, the frequency step of the processor is reduced by one step, as shown in fig. 3, and if the temperature of the processor is lower than the preset temperature threshold, the frequency step of the processor is kept unchanged. This may reduce the temperature of the processor. After the frequency gear of the processor is reduced by one gear, the temperature of the processor can be continuously detected according to a preset period, if the temperature still exceeds a preset temperature threshold value, the frequency gear of the processor can be reduced by one gear, and the like, until the temperature of the processor is lower than the preset temperature threshold value.
Optionally, for the multi-core processor, in the process of reducing the temperature of the processor, the frequency step of each processing core may be separately adjusted, and the corresponding processing may be as follows: and if the temperature of the processor is higher than the preset temperature threshold, reducing the frequency step used by one processing core of the processor by one step according to each frequency step supported by the processor.
In an implementation, the platform application may obtain the number of processing cores of the processor from the system program, specifically, may query the number of files beginning with a cpu letter in the/systems/devices/system/cpu/directory, where the number of files is the number of processing cores in the processor. After the first application program is started, if it is detected that the temperature of the processor exceeds the preset temperature threshold, one processing core in the processor may be selected to perform processing for reducing the frequency step first, and if the temperature of the processor detected in the next preset period is higher than the preset temperature threshold, the next processing core in the processor may be selected to perform processing for reducing the frequency step until the detected temperature of the processor is lower than the preset temperature threshold.
Optionally, if the temperature of the processor is too high than the temperature threshold, the frequency step of the processor may be rapidly reduced, and the corresponding process may be as follows: detecting the temperature of the processor according to a preset period; if the temperature of the processor is higher than a preset temperature threshold value and the difference value between the temperature of the processor and the temperature threshold value is larger than a preset difference value threshold value, reducing the frequency gear used by the processor by a plurality of preset gears according to each frequency gear supported by the processor; if the temperature of the processor is higher than a preset temperature threshold value and the difference value between the temperature of the processor and the temperature threshold value is smaller than a preset difference value threshold value, reducing the frequency gear used by the processor by one gear according to each frequency gear supported by the processor; if the temperature of the processor is below a preset temperature threshold, the frequency steps used by the processor are kept unchanged.
In practice, the specific process is similar to the above process, and reference is made to the above related contents.
Optionally, when the temperature of the processor is low, the frequency step of the processor may be further increased, and the corresponding processing procedure may be as follows: (the above temperature threshold may be referred to as a first temperature threshold) detecting the temperature of the processor at a preset cycle; if the temperature of the processor is higher than a preset first temperature threshold value, reducing the frequency gear used by the processor by one gear according to each frequency gear supported by the processor; if the temperature of the processor is lower than a preset second temperature threshold, the frequency gear used by the processor is increased by one gear according to each frequency gear supported by the processor; if the temperature of the processor is below the first temperature threshold and above the second temperature threshold, the frequency step used by the processor is kept unchanged.
In practice, the specific process is similar to the above process, and reference is made to the above related contents.
Optionally, for the above case of recording the frequency step before the boosting (may be referred to as a first frequency step), the frequency step of the processor may be restored after the first application program is closed, and accordingly, after step 103, the following processing may be performed: after the first application is closed, the frequency steps used by the processor may be adjusted to the recorded pre-boost frequency steps.
In implementation, when the platform application learns that the first application is closed through the system program, the previously recorded first frequency gear may be called, and the frequency gear of the processor is lowered back to the first frequency gear.
Optionally, the frequency step used when the first application program runs may be recorded, and the frequency step is applied to the subsequent application program running process, and the corresponding processing manner may be as follows: when the first application program is closed, recording a frequency gear used by a processor during closing; and for the first application program which is started after the first application program is closed and belongs to the target type, adjusting the frequency gear used by the processor to the recorded frequency gear used by the processor when the first application program is closed when the first application program is started.
In implementation, taking a game application as an example, when the platform application learns that the first application is closed through the system program, the frequency gear (second frequency gear) that is last used before the first application is closed may be recorded. Thereafter, if the platform application detects that the next game application is started, the frequency step of the processor may be increased to the recorded second frequency step.
Optionally, the frequency step used when the first application program runs may be recorded, and the frequency step is applied to the subsequent process of running the first application program again, and the corresponding processing manner may be as follows: when the first application program is closed, recording a frequency gear used by a processor during closing; when the first application program is started again, the frequency gear used by the processor is adjusted to the recorded frequency gear used by the processor when the first application program is closed last time.
In implementation, when the platform application learns that the first application is closed through the system program, the frequency bin (second frequency bin) that is last used before the first application is closed may be recorded. Thereafter, if the platform application again detects the first application launch, the frequency gear of the processor may be directly increased to the recorded second frequency gear.
In the embodiment of the invention, each frequency gear supported by a local processor is acquired, a locally installed application program of a target type is detected, the start of the locally installed application program of the target type is monitored, when a first application program in the locally installed application program of the target type is started, the frequency gear used by the processor is promoted according to each frequency gear supported by the processor, and the first application program is operated based on the promoted frequency gear. Therefore, the frequency gear of the processor is improved, more processing resources can be provided for the running of the first application program, and the complicated operation of closing the process by a user is not needed when the application program is started, so that the efficiency of starting the application program can be improved.
EXAMPLE III
Based on the same technical concept, an embodiment of the present invention further provides an apparatus for running an application, as shown in fig. 4, the apparatus includes:
an obtaining module 210, configured to obtain each frequency bin supported by a local processor;
a monitoring module 220, configured to detect a locally installed application program of a target type, and monitor starting of the locally installed application program of the target type;
a frequency modulation module 230, configured to, when a first application program in the locally installed application programs of the target type is started, boost a frequency bin used by the processor according to each frequency bin supported by the processor;
an operation module 240 is configured to operate the first application based on the boosted frequency bin.
Optionally, the frequency modulation module 230 is configured to: and adjusting the frequency gear used by the processor to be the highest frequency gear in all the frequency gears supported by the processor.
Optionally, the frequency modulation module 230 is further configured to: detecting the temperature of the processor according to a preset period after the first application program is run based on the promoted frequency gear; if the temperature of the processor is higher than a preset temperature threshold value, reducing the frequency gear used by the processor by one gear according to each frequency gear supported by the processor; and if the temperature of the processor is lower than a preset temperature threshold value, keeping the frequency gear used by the processor unchanged.
Optionally, the frequency modulation module 230 is further configured to: and if the temperature of the processor is higher than a preset temperature threshold value, reducing the frequency gear used by one processing core of the processor by one gear according to each frequency gear supported by the processor.
Optionally, the frequency modulation module 230 is further configured to: recording the frequency gear before lifting; and after the first application program is closed, adjusting the frequency gear used by the processor into the recorded frequency gear before the lifting.
Optionally, the frequency modulation module 230 is further configured to: when the first application program is closed, recording a frequency gear used by the processor when the first application program is closed; and for the first application program which is started after the first application program is closed and belongs to the target type, when the first application program is started, the frequency gear used by the processor is adjusted to be the recorded frequency gear used by the processor when the first application program is closed.
Optionally, the frequency modulation module 230 is further configured to: when the first application program is closed, recording a frequency gear used by the processor when the first application program is closed; and when the first application program is started again, adjusting the frequency gear used by the processor into the recorded frequency gear used by the processor when the first application program is closed last time.
In the embodiment of the invention, each frequency gear supported by a local processor is acquired, a locally installed application program of a target type is detected, the start of the locally installed application program of the target type is monitored, when a first application program in the locally installed application program of the target type is started, the frequency gear used by the processor is promoted according to each frequency gear supported by the processor, and the first application program is operated based on the promoted frequency gear. Therefore, the frequency gear of the processor is improved, more processing resources can be provided for the running of the first application program, and the complicated operation of closing the process by a user is not needed when the application program is started, so that the efficiency of starting the application program can be improved.
It should be noted that: in the above embodiment, when the device for running an application runs the application, only the division of the functional modules is taken as an example, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus for running an application and the method embodiment for running an application provided in the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
Example four
Referring to fig. 5, a schematic structural diagram of a terminal for running an application according to an embodiment of the present invention is shown, where the terminal may be used to implement the method for running an application provided in the foregoing embodiment. Specifically, the method comprises the following steps:
the terminal 500 may include RF (Radio Frequency) circuitry 110, memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, audio circuitry 160, a WiFi (wireless fidelity) module 170, a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the terminal structure shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
RF circuit 110 may be used to receive and transmit information or during a call, and in particular, receive downlink information from a base station and then process it with one or more processors 180. in addition, transmit data related to uplink to the base station. typically, RF circuit 110 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, L NA (L ow Amplifier, low Noise Amplifier), a duplexer, etc. furthermore, RF circuit 110 may also communicate with a network and other devices via wireless communication using any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), SMS (short Service, short message Service), L, long Term Evolution (short message Service, L).
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal 500, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may further include a memory controller to provide the processor 180 and the input unit 130 with access to the memory 120.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Display unit 140 may be used to Display information input by or provided to a user, as well as various graphical user interfaces of terminal 500, which may be comprised of graphics, text, icons, video, and any combination thereof Display panel 141, optionally Display panel 141 may be configured in the form of L CD (L acquired Crystal Display, liquid Crystal Display), O L ED (Organic L light-Emitting Diode), etc. further, touch-sensitive surface 131 may overlay Display panel 141, and upon detection of a touch operation on or near touch-sensitive surface 131, communicate to processor 180 to determine the type of touch event, and processor 180 then provides a corresponding visual output on Display panel 141 based on the type of touch event, although in FIG. 5, touch-sensitive surface 131 and Display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 and Display panel 141 may be integrated to implement input and output functions.
The terminal 500 can also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or a backlight when the terminal 500 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal 500, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and terminal 500. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of peripheral headphones with the terminal 500.
WiFi belongs to a short-distance wireless transmission technology, and the terminal 500 can help a user send and receive e-mails, browse web pages, access streaming media, and the like through the WiFi module 170, and it provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the terminal 500 and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal 500, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal 500 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the handset. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal 500 further includes a power supply 190 (e.g., a battery) for supplying power to the various components, which may preferably be logically connected to the processor 180 via a power management system, such that functions of managing charging, discharging, and power consumption are performed via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal 500 may further include a camera, a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the terminal 500 is a touch screen display, and the terminal 500 further includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
acquiring each frequency gear supported by a local processor, detecting a locally installed application program of a target type, and monitoring the starting of the locally installed application program of the target type;
when a first application program in the locally installed application programs of the target types is started, the frequency gear used by the processor is promoted according to each frequency gear supported by the processor;
and running the first application program based on the promoted frequency gear.
Optionally, the increasing the frequency steps used by the processor according to the frequency steps supported by the processor includes:
and adjusting the frequency gear used by the processor to be the highest frequency gear in the frequency gears supported by the processor.
Optionally, after the first application program is run based on the boosted frequency gear, the method further includes:
detecting the temperature of the processor according to a preset period;
if the temperature of the processor is higher than a preset temperature threshold value, reducing the frequency gear used by the processor by one gear according to each frequency gear supported by the processor; if the temperature of the processor is below a preset temperature threshold, the frequency steps used by the processor are kept unchanged.
Optionally, the method further comprises:
recording the frequency gear before lifting;
and after the first application program is closed, adjusting the frequency gear used by the processor into the recorded frequency gear before the promotion.
Optionally, after the first application program is run based on the boosted frequency gear, the method further includes:
when the first application program is closed, recording a frequency gear used by a processor during closing;
and for the first application program which is started after the first application program is closed and belongs to the target type, adjusting the frequency gear used by the processor to be the recorded frequency gear used by the processor when the first application program is closed during starting.
Optionally, after the first application program is run based on the boosted frequency gear, the method further includes:
when the first application program is closed, recording a frequency gear used by a processor during closing;
when the first application program is started again, the frequency gear used by the processor is adjusted to the recorded frequency gear used by the processor when the first application program is closed last time.
In the embodiment of the invention, each frequency gear supported by a local processor is acquired, a locally installed application program of a target type is detected, the start of the locally installed application program of the target type is monitored, when a first application program in the locally installed application program of the target type is started, the frequency gear used by the processor is promoted according to each frequency gear supported by the processor, and the first application program is operated based on the promoted frequency gear. Therefore, the frequency gear of the processor is improved, more processing resources can be provided for the running of the first application program, and the complicated operation of closing the process by a user is not needed when the application program is started, so that the efficiency of starting the application program can be improved.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (11)

1. A method of running an application, the method comprising:
acquiring each frequency gear supported by a local processor, detecting a locally installed application program of a target type, and monitoring the starting of the locally installed application program of the target type, wherein the frequency gear comprises a frequency range or a center frequency;
when detecting that a first application program in the locally installed application programs of the target type is started, requesting a system program to upgrade a frequency gear used by the processor according to each frequency gear supported by the processor;
running the first application program based on the promoted frequency gear, or promoting the frequency gear of a processor in the starting process of the first application program;
detecting the temperature of the processor according to a preset period, and reducing the frequency gear used by the processor by a plurality of preset gears according to each frequency gear supported by the processor when the temperature of the processor is higher than a preset first temperature threshold and the difference value between the temperature of the processor and the temperature threshold is greater than a preset difference threshold; when the temperature of the processor is higher than the preset temperature threshold and the difference value between the temperature of the processor and the temperature threshold is smaller than the preset difference threshold, reducing the frequency gear used by the processor by one gear according to each frequency gear supported by the processor until the temperature of the processor is lower than a preset first temperature threshold;
if the temperature of the processor is lower than a second temperature threshold value, the frequency gear used by the processor is increased by one gear according to each frequency gear supported by the processor; if the temperature of the processor is lower than the first temperature threshold and higher than a second temperature threshold, keeping the frequency step used by the processor unchanged; recording a frequency gear used when the first application program is operated after the gear is lifted so as to be beneficial to the frequency gear to be applied in the subsequent application program operation process;
and after the first application program is closed, adjusting the frequency gear used by the processor to be the recorded frequency gear before the lifting.
2. The method of claim 1, wherein the boosting the frequency bins used by the processor according to the frequency bins supported by the processor comprises:
and adjusting the frequency gear used by the processor to be the highest frequency gear in all the frequency gears supported by the processor.
3. The method of any of claims 1-2, wherein the running the first application based on the boosted frequency notch, or after boosting the frequency notch of the processor during the launching of the first application, further comprises:
and for the first application program which is started after the first application program is closed and belongs to the target type, when the first application program is started, the frequency gear used by the processor is adjusted to be the recorded frequency gear used by the processor when the first application program is closed.
4. The method of any of claims 1-2, wherein the running the first application based on the boosted frequency notch, or after boosting the frequency notch of the processor during the launching of the first application, further comprises:
and when the first application program is started again, adjusting the frequency gear used by the processor into the recorded frequency gear used by the processor when the first application program is closed last time.
5. The method according to any one of claims 1 to 2, wherein the step up of the frequency bins used by the processor according to the frequency bins supported by the processor comprises:
and according to each frequency gear supported by the processor, lifting the frequency gears used by the processor by a preset number of frequency gears.
6. An apparatus for running an application, the apparatus comprising:
the acquisition module is used for acquiring each frequency range supported by a local processor, and the frequency range comprises a frequency range or a central frequency;
the monitoring module is used for detecting the locally installed application program of the target type and monitoring the starting of the locally installed application program of the target type;
the frequency modulation module is used for requesting a system program to promote the frequency gear used by the processor according to each frequency gear supported by the processor when detecting that a first application program in the locally installed application programs of the target type is started;
the running module is used for running the first application program based on the promoted frequency gear, or promoting the frequency gear of the processor in the starting process of the first application program;
the frequency modulation module is further configured to detect the temperature of the processor according to a preset period, and reduce the frequency range used by the processor by a plurality of preset ranges according to each frequency range supported by the processor when the temperature of the processor is higher than a preset first temperature threshold and a difference value between the temperature of the processor and the temperature threshold is greater than a preset difference threshold; when the temperature of the processor is higher than the preset temperature threshold and the difference value between the temperature of the processor and the temperature threshold is smaller than the preset difference threshold, reducing the frequency gear used by the processor by one gear according to each frequency gear supported by the processor until the temperature of the processor is lower than a preset first temperature threshold; if the temperature of the processor is lower than a second temperature threshold value, the frequency gear used by the processor is increased by one gear according to each frequency gear supported by the processor; if the temperature of the processor is lower than the first temperature threshold and higher than a second temperature threshold, keeping the frequency step used by the processor unchanged;
the frequency modulation module is further configured to adjust the frequency gear used by the processor to a recorded frequency gear before the promotion after the first application is closed;
the device further comprises:
and recording the frequency gear used when the first application program is operated after the gear is lifted so as to facilitate the module in which the frequency gear is applied in the subsequent operation process of the application program.
7. The apparatus of claim 6, wherein the frequency modulation module is configured to:
and adjusting the frequency gear used by the processor to be the highest frequency gear in all the frequency gears supported by the processor.
8. The apparatus of any of claims 6 to 7, wherein the frequency modulation module is further configured to:
and for the first application program which is started after the first application program is closed and belongs to the target type, when the first application program is started, the frequency gear used by the processor is adjusted to be the recorded frequency gear used by the processor when the first application program is closed.
9. The apparatus of any of claims 6 to 7, wherein the frequency modulation module is further configured to: and when the first application program is started again, adjusting the frequency gear used by the processor into the recorded frequency gear used by the processor when the first application program is closed last time.
10. The apparatus of any of claims 6 to 7, wherein the frequency modulation module is further configured to:
and when a first application program in the locally installed application programs of the target types is started, according to each frequency gear supported by the processor, increasing the frequency gears used by the processor by a preset number.
11. A computer-readable storage medium having stored thereon instructions which, when executed on a processing component, cause the processing component to perform a method of running an application program as claimed in any one of claims 1 to 5.
CN201510198492.4A 2015-04-23 2015-04-23 Method and device for running application program Active CN106155733B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510198492.4A CN106155733B (en) 2015-04-23 2015-04-23 Method and device for running application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510198492.4A CN106155733B (en) 2015-04-23 2015-04-23 Method and device for running application program

Publications (2)

Publication Number Publication Date
CN106155733A CN106155733A (en) 2016-11-23
CN106155733B true CN106155733B (en) 2020-07-17

Family

ID=57347043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510198492.4A Active CN106155733B (en) 2015-04-23 2015-04-23 Method and device for running application program

Country Status (1)

Country Link
CN (1) CN106155733B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608861B (en) * 2017-10-11 2019-09-10 Oppo广东移动通信有限公司 Cooling control method and device
CN109408149B (en) * 2018-10-30 2022-02-25 青岛海信传媒网络技术有限公司 Application program starting method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101256484A (en) * 2007-02-28 2008-09-03 国际商业机器公司 Method and equipment for determining to call at least one application program frequency
CN101379451A (en) * 2006-02-07 2009-03-04 欧睦技术公司 Application software initiated speedup
CN103513748A (en) * 2012-06-29 2014-01-15 联想(北京)有限公司 Method for processing information, information processor and electronic device
CN104346226A (en) * 2013-08-09 2015-02-11 联想(北京)有限公司 Processor frequency control method and electronic equipment
CN104407690A (en) * 2014-12-19 2015-03-11 中科创达软件股份有限公司 Method, device and mobile terminal for regulating operating frequency of CPU (Central Processing Unit)
CN104424031A (en) * 2013-08-23 2015-03-18 中兴通讯股份有限公司 Working frequency control method and device for processor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101379451A (en) * 2006-02-07 2009-03-04 欧睦技术公司 Application software initiated speedup
CN101256484A (en) * 2007-02-28 2008-09-03 国际商业机器公司 Method and equipment for determining to call at least one application program frequency
CN103513748A (en) * 2012-06-29 2014-01-15 联想(北京)有限公司 Method for processing information, information processor and electronic device
CN104346226A (en) * 2013-08-09 2015-02-11 联想(北京)有限公司 Processor frequency control method and electronic equipment
CN104424031A (en) * 2013-08-23 2015-03-18 中兴通讯股份有限公司 Working frequency control method and device for processor
CN104407690A (en) * 2014-12-19 2015-03-11 中科创达软件股份有限公司 Method, device and mobile terminal for regulating operating frequency of CPU (Central Processing Unit)

Also Published As

Publication number Publication date
CN106155733A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
CN107734616B (en) Application program closing method and device, storage medium and electronic equipment
CN106786962B (en) Charging control method and device and terminal
CN104778055B (en) Method and device for displaying progress bar
EP2869604B1 (en) Method, apparatus and device for processing a mobile terminal resource
CN107734618B (en) Application program closing method and device, storage medium and electronic equipment
CN111510901B (en) Power adjusting method, device, storage medium and terminal
CN103197944B (en) Method for determining performance of process of application program and computer system
CN106532876B (en) Power supply control method and device and computer equipment
CN107122036B (en) Method and device for adjusting frequency of central processing unit
CN106919458B (en) Method and device for Hook target kernel function
CN106155733B (en) Method and device for running application program
CN111404242A (en) Charging method, charging device, storage medium and mobile terminal
CN110876098B (en) Audio processing method and electronic equipment
CN112542867B (en) Mobile terminal power supply control method and device, terminal equipment and storage medium
CN106933626B (en) Application association method and device
CN107122204B (en) Application unloading state detection method and device
CN112261634B (en) Bluetooth transmission control method and device, terminal equipment and storage medium
CN111308303B (en) Method and device for detecting radio frequency power amplifier of mobile terminal
CN110471622B (en) SD card data writing method and device, storage medium and terminal
CN112860352A (en) Application loading method and device, storage medium and terminal
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN111966206A (en) Power-saving control method and device for fingerprint sensor and mobile terminal
CN106294025B (en) Method and device for downloading terminal software
CN106293783B (en) Installation package cleaning method and equipment
CN106033358B (en) Batch installation method and device of application programs

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant