CN108958829B - Pre-loaded resource control method, device, storage medium and terminal - Google Patents

Pre-loaded resource control method, device, storage medium and terminal Download PDF

Info

Publication number
CN108958829B
CN108958829B CN201810489476.4A CN201810489476A CN108958829B CN 108958829 B CN108958829 B CN 108958829B CN 201810489476 A CN201810489476 A CN 201810489476A CN 108958829 B CN108958829 B CN 108958829B
Authority
CN
China
Prior art keywords
hardware
working
preloading
parameter
processor
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
CN201810489476.4A
Other languages
Chinese (zh)
Other versions
CN108958829A (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 CN201810489476.4A priority Critical patent/CN108958829B/en
Publication of CN108958829A publication Critical patent/CN108958829A/en
Application granted granted Critical
Publication of CN108958829B publication Critical patent/CN108958829B/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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • 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

Landscapes

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

Abstract

The embodiment of the application discloses a pre-loaded resource control method, a pre-loaded resource control device, a pre-loaded resource control storage medium and a pre-loaded terminal, wherein the method comprises the following steps: firstly, acquiring hardware working parameters when preloading is triggered; then, determining a target working parameter according to the hardware working parameter, wherein the working efficiency of the target working parameter is greater than that of the hardware working parameter; and finally, controlling the hardware according to the target working parameters, so that the preloading speed can be increased, and the utilization rate of system resources can be increased.

Description

Pre-loaded resource control method, device, storage medium and terminal
Technical Field
The embodiment of the application relates to the technical field of mobile terminals, in particular to a preloaded resource control method, a preloaded resource control device, a preloaded resource control storage medium and a preloaded terminal.
Background
With the continuous development of mobile terminals, more and more applications are installed on the mobile terminals, and the requirements of users on the starting speed of the applications are gradually increased.
When the preloading is triggered, the mobile terminal allocates the processor resource and the memory resource to execute the preloading operation. However, the system resources such as the processor are limited, which results in a slow preloading speed and affects the preloading effect.
Disclosure of Invention
The embodiment of the application aims to provide a preloading resource control method, a preloading resource control device, a preloading storage medium and a preloading terminal, which can improve the preloading speed and the utilization rate of system resources.
In a first aspect, an embodiment of the present application provides a preloaded resource control method, including:
acquiring hardware working parameters when triggering preloading;
determining a target working parameter according to the hardware working parameter, wherein the working efficiency of the target working parameter is greater than that of the hardware working parameter;
and controlling the hardware according to the target working parameters.
In a second aspect, an embodiment of the present application provides a preloaded resource control device, including:
the acquisition module is used for acquiring hardware working parameters when triggering preloading;
the determining module is used for determining a target working parameter according to the hardware working parameter acquired by the acquiring module, wherein the working efficiency of the target working parameter is greater than that of the hardware working parameter;
and the control module is used for controlling the hardware according to the target working parameters determined by the determination module.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the preloaded resource control method as shown in the first aspect.
In a fourth aspect, an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored on the memory and executable by the processor, where the processor implements the preloaded resource control method shown in the first aspect when executing the computer program.
According to the resource control scheme for preloading, firstly, hardware working parameters are obtained when preloading is triggered; then, determining a target working parameter according to the hardware working parameter, wherein the working efficiency of the target working parameter is greater than that of the hardware working parameter; and finally, controlling the hardware according to the target working parameters, so that the preloading speed can be increased, and the utilization rate of system resources can be increased.
Drawings
Fig. 1 is a schematic flowchart of a preloaded resource control method according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating another preloading resource control method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating another preloading resource control method according to an embodiment of the present application;
fig. 4 is a flowchart illustrating another preloading resource control method according to an embodiment of the present application;
fig. 5 is a flowchart illustrating another preloading resource control method according to an embodiment of the present application;
fig. 6 is a flowchart illustrating another preloading resource control method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a preloaded resource control device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical scheme of the application is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
With the continuous development of mobile terminals, more and more applications are installed on the mobile terminals, and the requirements of users on the starting speed of the applications are gradually increased. Currently, when the preloading is triggered, the mobile terminal allocates processor resources and memory resources to perform the preloading operation. However, the system resources such as the processor are limited, which results in a slow preloading speed and affects the preloading effect.
The embodiment of the application provides a pre-loading resource control method, which can improve hardware working parameters and pre-loading speed during pre-loading, further avoid the problems that the pre-loading speed is low and part of system resources are continuously occupied due to less system resource distribution of a system for pre-loading, realize the use of target working parameters which are larger than the conventional working frequency of hardware during triggering pre-loading, and improve the starting speed of a target application program. For the user, the target application program is not loaded in the foreground, the partial system resources can be released more quickly as the preloading completion speed is higher, and in addition, the user can perform other operations in the saved preloading time, so that the condition that the user waits for the loading of the foreground application is avoided, and the utilization rate of the system resources is further improved. The specific scheme is as follows:
fig. 1 is a schematic flow diagram of a preloaded resource control method provided in an embodiment of the present application, where the method is used in a case where a terminal starts an application, and the method may be executed by a mobile terminal having an application running function, where the mobile terminal may be a smart phone, a tablet computer, a wearable device, a notebook computer, and the method specifically includes the following steps:
and step 110, acquiring hardware working parameters when preloading is triggered.
The hardware working parameters comprise: one or more of processor operating parameters, graphics processor operating parameters, memory operating parameters, and input-output operating parameters.
The hardware working parameters can be obtained through a parameter calling interface provided by the system.
And 120, determining a target working parameter according to the hardware working parameter, wherein the working efficiency of the target working parameter is greater than that of the hardware working parameter.
And multiplying the hardware working parameter by a preset adjusting parameter to obtain a target working parameter. The preset adjusting parameter is larger than 1, and can be selected as 1.5.
And step 130, controlling hardware according to the target working parameters.
And adjusting the hardware working parameters corresponding to the hardware working parameters into target hardware working parameters.
The resource control method for preloading provided by the embodiment of the application comprises the steps of firstly, acquiring hardware working parameters when preloading is triggered; then, determining a target working parameter according to the hardware working parameter, wherein the working efficiency of the target working parameter is greater than that of the hardware working parameter; finally, hardware is controlled according to the target working parameters, the hardware working parameters can be improved during preloading, the preloading speed is improved, the problems that the preloading speed is low and part of system resources are continuously occupied due to the fact that fewer system resources are allocated to the system for preloading are solved, the target working parameters which are larger than the conventional working frequency of the hardware are used during triggering preloading, and the starting speed of the target application program is improved. For the user, the target application program is not loaded in the foreground, the partial system resources can be released more quickly as the preloading completion speed is higher, and in addition, the user can perform other operations in the saved preloading time, so that the condition that the user waits for the loading of the foreground application is avoided, and the utilization rate of the system resources is further improved.
Fig. 2 is a schematic flowchart of a preloaded resource control method provided in an embodiment of the present application, which is used to further describe the foregoing embodiment, and includes:
and step 210, acquiring hardware working parameters when preloading is triggered.
And step 220, judging whether the occupancy rate of the processor exceeds a preset occupancy rate.
Illustratively, the hardware operating parameter is processor occupancy. The preset occupancy rate is more than 60%, and is 70% optionally. If the processor occupancy exceeds the preset occupancy, step 230 is performed. If the processor occupancy does not exceed the preset occupancy, step 250 is performed.
And step 230, if the occupancy rate of the processor exceeds the preset occupancy rate, increasing the frequency of the full core number of the processor.
And the working efficiency of the target working parameter is greater than that of the hardware working parameter.
The full core frequency boosting may be to increase the operating frequency of all core processing modules in the processor. The processor includes a dual-core processor, a quad-core processor, or an eight-core processor. If only one of the core processing modules is increased, the problem of mismatching processing speeds of the rest of the processing modules occurs. Therefore, when the working parameters are promoted, each processing core module in the processor adjusts the working parameters.
And step 240, controlling hardware according to the target working parameters.
And step 250, if the occupancy rate of the processor does not exceed the preset occupancy rate, increasing the frequency of the kernel number in the processor part.
The preloaded resource control method provided by the embodiment of the application can carry out full-core frequency increase on the processor, so that the processing efficiency of the processor is integrally improved, the preloading speed is increased, and the utilization rate of system resources is further improved.
Fig. 3 is a flowchart of a preloaded resource control method provided in an embodiment of the present application, which is used to further describe the foregoing embodiment, and includes:
and step 310, acquiring hardware working parameters when preloading is triggered.
And step 320, obtaining the cache use parameter.
And acquiring the use proportion of the cache.
Step 330, determining whether the cache usage parameter is greater than a preset usage parameter.
The preset usage parameter may be 50%. When the usage proportion of the cache exceeds 50%, the problem that the remaining cache space is occupied by the preloading occurs, so that other operations of the user cannot respond in time.
And 340, if the cache use parameter is larger than the preset use parameter, improving the read-write speed of the cache.
When the read-write speed of the cache is increased, the read-write speed of the data can be increased, and the preloading speed is further increased.
And 350, controlling hardware according to the target working parameters.
And step 360, if the cache use parameter is less than or equal to the preset use parameter, using the current read-write speed.
According to the preloaded resource control method provided by the embodiment of the application, when the cache use parameter is larger than the preset use parameter, the read-write speed of the cache is increased, the data read-write speed is increased, the preloading speed is increased, and the utilization rate of system resources is increased.
Fig. 4 is a flowchart of a preloaded resource control method provided in an embodiment of the present application, which is used to further describe the foregoing embodiment, and includes:
and step 410, acquiring hardware working parameters when preloading is triggered.
And step 420, if the hardware working parameter is less than one half of the full-load working parameter, determining one time of the hardware working parameter as the target working parameter.
If the hardware is a processor, the full load operating parameter is 100% operating frequency. If the hardware is a memory, the full load working parameters are the memory occupancy rate of 100% and the memory read-write rate.
Further, if the hardware operating parameter is greater than one-half of the full load operating parameter, the full load operating parameter is determined as the target operating parameter.
And step 430, controlling hardware according to the target working parameters.
According to the resource control method for preloading, when the target working parameter is larger than the full-load working parameter, the working parameter can be adjusted, so that hardware damage caused by hardware overload work is avoided, and the preloading reliability is improved.
Fig. 5 is a flowchart of a preloaded resource control method provided in an embodiment of the present application, which is used to further describe the foregoing embodiment, and includes:
and step 510, acquiring hardware working parameters when preloading is triggered.
And 520, calculating the preloading time according to the hardware working parameters.
The preload time is estimated based on hardware operating parameters. Optionally, the hardware working parameters and the key value pairs of the preloading time are recorded, and a historical time record is generated. And calculating the preloading time according to the historical time history record and the current hardware working parameter.
And step 530, if the pre-loading time is greater than a preset time threshold, determining a target working parameter according to the hardware working parameter and the pre-loading time.
The preset time threshold may be an average elapsed time in the historical elapsed time record.
And 540, controlling the hardware according to the target working parameters.
The resource control method for preloading can calculate the preloading time according to the hardware working parameters during preloading, improve the hardware working parameters when the preloading time is greater than the preset time threshold, avoid accelerating the hardware when the system resources are abundant, avoid unnecessary energy consumption, improve the preloading accuracy and improve the system resource utilization rate.
Fig. 6 is a flowchart of a preloaded resource control method provided in an embodiment of the present application, which is used to further describe the foregoing embodiment, and includes:
and step 610, acquiring the working parameters of the processor when preloading is triggered.
And step 620, if the working parameters of the processor are larger than the preset working parameters, obtaining the working parameters of at least two pieces of hardware in the memory, the input and output resources and the graphic processor.
The memory, the input and output resources and the working parameters of the graphic processor can be obtained through the system interface.
And step 630, determining target working parameters according to the hardware working parameters.
And the working efficiency of the target working parameter is greater than that of the hardware working parameter.
When the target operating parameters are determined, it is determined whether the target operating parameters of at least two hardware in the memory, the input/output resources, and the graphics processor are matched, and if so, step 640 is executed. If not, the target working parameter is determined again, or the hardware for adjusting the working parameter is changed. For example, the operating parameters of the memory and the graphics processor are simultaneously increased during the first adjustment, but the read-write frequency of the input/output resources is low at this time, which results in that the operating frequency of the memory cannot be increased. At this time, secondary adjustment is required, and the memory, the input/output resources, and the operating parameters of the graphics processor are improved.
And step 640, controlling hardware according to the target working parameters.
The preloaded resource control method provided by the embodiment of the application can determine to increase an efficient hardware acceleration scheme through adjustment of a plurality of hardware, avoid unnecessary energy consumption, improve the preload accuracy and improve the utilization rate of system resources.
Fig. 7 is a schematic structural diagram of a preloaded resource control device according to an embodiment of the present application. As shown in fig. 7, the apparatus includes: an acquisition module 710, a determination module 720, and a control module 730.
An obtaining module 710, configured to obtain hardware operating parameters when triggering preloading;
a determining module 720, configured to determine a target working parameter according to the hardware working parameter obtained by the obtaining module 710, where a working efficiency of the target working parameter is greater than a working efficiency of the hardware working parameter;
a control module 730, configured to control the hardware according to the target operating parameter determined by the determining module 720.
Further, the hardware operating parameter is processor occupancy, and the determining module 720 is configured to:
judging whether the occupancy rate of the processor exceeds a preset occupancy rate;
and if the occupancy rate of the processor exceeds the preset occupancy rate, the full-core frequency of the processor is increased.
Further, the determining module 720 is configured to:
obtaining a cache use parameter;
and if the cache use parameter is larger than a preset use parameter, improving the read-write speed of the cache.
Further, the determining module 720 is configured to:
and if the hardware working parameter is less than one half of the full-load working parameter, determining one time of the hardware working parameter as a target working parameter.
Further, the determining module 720 is configured to:
and if the hardware working parameter is more than one half of the full load working parameter, determining the full load working parameter as the target working parameter.
Further, the determining module 720 is configured to:
calculating the preloading time according to the hardware working parameters;
and if the pre-loading time is greater than a preset time threshold, determining a target working parameter according to the hardware working parameter and the pre-loading time.
Further, the obtaining module 710 is configured to:
acquiring working parameters of a processor when preloading is triggered;
and if the processor working parameter is larger than the preset working parameter, obtaining the working parameters of at least two pieces of hardware in the memory, the input and output resources and the graphic processor.
In the resource control device for preloading provided in the embodiment of the present application, first, the obtaining module 710 obtains hardware working parameters when triggering preloading; then, the determining module 720 determines a target working parameter according to the hardware working parameter, wherein the working efficiency of the target working parameter is greater than the working efficiency of the hardware working parameter; finally, the control module 730 controls the hardware according to the target working parameters, so that the working parameters of the hardware can be increased during preloading, the preloading speed can be increased, the problems that the preloading speed is low and part of system resources are continuously occupied due to less system resources allocated by a system for preloading can be avoided, the target working parameters which are larger than the conventional working frequency of the hardware are used during triggering preloading, and the starting speed of a target application program can be increased. For the user, the target application program is not loaded in the foreground, the partial system resources can be released more quickly as the preloading completion speed is higher, and in addition, the user can perform other operations in the saved preloading time, so that the condition that the user waits for the loading of the foreground application is avoided, and the utilization rate of the system resources is further improved.
The device can execute the methods provided by all the embodiments of the application, and has corresponding functional modules and beneficial effects for executing the methods. For details of the technology not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the present application.
Fig. 8 is a schematic structural diagram of another terminal device provided in an embodiment of the present application. As shown in fig. 8, the terminal may include: a housing (not shown), a memory 801, a Central Processing Unit (CPU) 802 (also called a processor, hereinafter referred to as CPU), a computer program stored in the memory 801 and operable on the processor 802, a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU802 and the memory 801 are provided on a circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; a memory 801 for storing executable program code; the CPU802 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 801.
The terminal further includes: peripheral interface 803, RF (Radio Frequency) circuitry 805, audio circuitry 806, speakers 811, power management chip 808, input/output (I/O) subsystem 809, touch screen 812, other input/control devices 810, and external port 804, which communicate over one or more communication buses or signal lines 807.
It should be understood that the illustrated terminal device 800 is merely one example of a terminal, and that the terminal device 800 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a terminal device provided in this embodiment, where the terminal device is a smart phone as an example.
Memory 801, memory 801 accessible by CPU802, peripheral interface 803, and the like, memory 801 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
Peripheral interface 803, peripheral interface 803 may connect input and output peripherals of the device to CPU802 and memory 801.
I/O subsystems 809, I/O subsystems 809 can connect input and output peripherals on the device, such as touch screen 812 and other input/control devices 810, to peripheral interface 803. The I/O subsystem 809 may include a display controller 8091 and one or more input controllers 8092 for controlling other input/control devices 810. Where one or more input controllers 8092 receive electrical signals from or transmit electrical signals to other input/control devices 810, other input/control devices 810 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 8092 may be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
The touch screen 812 may be a resistive type, a capacitive type, an infrared type, or a surface acoustic wave type, according to the operating principle of the touch screen and the classification of media for transmitting information. The touch screen 812 may be classified by installation method: external hanging, internal or integral. Classified according to technical principles, the touch screen 812 may be: a vector pressure sensing technology touch screen, a resistive technology touch screen, a capacitive technology touch screen, an infrared technology touch screen, or a surface acoustic wave technology touch screen.
Touch screen 812, touch screen 812 is an input interface and an output interface between the user terminal and the user, displaying visual output to the user, which may include graphics, text, icons, video, and the like. Optionally, the touch screen 812 sends an electrical signal (e.g., an electrical signal of the touch surface) triggered by the user on the touch screen to the processor 802.
The display controller 8091 in the I/O subsystem 809 receives electrical signals from the touch screen 812 or sends electrical signals to the touch screen 812. The touch screen 812 detects a contact on the touch screen, and the display controller 8091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 812, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 812 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 805 is mainly used to establish communication between the smart speaker and a wireless network (i.e., a network side), and implement data reception and transmission between the smart speaker and the wireless network. Such as sending and receiving short messages, e-mails, etc.
The audio circuit 806 is mainly used to receive audio data from the peripheral interface 803, convert the audio data into an electric signal, and transmit the electric signal to the speaker 811.
Speaker 811 is used to convert the voice signals received by the smart speaker from the wireless network through RF circuit 805 into sound and play the sound to the user.
And the power management chip 808 is used for supplying power and managing power to the hardware connected with the CPU802, the I/O subsystem and the peripheral interface.
In this embodiment, the cpu802 is configured to:
acquiring hardware working parameters when triggering preloading;
determining a target working parameter according to the hardware working parameter, wherein the working efficiency of the target working parameter is greater than that of the hardware working parameter;
and controlling the hardware according to the target working parameters.
Further, the hardware operating parameter is processor occupancy rate, and determining a target operating parameter according to the hardware operating parameter includes:
judging whether the occupancy rate of the processor exceeds a preset occupancy rate;
and if the occupancy rate of the processor exceeds the preset occupancy rate, the full-core frequency of the processor is increased.
Further, the determining a target operating parameter according to the hardware operating parameter includes:
obtaining a cache use parameter;
and if the cache use parameter is larger than a preset use parameter, improving the read-write speed of the cache.
Further, the determining a target operating parameter according to the hardware operating parameter includes:
and if the hardware working parameter is less than one half of the full-load working parameter, determining one time of the hardware working parameter as a target working parameter.
Further, if the hardware operating parameter is greater than one-half of the full load operating parameter, the full load operating parameter is determined as the target operating parameter.
Further, the determining a target operating parameter according to the hardware operating parameter includes:
calculating the preloading time according to the hardware working parameters;
and if the pre-loading time is greater than a preset time threshold, determining a target working parameter according to the hardware working parameter and the pre-loading time.
Further, the obtaining of the hardware operating parameter when triggering the preloading includes:
acquiring working parameters of a processor when preloading is triggered;
and if the processor working parameter is larger than the preset working parameter, obtaining the working parameters of at least two pieces of hardware in the memory, the input and output resources and the graphic processor.
Embodiments of the present application further provide a storage medium containing terminal device executable instructions, which when executed by a terminal device processor, are configured to perform a pre-loaded resource control method, where the method includes:
acquiring hardware working parameters when triggering preloading;
determining a target working parameter according to the hardware working parameter, wherein the working efficiency of the target working parameter is greater than that of the hardware working parameter;
and controlling the hardware according to the target working parameters.
Further, the hardware operating parameter is processor occupancy rate, and determining a target operating parameter according to the hardware operating parameter includes:
judging whether the occupancy rate of the processor exceeds a preset occupancy rate;
and if the occupancy rate of the processor exceeds the preset occupancy rate, the full-core frequency of the processor is increased.
Further, the determining a target operating parameter according to the hardware operating parameter includes:
obtaining a cache use parameter;
and if the cache use parameter is larger than a preset use parameter, improving the read-write speed of the cache.
Further, the determining a target operating parameter according to the hardware operating parameter includes:
and if the hardware working parameter is less than one half of the full-load working parameter, determining one time of the hardware working parameter as a target working parameter.
Further, if the hardware operating parameter is greater than one-half of the full load operating parameter, the full load operating parameter is determined as the target operating parameter.
Further, the determining a target operating parameter according to the hardware operating parameter includes:
calculating the preloading time according to the hardware working parameters;
and if the pre-loading time is greater than a preset time threshold, determining a target working parameter according to the hardware working parameter and the pre-loading time.
Further, the obtaining of the hardware operating parameter when triggering the preloading includes:
acquiring working parameters of a processor when preloading is triggered;
and if the processor working parameter is larger than the preset working parameter, obtaining the working parameters of at least two pieces of hardware in the memory, the input and output resources and the graphic processor.
The computer storage media of the embodiments of the present application may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Of course, the storage medium provided in the embodiments of the present application and containing computer-executable instructions is not limited to the above-described application recommendation operation, and may also perform related operations in the application recommendation method provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (5)

1. A method for pre-loading resource control, comprising:
acquiring hardware working parameters when triggering preloading;
recording hardware working parameters and key value pairs of preloading time to generate historical time records; calculating the preloading time according to the historical time record and the current hardware working parameters;
if the pre-loading time is greater than a preset time threshold, determining a target working parameter according to the current hardware working parameter and the pre-loading time, wherein the preset time threshold is the average time in the historical time record, and the working efficiency of the target working parameter is greater than that of the hardware working parameter;
and controlling the hardware according to the target working parameters.
2. The method for controlling preloaded resources of claim 1, wherein said obtaining hardware operating parameters when triggering preloading comprises:
acquiring working parameters of a processor when preloading is triggered;
and if the processor working parameter is larger than the preset working parameter, obtaining the working parameters of at least two pieces of hardware in the memory, the input and output resources and the graphic processor.
3. A preloaded resource control device, comprising:
the acquisition module is used for acquiring hardware working parameters when triggering preloading;
the determining module is used for recording the hardware working parameters and the key value pairs of the preloading time and generating historical time-use records; calculating the preloading time according to the historical time record and the current hardware working parameters;
if the pre-loading time is greater than a preset time threshold, determining a target working parameter according to the current hardware working parameter and the pre-loading time, wherein the preset time threshold is the average time in the historical time record, and the working efficiency of the target working parameter is greater than that of the hardware working parameter;
and the control module is used for controlling the hardware according to the target working parameters determined by the determination module.
4. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the preloaded resource control method of any one of claims 1-2.
5. A terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the preloaded resource control method of any of claims 1-2 when executing said computer program.
CN201810489476.4A 2018-05-21 2018-05-21 Pre-loaded resource control method, device, storage medium and terminal Expired - Fee Related CN108958829B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810489476.4A CN108958829B (en) 2018-05-21 2018-05-21 Pre-loaded resource control method, device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810489476.4A CN108958829B (en) 2018-05-21 2018-05-21 Pre-loaded resource control method, device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN108958829A CN108958829A (en) 2018-12-07
CN108958829B true CN108958829B (en) 2021-06-08

Family

ID=64499394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810489476.4A Expired - Fee Related CN108958829B (en) 2018-05-21 2018-05-21 Pre-loaded resource control method, device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN108958829B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110688188A (en) * 2019-09-30 2020-01-14 联想(北京)有限公司 Processing method and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577212B (en) * 2012-08-08 2017-10-24 腾讯科技(深圳)有限公司 System, which starts, preloads method and device
CN106326001B (en) * 2015-07-06 2023-07-21 联想(北京)有限公司 Information processing method and electronic equipment

Also Published As

Publication number Publication date
CN108958829A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
EP3567477B1 (en) Method for preloading application, storage medium, and terminal
US11429880B2 (en) Methods and systems for preloading applications and generating prediction models
CN108363593B (en) Application program preloading method and device, storage medium and terminal
CN109947496B (en) Application program preloading method and device, storage medium and mobile terminal
CN108710515B (en) Application preloading method and device, storage medium and terminal
CN109947497B (en) Application program preloading method and device, storage medium and mobile terminal
CN108681474B (en) Application preloading method and device, storage medium and terminal
CN107734616B (en) Application program closing method and device, storage medium and electronic equipment
CN108762831B (en) Application program preloading method and device, storage medium and terminal
CN108958828B (en) Application program preloading method and device, storage medium and terminal
CN109656719B (en) Algorithm processing method and device, storage medium and terminal equipment
CN107404753B (en) Volume adjusting method, device, terminal and storage medium
CN109495573A (en) Data transmission method, device, storage medium and terminal
CN107291302B (en) Control method and device of touch screen, storage medium and terminal
CN108762838B (en) Application program preloading method and device, storage medium and terminal
US11048568B2 (en) Broadcast sending control method and apparatus, storage medium, and electronic device
CN107291213B (en) Mode selection method, device, terminal and computer readable storage medium
CN108958829B (en) Pre-loaded resource control method, device, storage medium and terminal
CN117130454B (en) Power consumption adjustment method and electronic equipment
CN108170584A (en) log processing method, device, storage medium and terminal device
CN107402816B (en) Method, device, terminal and storage medium for adjusting work queue of touch screen
CN109343961B (en) Memory information processing method and device, storage medium and terminal
CN108829454B (en) Application program preloading method and device, storage medium and terminal
US20230100163A1 (en) Allocating computing device resources
US12086420B2 (en) Memory management method and electronic device

Legal Events

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

Granted publication date: 20210608

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