CN106776041B - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN106776041B
CN106776041B CN201611270392.9A CN201611270392A CN106776041B CN 106776041 B CN106776041 B CN 106776041B CN 201611270392 A CN201611270392 A CN 201611270392A CN 106776041 B CN106776041 B CN 106776041B
Authority
CN
China
Prior art keywords
cpu
processing
application
processing request
preset
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.)
Expired - Fee Related
Application number
CN201611270392.9A
Other languages
Chinese (zh)
Other versions
CN106776041A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611270392.9A priority Critical patent/CN106776041B/en
Publication of CN106776041A publication Critical patent/CN106776041A/en
Application granted granted Critical
Publication of CN106776041B publication Critical patent/CN106776041B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5022Workload threshold

Abstract

The invention discloses a data processing method, which is applied to terminal equipment provided with applications, wherein the terminal equipment comprises a plurality of Central Processing Units (CPUs) and comprises the following steps: when a processing request of an update task of an application is detected, determining the occupation amount of CPU resources required for processing the processing request; and when the occupation amount of the CPU resources required for processing the processing request is less than a first threshold value, calling a preset customized CPU in the CPUs to finish the processing request. The embodiment of the invention also provides a data processing device and terminal equipment. The embodiment of the invention can avoid the problem of blocking other running programs when the application is updated.

Description

Data processing method and device
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a data processing method and apparatus.
Background
With the continuous development of the technology, the version of the application program is continuously updated. In daily life, a user usually updates an application (such as a QQ, a WeChat, a microblog, a Taobao, and the like) installed in an intelligent terminal (such as a smart phone, a tablet computer, and the like). If the updated application needs to occupy more CPU resources, less CPU resources are allocated to other running programs, which may cause other running programs to be stuck.
Disclosure of Invention
Embodiments of the present invention provide a data processing method and apparatus, so as to avoid a problem that other running programs are jammed when an application is updated.
In a first aspect, an embodiment of the present invention provides a data processing method, which is applied to a terminal device installed with an application, where the terminal device includes a plurality of Central Processing Units (CPUs), and includes:
when a processing request of an update task of an application is detected, determining the occupation amount of CPU resources required for processing the processing request;
and when the occupation amount of the CPU resources required for processing the processing request is less than a first threshold value, calling the preset customized CPU to finish the processing request.
In a second aspect, an embodiment of the present invention provides a data processing apparatus, which is applied to a terminal device installed with an application, where the terminal device includes a plurality of Central Processing Units (CPUs), and includes:
the device comprises a first determination module, a second determination module and a third determination module, wherein the first determination module is used for determining the occupation amount of CPU resources required for processing a processing request when the processing request of an update task of an application is detected;
and the calling module is used for calling the preset customized CPU to complete the processing request when the occupation amount of the CPU resource required by processing the processing request is less than a first threshold value.
In a third aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes a processor, and the processor is configured to support the terminal device to execute corresponding functions in the method of the first aspect. Further, the terminal device may further include a communication interface. Further, the terminal device may also include a memory for coupling with the processor that retains program instructions and data necessary for the terminal device.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores program code for execution by a computer device, where the program code specifically includes instructions for performing some or all of the steps described in the first aspect of the embodiment of the present invention.
According to the scheme provided by the invention, when the processing request of the update task of the application is detected, the occupation amount of the CPU resource required for processing the processing request is firstly determined, and if the occupation amount of the CPU resource required for processing the processing request is smaller than the first threshold value, the preset customized CPU in the CPUs in the terminal equipment is called to complete the processing request.
These and other aspects of the invention are apparent from and will be elucidated with reference to the embodiments described hereinafter.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention;
FIG. 2 is an exemplary diagram of an interaction state of a task management interface according to an embodiment of the present invention;
FIG. 3 is a flow chart of another data processing method provided by the embodiment of the invention;
FIG. 4 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal device disclosed in the embodiment of the present invention;
fig. 6 is a schematic structural diagram of another terminal device disclosed in the embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The terminal device according to the embodiment of the present invention may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, which have wireless communication functions, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, the above-mentioned devices are collectively referred to as a mobile terminal. The following describes embodiments of the present invention in detail.
Referring to fig. 1, fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention, which is applied to a terminal device installed with an application, where the terminal device includes a plurality of Central Processing Units (CPUs), and the data processing method includes the following steps:
s101, when a processing request of an update task of an application is detected, the terminal equipment determines the occupation amount of CPU resources required for processing the processing request.
The processing request of the application updating task is triggered by clicking an updating frame corresponding to the application on an application management interface by a user.
The applications include various applications installed in the terminal device, such as WeChat applications, Aiqiyi, UC browsers, Taobao applications, and the like. The update task of the application includes version update of the application.
In an embodiment, the processing request carries a size of an update packet required for updating the application, and the specific implementation manner of the step S101 in which the terminal device determines an occupation amount of CPU resources required for processing the processing request is as follows: the terminal equipment determines the occupation amount of the memory resources required for processing the processing request according to the size of the update packet; and the terminal equipment determines the occupation amount of the CPU resource required by processing the processing request according to the occupation amount of the memory resource.
The larger the update package required for updating the application is, the more memory resources are required for processing the processing request, and the more data needs to be processed, the more CPU resources are required. Therefore, the occupation amount of the needed CPU resources is determined according to the size of the applied update package, and resource utilization maximization is facilitated.
And S102, when the occupation amount of CPU resources required for processing the processing request is smaller than a first threshold value, the terminal equipment calls the preset customized CPU to finish the processing request.
In one embodiment, the predetermined custom CPU is a dedicated CPU; or the preset customized CPU preferentially occupies the CPU. That is, the predetermined custom CPU is dedicated to process the update task of the application, or the predetermined custom CPU is preferentially used to process the update task of the application, for example, two processing tasks are required to be processed, one of the two tasks is the update task of the application, and the other is the data processing task of the application, and the predetermined custom CPU is preferentially used to process the update task of the application.
In one embodiment, the method shown in fig. 1 further comprises:
when the occupation amount of the CPU resource required by processing the processing request is larger than or equal to the first threshold, the terminal equipment determines whether the residual occupation amount of the current CPU resource of the preset customized CPU is larger than or equal to a second threshold; and when the remaining occupied amount of the current CPU resource of the preset customized CPU is greater than or equal to the second threshold, the terminal equipment adopts the preset customized CPU to complete the processing request.
In an embodiment, the second threshold is equal to an occupied amount of CPU resources required to process the processing request plus a third threshold, the third threshold being equal to an occupied amount of total CPU resources of the preset custom CPU multiplied by 10%.
When the occupancy rate of the CPU is larger, for example 90%, the terminal device may be stuck at this time, and the scheme avoids the phenomenon that other running programs are stuck due to application updating by limiting the remaining occupancy rate of the current CPU resource of the preset customized CPU to be not less than a certain amount.
In an embodiment, the method further includes:
when the remaining occupation amount of the current CPU resource of the preset customized CPU is smaller than the second threshold, the terminal equipment determines whether the occupation priority of the application is larger than or equal to a preset priority; and when the occupation priority of the application is greater than or equal to a preset priority, the terminal equipment releases the CPU resource of at least one application currently running on the preset customized CPU, and the preset customized CPU is adopted to complete the processing request.
In an embodiment, when the remaining occupation amount of the current CPU resource of the preset customized CPU is less than the second threshold, the terminal device determines whether the occupation priority of the application is greater than or equal to a preset priority; when the occupation priority of the application is greater than or equal to the preset priority, the terminal device outputs a task management interface, wherein the task management interface comprises the application currently running on the preset customized CPU and the CPU occupation amount of the running application; and when the selection operation aiming at least one application in the management interface is detected, releasing the memory resource of the at least one application, and finishing the processing request by adopting the preset customized CPU.
Referring to fig. 2, fig. 2 shows an application currently running on the preset customized CPU, and a user may select which CPU resources the user wants to release through the task management interface, for example, the user wants to release the CPU resources of the application a, and click the checkbox of the application a to perform checkup. Therefore, the terminal equipment guides the user to independently select the application to be released by providing a visual interactive interface, so that the user can directly participate in the process of releasing the CPU resource, and the use convenience of the user is improved. In addition, in order to avoid the user releasing the memory resource of the system application, the application shown in the task management interface is a non-system application.
The occupation priority of the application is customized by a user, or is set by the terminal device according to a preset policy, for example, the preset policy may be to first obtain usage parameters (such as times, frequency, duration, and the like) of the application in a preset time period, and then set the occupation priority of the application according to the usage parameters of the application. If the application is the WeChat application, because the WeChat application is one of the chat applications used by the current user for communication, the use times, the use frequency and the use duration of the WeChat application in the preset time period are all larger, and the occupation priority of the WeChat application is higher. If the application is the pay-for-use application, the number of times, frequency and duration of use of the pay-for-use application in a preset time period are not so large relative to the WeChat application, and then the occupation priority of the pay-for-use application is not so high as the occupation priority of the WeChat application. In addition, the embodiment of the present invention does not uniquely limit the specific implementation manner of how to set the occupation priority of the application.
Usually, when the CPU is preset to be in a working state, more applications may be occupied by the CPU, some applications are not used currently, and some applications are required to be operated currently by the user. For example, what the user currently requires to run is a WeChat application, but the background has multiple applications such as QQ, Taobao, Paobao, etc. to run. When the residual occupation amount of the current CPU resource of the preset customized CPU is not large and the occupation priority of the WeChat application is larger, the scheme releases some CPU resources of the application running on the preset customized CPU so that the preset customized CPU has enough CPU resources to run the application, thereby improving the user experience and avoiding the phenomenon of blocking of the terminal equipment.
In an embodiment, the occupancy priority of the at least one application is less than the occupancy priority of the application; or the occupation priority of the at least one application is smaller than the preset priority.
Further, when the occupation priority of the application is smaller than the preset priority, the terminal device generates a delay processing request, where the delay processing request is used to instruct the terminal device to complete the processing request by using the preset customized CPU when detecting that the remaining occupation amount of the preset customized CPU is greater than or equal to the second threshold. Therefore, when the remaining occupied amount of the current CPU resource of the preset customized CPU is not large and the occupied priority of the application is small, the scheme automatically generates the delay processing request without the need of a user for triggering the processing request of the update task of the application subsequently, so that the user experience is improved, and the phenomenon of blocking and pause of the terminal equipment is avoided.
Further, after the terminal device generates the delayed processing request, the terminal device outputs prompt information for prompting a user of the delayed processing of the processing request of the application update task.
It can be seen that, according to the scheme provided by the invention, when a processing request of an update task of an application is detected, the occupied amount of the CPU resource required for processing the processing request is determined, and if the occupied amount of the CPU resource required for processing the processing request is smaller than a first threshold value, the preset customized CPU in the CPUs in the terminal device is called to complete the processing request.
An embodiment of the present invention further provides another more detailed method flow, as shown in fig. 3, which is applied to a terminal device installed with an application, where the terminal device includes a plurality of CPUs, and includes:
s301, when a processing request of an update task of an application is detected, the terminal equipment determines the occupation amount of CPU resources required for processing the processing request.
S302, the terminal device determines whether the occupation amount of the CPU resource required by processing the processing request is smaller than a first threshold value.
If the occupation amount of the CPU resources required for processing the processing request is less than the first threshold, step S303 is executed.
If the occupation amount of the CPU resources required for processing the processing request is greater than or equal to the first threshold, step S306 is executed.
S303, the terminal device determines whether the residual occupation amount of the current CPU resource of the preset customized CPU in the CPUs is larger than or equal to a second threshold value.
If the remaining occupied amount of the current CPU resource of the preset customized CPU is greater than or equal to the second threshold, step S306 is executed.
And if the remaining occupied amount of the current CPU resource of the preset customized CPU is less than the second threshold, executing step S304.
S304, the terminal device determines whether the occupation priority of the application is greater than or equal to a preset priority.
If the occupied priority of the application is greater than or equal to the preset priority, step S305 is executed.
If the occupied priority of the application is less than the preset priority, step S307 is executed.
S305, the terminal equipment releases the CPU resource of at least one application running on the preset customized CPU, wherein the occupation priority of the at least one application is smaller than that of the application; or the occupation priority of the at least one application is smaller than the preset priority.
S306, the terminal equipment adopts the preset customized CPU to complete the processing request.
S307, the terminal device generates a delay processing request, wherein the delay processing request is used for indicating that the terminal device adopts the preset customized CPU to complete the processing request when detecting that the remaining occupied amount of the preset customized CPU is larger than or equal to the second threshold value.
It should be noted that, the specific implementation of the steps of the method shown in fig. 3 can refer to the specific implementation described in the above method, and will not be described here.
An embodiment of the present invention further provides a data processing apparatus 400, as shown in fig. 4, which is applied to a terminal device installed with an application, where the terminal device includes a plurality of Central Processing Units (CPUs), and includes:
a first determining module 401, configured to determine, when a processing request of an update task of an application is detected, an occupation amount of CPU resources required to process the processing request;
a calling module 402, configured to, when the occupation amount of the CPU resources required for processing the processing request is smaller than a first threshold, call a preset customized CPU of the multiple CPUs to complete the processing request.
In one embodiment, the predetermined custom CPU is a dedicated CPU; or the preset customized CPU preferentially occupies the CPU.
In an embodiment, the processing request carries a size of an update package required for updating the application, and the first determining module 401 is specifically configured to:
determining the occupation amount of memory resources required for processing the processing request according to the size of the update packet;
and determining the occupation amount of the CPU resources required for processing the processing request according to the occupation amount of the memory resources.
In one embodiment, the apparatus further comprises:
a second determining module 403, configured to determine, when an occupied amount of the CPU resource required for processing the processing request is greater than or equal to the first threshold, whether a remaining occupied amount of the current CPU resource of the preset customized CPU is greater than or equal to a second threshold;
the invoking module 402 is specifically configured to: and when the remaining occupied amount of the current CPU resource of the preset customized CPU is larger than or equal to the second threshold value, calling the preset customized CPU to complete the processing request.
In one embodiment, the apparatus further comprises:
a third determining module 404, configured to determine whether the occupancy priority of the application is greater than or equal to a preset priority when the remaining occupancy amount of the current CPU resource of the preset customized CPU is smaller than the second threshold;
a releasing module 405, configured to release a CPU resource of at least one application currently running on the preset customized CPU when the occupied priority of the application is greater than or equal to a preset priority;
the invoking module 402 is further configured to invoke the preset customized CPU to complete the processing request.
It should be noted that the above modules (the first determining module 401, the calling module 402, the second determining module 403, the third determining module 404, and the releasing module 405) are used for executing relevant steps of the above method. For example, the first determining module 401 is used for executing the above step S101, the calling module 402 is used for executing the above step S102, and so on.
In the present embodiment, the data processing apparatus 400 is presented in the form of a module. A "module" herein may refer to an application-specific integrated circuit (ASIC), a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other devices that may provide the described functionality. Further, the above first determining module 401, calling module 402, second determining module 403, third determining module 404 and releasing module 405 may be implemented by the processor 501 shown in fig. 5.
As shown in fig. 5, the terminal device 500 may be implemented in the structure of fig. 5, the terminal device 500 comprising a plurality of processors 501, at least one memory 502 and at least one communication interface 503. The processor 501, the memory 502 and the communication interface 503 are connected through the communication bus and complete communication with each other.
The processor 501 may be a general purpose Central Processing Unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of programs according to the above schemes.
Communication interface 503 is used for communicating with other devices or communication Networks, such as ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), etc.
The Memory 502 may be, but is not limited to, a Read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be self-contained and coupled to the processor via a bus. The memory may also be integral to the processor.
The memory 502 is used for storing application program codes for executing the above scheme, and is controlled by the processor 501 for execution. The processor 501 is used to execute application program code stored in the memory 502.
The code stored in the memory 502 can execute the above-mentioned data processing method executed by the terminal device provided above, such as determining the occupation amount of CPU resources required for processing a processing request of an update task of an application when the processing request is detected; and when the occupation amount of the CPU resources required for processing the processing request is less than a first threshold value, calling a preset customized CPU in the CPUs to finish the processing request.
Fig. 6 is a block diagram illustrating a partial structure of a mobile phone related to a terminal device provided in an embodiment of the present invention. Referring to fig. 6, the handset 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, a processor 980, and a power supply 990. Those skilled in the art will appreciate that the handset configuration shown in fig. 6 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.
The following describes each component of the mobile phone in detail with reference to fig. 6:
RF circuitry 910 may be used for the reception and transmission of information. In general, the 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. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 920 may be used to store software programs and modules, and the processor 980 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the usage of the mobile phone (such as the size of an update package of an application, the occupation amount of CPU resources required to process the processing request, and the like), and the like. Further, the memory 920 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.
The input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 930 may include a fingerprint recognition module 931 and other input devices 932. Fingerprint identification module 931, can gather the fingerprint data of user above it. The input unit 930 may include other input devices 932 in addition to the fingerprint recognition module 931. In particular, other input devices 932 may include, but are not limited to, one or more of a touch screen, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 940 may include a display screen 941, and optionally, the display screen 941 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Although in fig. 5, the fingerprint recognition module 931 and the display screen 941 are shown as two separate components to implement the input and output functions of the mobile phone, in some embodiments, the fingerprint recognition module 931 and the display screen 941 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, 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 ambient light, and the proximity sensor may turn off the display screen 941 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a 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 on the mobile phone, further description is omitted here.
Audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and a cell phone. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and the audio signal is converted by the speaker 961 to be played; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 960, and then processes the audio data by the audio data playing processor 980, and then sends the audio data to, for example, another mobile phone through the RF circuit 910, or plays the audio data to the memory 920 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 970, and provides wireless broadband Internet access for the user. Although fig. 6 shows the WiFi module 970, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. Alternatively, processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
The handset also includes a power supply 990 (e.g., a battery) for supplying power to the various components, which may preferably be logically connected to the processor 980 via a power management system, thereby providing management of charging, discharging, and power consumption via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the embodiments shown in fig. 1 to fig. 3, the method flows of the steps may be implemented based on the structure of the mobile phone.
In the embodiment shown in fig. 4, the functions of the units can be implemented based on the structure of the mobile phone.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and the program includes, when executed, some or all of the steps of any one of the data processing methods described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a 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 stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above embodiments of the present invention are described in detail, and the principle and the implementation of the present invention are explained by applying specific embodiments, and the above description of the embodiments is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in view of the above, the content of the present specification should not be construed as a limitation to the present invention.

Claims (9)

1. A data processing method applied to a terminal device installed with an application, the terminal device including a plurality of Central Processing Units (CPUs), comprising:
when a processing request of an update task of an application is detected, determining the occupation amount of CPU resources required for processing the processing request;
when the occupation amount of CPU resources required for processing the processing request is smaller than a first threshold value, calling a preset customized CPU in the CPUs to finish the processing request; the preset customized CPU is specially used for processing the update task of the application, or is preferentially used for processing the update task of the application;
when the occupation amount of the CPU resource required by processing the processing request is larger than or equal to the first threshold, determining whether the residual occupation amount of the current CPU resource of the preset customized CPU is larger than or equal to a second threshold; and when the remaining occupied amount of the current CPU resource of the preset customized CPU is larger than or equal to the second threshold value, calling the preset customized CPU to complete the processing request.
2. The method of claim 1, wherein the pre-defined custom CPU is a dedicated CPU; or the preset customized CPU preferentially occupies the CPU.
3. The method according to claim 1 or 2, wherein the processing request carries a size of an update packet required for updating the application, and the determining of the occupation amount of CPU resources required for processing the processing request comprises:
determining the occupation amount of memory resources required for processing the processing request according to the size of the update packet;
and determining the occupation amount of the CPU resources required for processing the processing request according to the occupation amount of the memory resources.
4. The method of claim 1, further comprising:
when the remaining occupation amount of the current CPU resource of the preset customized CPU is smaller than the second threshold, determining whether the occupation priority of the application is larger than or equal to a preset priority;
and when the occupation priority of the application is greater than or equal to a preset priority, releasing CPU resources of at least one application currently running on the preset customized CPU, and calling the preset customized CPU to complete the processing request.
5. A data processing apparatus, applied to a terminal device having an application installed therein, the terminal device including a plurality of Central Processing Units (CPUs), comprising:
the device comprises a first determination module, a second determination module and a third determination module, wherein the first determination module is used for determining the occupation amount of CPU resources required for processing a processing request when the processing request of an update task of an application is detected;
the calling module is used for calling a preset customized CPU in the CPUs to finish the processing request when the occupation amount of CPU resources required for processing the processing request is smaller than a first threshold value; the preset customized CPU is specially used for processing the update task of the application, or is preferentially used for processing the update task of the application;
the second determining module is used for determining whether the remaining occupation amount of the current CPU resource of the preset customized CPU is greater than or equal to a second threshold value or not when the occupation amount of the CPU resource required for processing the processing request is greater than or equal to the first threshold value;
the calling module is specifically configured to: and when the remaining occupied amount of the current CPU resource of the preset customized CPU is larger than or equal to the second threshold value, calling the preset customized CPU to complete the processing request.
6. The apparatus of claim 5, wherein the pre-defined custom CPU is a dedicated CPU; or the preset customized CPU preferentially occupies the CPU.
7. The apparatus according to claim 5 or 6, wherein the processing request carries a size of an update package required for updating the application, and the first determining module is specifically configured to:
determining the occupation amount of memory resources required for processing the processing request according to the size of the update packet;
and determining the occupation amount of the CPU resources required for processing the processing request according to the occupation amount of the memory resources.
8. The apparatus of claim 5, further comprising:
a third determining module, configured to determine whether the occupation priority of the application is greater than or equal to a preset priority when the remaining occupation amount of the current CPU resource of the preset custom CPU is smaller than the second threshold;
the release module is used for releasing the CPU resource of at least one application currently running on the preset customized CPU when the occupation priority of the application is greater than or equal to the preset priority;
the calling module is further configured to call the preset customized CPU to complete the processing request.
9. A terminal device comprising a processor, a memory, a communication interface and a bus;
the processor is connected with the memory and the communication interface through a bus and completes mutual communication;
the memory stores executable program instructions and the processor is configured to call the executable program code in the memory to perform the method as claimed in any one of claims 1 to 4.
CN201611270392.9A 2016-12-30 2016-12-30 Data processing method and device Expired - Fee Related CN106776041B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611270392.9A CN106776041B (en) 2016-12-30 2016-12-30 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611270392.9A CN106776041B (en) 2016-12-30 2016-12-30 Data processing method and device

Publications (2)

Publication Number Publication Date
CN106776041A CN106776041A (en) 2017-05-31
CN106776041B true CN106776041B (en) 2020-01-14

Family

ID=58951771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611270392.9A Expired - Fee Related CN106776041B (en) 2016-12-30 2016-12-30 Data processing method and device

Country Status (1)

Country Link
CN (1) CN106776041B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291601B (en) * 2017-06-12 2021-01-22 北京奇艺世纪科技有限公司 Safe operation and maintenance method and system
CN107391263A (en) * 2017-08-07 2017-11-24 安徽优易思信息技术有限责任公司 A kind of processing method and processing device of information request

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770125A (en) * 2004-11-04 2006-05-10 华为技术有限公司 Memory allocation method
CN1936849A (en) * 2005-09-19 2007-03-28 国际商业机器公司 Resource dynamic regulation method and apparatus
CN102289396A (en) * 2011-09-01 2011-12-21 宇龙计算机通信科技(深圳)有限公司 Terminal and backup and recovery method
CN102306095A (en) * 2011-07-21 2012-01-04 宇龙计算机通信科技(深圳)有限公司 Application management method and terminal
CN102571453A (en) * 2012-02-20 2012-07-11 浪潮(北京)电子信息产业有限公司 Facility resource pool management method and system
CN102750217A (en) * 2012-05-30 2012-10-24 宇龙计算机通信科技(深圳)有限公司 Method and device for displaying application program icons and terminal device
CN102981878A (en) * 2012-11-28 2013-03-20 广东欧珀移动通信有限公司 Method for automatically closing background programs and mobile terminal of automatically closing background programs
CN103631661A (en) * 2013-11-27 2014-03-12 青岛海信电器股份有限公司 Internal storage management method and device
CN103902364A (en) * 2012-12-25 2014-07-02 腾讯科技(深圳)有限公司 Physical resource management method and device and intelligent terminal
CN104182361A (en) * 2014-08-20 2014-12-03 北京国双科技有限公司 Data caching processing method and device
CN104714895A (en) * 2015-03-23 2015-06-17 努比亚技术有限公司 Mobile terminal and method and device for increasing running speed of mobile terminal
CN105260117A (en) * 2015-09-30 2016-01-20 小米科技有限责任公司 Application control method and apparatus
CN105589750A (en) * 2015-07-07 2016-05-18 杭州华三通信技术有限公司 CPU (Central Processing Unit) resource scheduling method and server
CN105824702A (en) * 2016-03-22 2016-08-03 乐视云计算有限公司 Method and terminal for managing program memory footprint
CN105893142A (en) * 2015-12-31 2016-08-24 乐视移动智能信息技术(北京)有限公司 Resource distribution method and device
CN106126337A (en) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 A kind of EMS memory management process and terminal unit

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770125A (en) * 2004-11-04 2006-05-10 华为技术有限公司 Memory allocation method
CN1936849A (en) * 2005-09-19 2007-03-28 国际商业机器公司 Resource dynamic regulation method and apparatus
CN102306095A (en) * 2011-07-21 2012-01-04 宇龙计算机通信科技(深圳)有限公司 Application management method and terminal
CN102289396A (en) * 2011-09-01 2011-12-21 宇龙计算机通信科技(深圳)有限公司 Terminal and backup and recovery method
CN102571453A (en) * 2012-02-20 2012-07-11 浪潮(北京)电子信息产业有限公司 Facility resource pool management method and system
CN102750217A (en) * 2012-05-30 2012-10-24 宇龙计算机通信科技(深圳)有限公司 Method and device for displaying application program icons and terminal device
CN102981878A (en) * 2012-11-28 2013-03-20 广东欧珀移动通信有限公司 Method for automatically closing background programs and mobile terminal of automatically closing background programs
CN103902364A (en) * 2012-12-25 2014-07-02 腾讯科技(深圳)有限公司 Physical resource management method and device and intelligent terminal
CN103631661A (en) * 2013-11-27 2014-03-12 青岛海信电器股份有限公司 Internal storage management method and device
CN104182361A (en) * 2014-08-20 2014-12-03 北京国双科技有限公司 Data caching processing method and device
CN104714895A (en) * 2015-03-23 2015-06-17 努比亚技术有限公司 Mobile terminal and method and device for increasing running speed of mobile terminal
CN105589750A (en) * 2015-07-07 2016-05-18 杭州华三通信技术有限公司 CPU (Central Processing Unit) resource scheduling method and server
CN105260117A (en) * 2015-09-30 2016-01-20 小米科技有限责任公司 Application control method and apparatus
CN105893142A (en) * 2015-12-31 2016-08-24 乐视移动智能信息技术(北京)有限公司 Resource distribution method and device
CN105824702A (en) * 2016-03-22 2016-08-03 乐视云计算有限公司 Method and terminal for managing program memory footprint
CN106126337A (en) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 A kind of EMS memory management process and terminal unit

Also Published As

Publication number Publication date
CN106776041A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN107707768B (en) Processing method for running game application and related product
CN107272872B (en) Power saving control method and related product
CN106776038B (en) Hot application resource allocation method and mobile terminal
CN107302628B (en) Application function control method and related product
CN107071147B (en) Parameter adjusting method and device
CN106776036A (en) A kind of resource allocation methods and device
EP3467649B1 (en) Application control method and related device
CN107317918B (en) Parameter setting method and related product
US10719351B2 (en) Method for controlling states of processes and related device
CN107332997B (en) Method and device for reducing terminal heating, mobile terminal and storage medium
WO2018161543A1 (en) Method and device for controlling fingerprint processing resources
CN106209608B (en) Method and device for distinguishing and synchronizing chat information
CN108932093A (en) Split screen application switching method, device, storage medium and electronic equipment
CN106815079B (en) Hot application control method and mobile terminal
CN106980554B (en) Process processing method and device
CN106095566B (en) Response control method and mobile terminal
CN106776040A (en) A kind of resource allocation methods and device
CN106776041B (en) Data processing method and device
CN109960581B (en) Hardware resource allocation method and device, mobile terminal and storage medium
CN106815078B (en) Memory control method and equipment
WO2017206851A1 (en) Method for assigning installation task and mobile terminal
CN106817751B (en) Data sending method and mobile terminal
EP3344004B1 (en) Communication method, mobile terminal and storage medium
CN107889164B (en) Wireless local area network distribution processing method and related product
CN107066856B (en) Unlocking method and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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

Granted publication date: 20200114