CN117407080A - Application program starting method and device, electronic equipment and computer storage medium - Google Patents

Application program starting method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN117407080A
CN117407080A CN202310845969.8A CN202310845969A CN117407080A CN 117407080 A CN117407080 A CN 117407080A CN 202310845969 A CN202310845969 A CN 202310845969A CN 117407080 A CN117407080 A CN 117407080A
Authority
CN
China
Prior art keywords
application program
starting
target application
target
computer resources
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.)
Pending
Application number
CN202310845969.8A
Other languages
Chinese (zh)
Inventor
陈晓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202310845969.8A priority Critical patent/CN117407080A/en
Publication of CN117407080A publication Critical patent/CN117407080A/en
Pending legal-status Critical Current

Links

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/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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

Abstract

The embodiment of the application discloses an application program starting method, an application program starting device, electronic equipment and a computer storage medium; in the embodiment of the application, a starting instruction of a target application program is obtained, and according to the starting instruction, historical computer resources required by historical starting of the target application program are obtained; calculating a plurality of resource distribution characteristics of the target application program according to the historical computer resources; performing fusion processing on the plurality of resource distribution characteristics to obtain a current computer resource for starting the target application program; acquiring the residual computer resources of the electronic equipment where the target application program is located, and predicting the target residual computer resources of the electronic equipment according to the residual computer resources and the current computer resources; and if the target residual computer resources are greater than or equal to a preset threshold value, starting the target application program. According to the embodiment of the application, the electronic equipment can be prevented from being blocked.

Description

Application program starting method and device, electronic equipment and computer storage medium
Technical Field
The present invention relates to the field of software technologies, and in particular, to an application program starting method, an application program starting device, an electronic device, and a computer storage medium.
Background
With the development of science and technology, electronic devices are increasingly popular with users, and applications installed on the electronic devices by the users are also increasing.
When there are many applications started in the electronic device, if the computer resources of the electronic device are tense, the electronic device will be blocked.
Disclosure of Invention
The embodiment of the application provides an application program starting method, an application program starting device, electronic equipment and a computer storage medium, and can solve the technical problem that the electronic equipment is blocked.
The embodiment of the application provides an application program starting method, which comprises the following steps:
acquiring a starting instruction of a target application program, and acquiring historical computer resources required by starting the target application program according to the starting instruction;
calculating a plurality of resource distribution characteristics of the target application program according to the historical computer resources;
the plurality of resource distribution characteristics are fused to obtain the current computer resource for starting the target application program;
acquiring the residual computer resources of the electronic equipment where the target application program is located, and predicting the target residual computer resources of the electronic equipment according to the residual computer resources and the current computer resources;
and if the target residual computer resources are greater than or equal to a preset threshold value, starting the target application program.
Accordingly, an embodiment of the present application provides an application program starting apparatus, including:
the acquisition module is used for acquiring a starting instruction of the target application program and acquiring historical computer resources required by starting the target application program according to the starting instruction;
a calculation module for calculating a plurality of resource distribution characteristics of the target application program according to the historical computer resources;
fusion processing, which is used for carrying out fusion processing on the plurality of resource distribution characteristics to obtain the current computer resource for starting the target application program;
the prediction module is used for acquiring the residual computer resources of the electronic equipment where the target application program is located and predicting the target residual computer resources of the electronic equipment according to the residual computer resources and the current computer resources;
and the starting module is used for starting the target application program if the target residual computer resources are greater than or equal to a preset threshold value.
In addition, the embodiment of the application also provides electronic equipment, which comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used for running the computer program in the memory to realize the application program starting method provided by the embodiment of the application.
In addition, the embodiment of the application further provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute any one of the application program starting methods provided by the embodiment of the application.
In addition, the embodiment of the application also provides a computer program product, which comprises a computer program, wherein the computer program is executed by a processor to realize any one of the application program starting methods provided by the embodiment of the application.
In the embodiment of the application, a starting instruction of a target application program is obtained, and according to the starting instruction, historical computer resources required by historical starting of the target application program are obtained; calculating a plurality of resource distribution characteristics of the target application program according to the historical computer resources; fusion processing is carried out on the plurality of resource distribution characteristics, so that the current computer resource for starting the target application program is obtained; acquiring the residual computer resources of the electronic equipment where the target application program is located, and predicting the target residual computer resources of the electronic equipment according to the residual computer resources and the current computer resources; if the target remaining computer resources are greater than or equal to the preset threshold, starting the target application program, and starting the target application program only when the target remaining computer resources are greater than or equal to the preset threshold, so that the electronic equipment cannot be blocked.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of an application program starting method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a system architecture provided by an embodiment of the present application;
fig. 3 is a schematic structural diagram of an application program starting device provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The embodiment of the application provides an application program starting method, an application program starting device, electronic equipment and a computer storage medium. The application program starting device can be integrated in an electronic device, and the electronic device can be a server or a terminal.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), basic cloud computing services such as big data and an artificial intelligent platform.
The terminal may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc. The terminal and the server may be directly or indirectly connected through wired or wireless communication, which is not limited herein.
In addition, "plurality" in the embodiments of the present application means two or more. "first" and "second" and the like in the embodiments of the present application are used for distinguishing descriptions and are not to be construed as implying relative importance.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
In this embodiment, the application starting method of the present application will be described from the viewpoint of the application starting apparatus, and for convenience, the application starting apparatus will be described in detail below as integrated in a terminal, that is, the terminal will be used as an execution subject.
Referring to fig. 1, fig. 1 is a flowchart of an application program starting method according to an embodiment of the present application. The application program starting method can comprise the following steps:
s101, acquiring a starting instruction of a target application program, and acquiring historical computer resources required by historical starting of the target application program according to the starting instruction.
The computer resources include at least one of CPU resources, memory resources, hard disk resources, and network resources required by the computer program when running. Historical computer resources refer to computer resources that are required when the target application program is historically run.
The terminal can respond to the triggering operation of the user on the target application program to generate a starting instruction of the target application program. The trigger operation type may be selected according to actual situations, for example, the trigger operation may be a click operation or a long press operation, which is not limited herein. Alternatively, the start instruction of the target application may be a background start instruction, and in this case, the start instruction of the target application may be generated without responding to the triggering of the target application by the user.
The terminal may store the computer resources required for running the target application program as the historical computer resources of the target application program each time the target application program is run, so that the current computer resources required for starting the target application program next time can be predicted according to the historical computer resources.
Alternatively, when the terminal stores the computer resources required for running the target application as the history computer resources of the target application, the history computer resources may be stored in the form of a multi-tuple.
For example, when the historical computer resources include CPU resources and memory resources, the historical computer resources of the target application program may be stored in [ i, j, k ], where i represents the identity of the target application program, j represents the CPU resources, and k represents the memory resources.
In some embodiments, according to the launch instruction, obtaining historical computer resources required to launch the target application includes:
determining whether the identification of the target application program exists in the target storage space according to the starting instruction;
and if the target storage space is provided with the identification of the target application program, acquiring historical computer resources required by starting the target application program in the target storage space.
When the target storage space is provided with the identification of the target application program, which means that the target storage space is provided with the historical computer resource of the target application program, the historical computer resource required by starting the target application program in a historical manner can be obtained from the target storage space.
When the identification of the target application program does not exist in the target storage space, the first time of starting the target application program is meant, namely, the historical computer resources of the target application program do not exist in the target storage space, at this time, the target application type of the target application program can be determined, and then the historical computer resources corresponding to the application type matched with the target application type in the target storage space are used as the historical computer resources required by the historical starting of the target application program.
For example, if the target application type of the target application program is a social type, the historical computer resource corresponding to the application program of the social type in the target storage space can be used as the historical computer resource of the target application program.
In the embodiment of the application, if the identifier of the target application program does not exist in the target storage space, determining the target application type of the target application program, and taking the historical computer resource corresponding to the application type matched with the target application type in the target storage space as the historical computer resource required by historically starting the target application program, so that even if the target application program is started for the first time, the current computer resource required by starting the target application program can be predicted.
In other embodiments, according to the launch instruction, obtaining historical computer resources required to launch the target application includes:
acquiring a preset application list according to the starting instruction;
and if the preset application list does not comprise the target application program, acquiring historical computer resources required by starting the target application program in a historical manner.
In this embodiment of the present application, a preset application list may be set, if an application program is in the preset application list, when a start instruction of the application program is obtained, the application program may be directly started, and if an application program is not in the preset application list, a history computer resource required for starting a target application program in a history is obtained.
However, when the application program in the preset application list is directly started, the electronic device may cause a jam, so that the priority of the started application program may be obtained, and then the started application program with a low priority may be closed, or the started application program with the same computer resource as that required for starting the target application program may be closed, so that the electronic device may not cause a jam.
The priority of the application program can be determined according to the use frequency of the application program, and the higher the use frequency is, the higher the priority is, and the lower the use frequency is, the lower the priority is.
S102, calculating a plurality of resource distribution characteristics of the target application program according to the historical computer resources.
The resource distribution characteristics refer to the distribution trend of historical computer resources. For example, the average value of the historical computer resources indicates the central tendency of the historical computer resources, and the standard deviation and the variance of the historical computer resources indicate the decentralized tendency of the historical computer resources, so that the resource distribution characteristics can be the average value and the standard deviation of the historical computer resources.
Thus, the plurality of resource distribution characteristics may be at least two of mean, variance, standard deviation, covariance, mean square error of the historical computer resources.
When the resource distribution characteristics are the average value and standard deviation of the historical computer resources, the process of calculating the plurality of resource distribution characteristics of the target application program according to the historical computer resources may be:
calculating the average value and standard deviation of historical computer resources;
and determining a plurality of resource distribution characteristics of the target application program according to the average value and the standard deviation.
For example, the historical computer resource is a historical CPU resource and a historical memory resource, and the historical CPU resource and the historical memory resource can be substituted into the following formula to calculate, so as to obtain an average value and a standard deviation of the historical CPU resource, and obtain an average value and a standard deviation of the historical memory resource:
wherein E (j) represents an average value of historical CPU resources, j m Represents the m-th historical CPU resource, n represents the number of the historical CPU resources, delta (j) represents the standard deviation of the historical CPU resources, E (k) represents the average value of the historical memory resources, and k m Represents the m-th historical memory resource, and delta (k) represents the standard deviation of the historical memory resource.
In the embodiment of the application, the average value and the standard deviation of the historical computer resources are used as a plurality of resource distribution characteristics of the target application program, so that the resource distribution characteristics of the target application program not only comprise the centralized trend of the historical computer resources, but also comprise the decentralized trend of the historical computer resources, and the current computer resources are more accurate when the current computer resources required by the target application program are predicted according to the resource distribution characteristics.
Alternatively, the multiple resource distribution characteristics of the target application program may be calculated according to all the historical computer resources, or the multiple resource distribution characteristics of the target application program may be calculated according to a preset number of historical computer resources in all the historical computer resources, or the computer resources in a preset time interval may be used as the historical computer resources.
When calculating the multiple resource distribution characteristics of the target application program according to the preset number of historical computer resources, the preset number of historical computer resources may be the preset number of historical computer resources with the storage time closest to the current time, or the preset number of historical computer resources may be randomly screened out from all the historical computer resources.
For example, the preset number may be 4, and when the terminal runs the target application program for the 6 th time, the historical computer resources required when the target application program is run for the 2 nd-5 th time may be used as a plurality of resource distribution characteristics of the calculation target application program.
For another example, if the preset time interval is one month and the time of acquiring the start instruction is 6 months 1, the historical computer resources required by each running of the target application program between 5 months 1 and 6 months 1 are used for calculating a plurality of resource distribution characteristics of the target application program.
And S103, carrying out fusion processing on the plurality of resource distribution characteristics to obtain the current computer resource of the starting target application program.
After obtaining the resource distribution characteristics, the terminal can directly perform addition fusion processing on the resource distribution characteristics to obtain total distribution characteristics corresponding to the resource distribution characteristics, and then uses the total distribution characteristics as the current computer resources of the starting target application program.
For example, the historical computer resource is a historical CPU resource, the resource distribution features are the average value and standard deviation of the historical CPU resource, and then the average value and standard deviation are added to obtain the sum of the average value and standard deviation, and the sum of the average value and standard deviation is used as the current computer resource of the starting target application program.
Or after obtaining the resource distribution characteristics, the terminal can obtain the resource weight corresponding to the resource distribution characteristics, then adjust the resource distribution characteristics according to the resource weight to obtain adjusted resource characteristics, and finally perform fusion processing on the adjusted resource characteristics to obtain the current computer resource for starting the target application program.
For example, the historical computer resource is a historical CPU resource, the resource distribution is characterized by an average value and a standard deviation of the historical CPU resource, the resource weight corresponding to the average value is 0.4, the resource weight corresponding to the standard deviation is 0.6, the average value and 0.4 are multiplied to obtain an adjusted average value, the standard deviation and 0.6 are multiplied to obtain an adjusted standard deviation, then the adjusted average value and the adjusted standard deviation are added to obtain a sum of the adjusted average value and the adjusted standard deviation, and the sum of the adjusted average value and the adjusted standard deviation is used as the current computer resource for starting the target application program.
S104, acquiring the residual computer resources of the electronic equipment where the target application program is located, and predicting the target residual computer resources of the electronic equipment according to the residual computer resources and the current computer resources.
The terminal may perform a subtraction of the remaining computer resources and the current computer resources to obtain a target remaining computer resource for the electronic device.
It should be appreciated that where the historical computer resources include a plurality, there may be one or more of the current computer resources.
For example, when the historical computer resource includes a historical CPU resource and a historical memory resource, the historical CPU resource and the historical memory resource may be added to obtain a historical resource sum, then a plurality of resource distribution features are calculated according to the historical resource sum, and finally a current computer resource is determined according to the plurality of resource distribution features, where the current computer resource includes one type.
For another example, when the historical computer resource includes a historical CPU resource and a historical memory resource, a plurality of resource distribution characteristics of the target application program for the historical CPU resource may be calculated according to the historical CPU resource, a plurality of resource distribution characteristics of the target application program for the historical memory resource may be calculated according to the historical memory resource, then a current CPU resource of the target application program may be determined according to the plurality of resource distribution characteristics for the historical CPU resource, and a current memory resource of the target application program may be determined according to the plurality of resource distribution characteristics for the historical memory resource.
When the current computer resource includes a plurality of types, subtraction operation can be performed on the current computer resource and the remaining computer resources corresponding to the current computer resource, so as to obtain a target remaining computer resource corresponding to the current computer resource, that is, when the target remaining computer resource has a plurality of types.
S105, if the target residual computer resources are greater than or equal to a preset threshold value, starting the target application program.
Wherein, it may be that the target application program is started when at least one target remaining computer resource is greater than or equal to a preset threshold. For example, when the current computer resource includes the current CPU resource and the current memory resource, the target remaining computer resource may include the target remaining computer resource corresponding to the current CPU resource and the target remaining computer resource corresponding to the current memory resource, and when the target remaining computer resource corresponding to the current CPU resource is greater than the first preset threshold and the target remaining computer resource corresponding to the current memory resource is greater than the second preset threshold, the target application program is started.
Because the preset threshold value can be set according to the running fluency of the electronic equipment, when the target residual computer resource is larger than or equal to the preset threshold value, the electronic equipment is started, the target application program is started, and when the target residual computer resource is smaller than the preset threshold value, the electronic equipment is started, the target application program is not started, and therefore the electronic equipment is ensured not to be blocked.
In some embodiments, if the target remaining computer resources are greater than or equal to the preset threshold, the process of starting the target application may be:
if the target remaining computer resources are greater than or equal to a preset threshold, determining whether the target application program is in a preset white list;
and if the target application program is in the preset white list, starting the target application program.
In the embodiment of the application, when the target remaining computer resources are greater than or equal to a preset threshold, determining whether the target application program is in a preset white list; if the target application program is in the preset white list, the target application program is started, so that the phenomenon of blocking of the electronic equipment is further avoided.
In other embodiments, the terminal may send the start request to the dynamic interception unit through an AMS service (AMS service refers to a core service responsible for four-component management and application start management in the android system) so that the start request may be sent to the resource consumption prediction unit through the dynamic interception unit, so that the current computer resource of the target application program may be predicted through the resource consumption prediction unit according to the historical computer resource, then the target remaining computer resource may be calculated according to the current computer resource and the remaining computer resource, and then the target remaining computer may be sent to the dynamic interception unit. And finally, judging whether the target residual computer resources are smaller than a preset threshold value through a dynamic interception unit, if so, generating an interception instruction and sending the interception instruction to the AMS service. When the terminal receives the interception instruction through the AMS service, the terminal does not start the target application program. At this time, the system structure of the embodiment of the present application may be as shown in fig. 2.
In other embodiments, the historical computer resources may be stored in a server, and the terminal may send the start-up instructions to the server after obtaining the start-up instructions of the target application. The server then performs the above steps S101-S104 and returns the target remaining computer resources to the terminal. After the terminal acquires the target residual computer resources, judging whether the target residual computer resources are larger than or equal to a preset threshold value, and if the target residual computer resources are larger than or equal to the preset threshold value, starting a target application program.
Alternatively, the server may perform the above steps S101-S103 and return the current computer resource to the terminal. After the terminal acquires the current computer resource, the steps S104-S105 are executed.
In other embodiments, the server may receive a start instruction of the target application program sent by at least one terminal, where the historical computer resources may include computer resources required by the plurality of terminals to start the target application program at the same time in a historical manner, at this time, the server may calculate a plurality of resource distribution features of the target application program according to the computer resources required by the plurality of terminals to start the target application program at the same time in a historical manner, perform fusion processing on the resource distribution features to obtain a current computer resource for starting the target application program, then return the current computer resource to the at least one terminal, and at least one terminal further determines whether the target remaining computer resource is greater than or equal to a preset threshold, if the target remaining computer resource is greater than or equal to the preset threshold, then start the target application program, or the server may further obtain remaining computer resources from the at least one terminal, predict the target remaining computer resources corresponding to the at least one terminal according to the current computer resources and the remaining computer resources, and send the target remaining computer resources corresponding to the at least one terminal, and then determine whether the target remaining computer resources are greater than or equal to the preset threshold, if the target remaining computer resources are greater than or equal to the preset threshold, and if the target remaining computer resources are greater than or equal to the preset threshold.
As can be seen from the above, in the embodiment of the present application, a start instruction of a target application is obtained, and according to the start instruction, a history computer resource required for starting the target application in a history manner is obtained; calculating a plurality of resource distribution characteristics of the target application program according to the historical computer resources; performing fusion processing on the resource distribution characteristics to obtain the current computer resource for starting the target application program; acquiring the residual computer resources of the electronic equipment where the target application program is located, and predicting the target residual computer resources of the electronic equipment according to the residual computer resources and the current computer resources; if the target remaining computer resources are greater than or equal to the preset threshold, starting the target application program, and starting the target application program only when the target remaining computer resources are greater than or equal to the preset threshold, so that the electronic equipment cannot be blocked.
In order to facilitate better implementation of the application program starting method provided by the embodiment of the application, the embodiment of the application also provides a device based on the application program starting method. Where the meaning of nouns is the same as in the application launch method described above, specific implementation details may be referred to in the description of the method embodiments.
For example, as shown in fig. 3, the application starting apparatus may include:
the obtaining module 301 is configured to obtain a start instruction of the target application program, and obtain, according to the start instruction, a history computer resource required for starting the target application program in a history manner.
A computing module 302 for computing a plurality of resource distribution characteristics of the target application based on the historical computer resources.
And the fusion process 303 is used for carrying out fusion processing on the plurality of resource distribution characteristics to obtain the current computer resource of the starting target application program.
And the prediction module 304 is configured to obtain the remaining computer resources of the electronic device where the target application program is located, and predict the target remaining computer resources of the electronic device according to the remaining computer resources and the current computer resources.
The starting module 305 is configured to start the target application if the target remaining computer resources are greater than or equal to a preset threshold.
Optionally, the computing module 302 is specifically configured to perform:
calculating the average value and standard deviation of historical computer resources;
and determining a plurality of resource distribution characteristics of the target application program according to the average value and the standard deviation.
Optionally, the fusion process 303 is specifically configured to perform:
performing addition fusion treatment on the resource distribution characteristics to obtain the total distribution characteristics of the resource distribution characteristics;
the total distribution characteristic is taken as the current computer resource of the starting target application program.
Optionally, the fusion process 303 is specifically configured to perform:
acquiring resource weights corresponding to the resource distribution characteristics;
adjusting the resource distribution characteristics according to the resource weights to obtain adjusted resource characteristics;
and carrying out fusion processing on the adjusted resource characteristics to obtain the current computer resource for starting the target application program.
Optionally, the obtaining module 301 is specifically configured to perform:
determining whether the identification of the target application program exists in the target storage space according to the starting instruction;
and if the target storage space is provided with the identification of the target application program, acquiring historical computer resources required by starting the target application program in the target storage space.
Optionally, the obtaining module 301 is specifically configured to perform:
if the identification of the target application program does not exist in the target storage space, determining the target application type of the target application program;
and taking the historical computer resources corresponding to the application type matched with the target application type in the target storage space as the historical computer resources required by starting the target application program in a historical manner.
Optionally, the obtaining module 301 is specifically configured to perform:
acquiring a preset application list according to the starting instruction;
and if the preset application list does not comprise the target application program, acquiring historical computer resources required by starting the target application program in a historical manner.
In the specific implementation, each module may be implemented as an independent entity, or may be combined arbitrarily, and implemented as the same entity or a plurality of entities, and the specific implementation and the corresponding beneficial effects of each module may be referred to the foregoing method embodiments, which are not described herein again.
The embodiment of the application also provides an electronic device, which may be a server or a terminal, as shown in fig. 4, and shows a schematic structural diagram of the electronic device according to the embodiment of the application, specifically:
the electronic device may include one or more processing cores 'processors 401, one or more computer-readable storage media's memory 402, power supply 403, and input unit 404, among other components. Those skilled in the art will appreciate that the electronic device structure shown in fig. 4 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or may be arranged in different components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing computer programs and/or modules stored in the memory 402, and calling data stored in the memory 402. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store computer programs and modules, and the processor 401 executes various functional applications and data processing by executing the computer programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a computer program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, preferably the power supply 403 may be logically connected to the processor 401 by a power management system, so that functions of managing charging, discharging, and power consumption are performed by the power management system. The power supply 403 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further comprise an input unit 404, which input unit 404 may be used for receiving input digital or character information and generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 401 in the electronic device loads executable files corresponding to the processes of one or more computer programs into the memory 402 according to the following instructions, and the processor 401 executes the computer programs stored in the memory 402, so as to implement various functions, for example:
acquiring a starting instruction of a target application program, and acquiring historical computer resources required by historical starting of the target application program according to the starting instruction;
calculating a plurality of resource distribution characteristics of the target application program according to the historical computer resources;
fusion processing is carried out on the plurality of resource distribution characteristics, so that the current computer resource for starting the target application program is obtained;
acquiring the residual computer resources of the electronic equipment where the target application program is located, and predicting the target residual computer resources of the electronic equipment according to the residual computer resources and the current computer resources;
and if the target residual computer resources are greater than or equal to a preset threshold value, starting the target application program.
The specific embodiments and the corresponding advantageous effects of the above operations can be referred to the above detailed description of the application starting method, and are not described herein.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of the various methods of the above embodiments may be performed by a computer program, or by computer program control related hardware, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer readable storage medium having stored therein a computer program that is capable of being loaded by a processor to perform steps in any of the application launch methods provided by embodiments of the present application. For example, the computer program may perform the steps of:
acquiring a starting instruction of a target application program, and acquiring historical computer resources required by historical starting of the target application program according to the starting instruction;
calculating a plurality of resource distribution characteristics of the target application program according to the historical computer resources;
fusion processing is carried out on the plurality of resource distribution characteristics, so that the current computer resource for starting the target application program is obtained;
acquiring the residual computer resources of the electronic equipment where the target application program is located, and predicting the target residual computer resources of the electronic equipment according to the residual computer resources and the current computer resources;
and if the target residual computer resources are greater than or equal to a preset threshold value, starting the target application program.
The specific embodiments and the corresponding beneficial effects of each of the above operations can be found in the foregoing embodiments, and are not described herein again.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Since the computer program stored in the computer readable storage medium may execute steps in any one of the application program starting methods provided in the embodiments of the present application, the beneficial effects that any one of the application program starting methods provided in the embodiments of the present application may be achieved, which are detailed in the previous embodiments and are not described herein.
Among other things, according to one aspect of the present application, a computer program product or computer program is provided that includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-described application program starting method.
The foregoing has described in detail the method, apparatus, electronic device and computer storage medium for starting an application program according to the embodiments of the present application, and specific examples have been applied to illustrate the principles and embodiments of the present application, where the foregoing description of the embodiments is only for aiding in understanding the method and core idea of the present application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. An application program starting method, comprising:
acquiring a starting instruction of a target application program, and acquiring historical computer resources required by starting the target application program according to the starting instruction;
calculating a plurality of resource distribution characteristics of the target application program according to the historical computer resources;
performing fusion processing on the plurality of resource distribution characteristics to obtain a current computer resource for starting the target application program;
acquiring the residual computer resources of the electronic equipment where the target application program is located, and predicting the target residual computer resources of the electronic equipment according to the residual computer resources and the current computer resources;
and if the target residual computer resources are greater than or equal to a preset threshold value, starting the target application program.
2. The application launch method of claim 1 wherein said computing a plurality of resource distribution characteristics of said target application from said historical computer resources comprises:
calculating the average value and standard deviation of the historical computer resources;
and determining a plurality of resource distribution characteristics of the target application program according to the average value and the standard deviation.
3. The method for starting an application program according to claim 1, wherein the fusing the plurality of resource distribution features to obtain a current computer resource for starting the target application program comprises:
performing addition fusion processing on the plurality of resource distribution characteristics to obtain the total distribution characteristics of the resource distribution characteristics;
and taking the total distribution characteristic as the current computer resource for starting the target application program.
4. The method for starting an application program according to claim 1, wherein the fusing the plurality of resource distribution features to obtain a current computer resource for starting the target application program comprises:
acquiring a resource weight corresponding to each resource distribution characteristic;
adjusting the resource distribution characteristics according to the resource weights to obtain adjusted resource characteristics;
and carrying out fusion processing on the adjusted resource characteristics to obtain the current computer resource for starting the target application program.
5. The application program starting method according to claim 1, wherein the obtaining historical computer resources required for starting the target application program according to the starting instruction includes:
determining whether the identification of the target application program exists in a target storage space according to the starting instruction;
and if the target storage space is provided with the identification of the target application program, acquiring historical computer resources required by starting the target application program in a historical manner from the target storage space.
6. The application program starting method according to claim 5, further comprising, after said determining whether the target application program identification exists in the target storage space according to the starting instruction:
if the identification of the target application program does not exist in the target storage space, determining the target application type of the target application program;
and taking the historical computer resources corresponding to the application type matched with the target application type in the target storage space as the historical computer resources required by starting the target application program in a historical manner.
7. The application program starting method according to claim 1, wherein the obtaining historical computer resources required for starting the target application program according to the starting instruction includes:
acquiring a preset application list according to the starting instruction;
and if the target application program is not included in the preset application list, acquiring historical computer resources required by starting the target application program in a historical manner.
8. An application launch device comprising:
the acquisition module is used for acquiring a starting instruction of a target application program and acquiring historical computer resources required by starting the target application program according to the starting instruction;
a calculation module, configured to calculate a plurality of resource distribution characteristics of the target application program according to the historical computer resources;
fusion processing, which is used for carrying out fusion processing on the plurality of resource distribution characteristics to obtain the current computer resource for starting the target application program;
the prediction module is used for acquiring the residual computer resources of the electronic equipment where the target application program is located and predicting the target residual computer resources of the electronic equipment according to the residual computer resources and the current computer resources;
and the starting module is used for starting the target application program if the target residual computer resources are greater than or equal to a preset threshold value.
9. An electronic device comprising a processor and a memory, the memory storing a computer program, the processor being configured to execute the computer program in the memory to perform the application launch method of any one of claims 1 to 7.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program adapted to be loaded by a processor for executing the application launch method of any one of claims 1 to 7.
CN202310845969.8A 2023-07-10 2023-07-10 Application program starting method and device, electronic equipment and computer storage medium Pending CN117407080A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310845969.8A CN117407080A (en) 2023-07-10 2023-07-10 Application program starting method and device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310845969.8A CN117407080A (en) 2023-07-10 2023-07-10 Application program starting method and device, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN117407080A true CN117407080A (en) 2024-01-16

Family

ID=89496833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310845969.8A Pending CN117407080A (en) 2023-07-10 2023-07-10 Application program starting method and device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN117407080A (en)

Similar Documents

Publication Publication Date Title
CN109783237B (en) Resource allocation method and device
WO2021139386A1 (en) Resource allocation method and apparatus, device, and storage medium
CN114564313A (en) Load adjustment method and device, electronic equipment and storage medium
CN114070847B (en) Method, device, equipment and storage medium for limiting current of server
CN109948332A (en) A kind of physical machine login password remapping method and device
CN107633080B (en) User task processing method and device
CN111885184A (en) Method and device for processing hot spot access keywords in high concurrency scene
CN117407080A (en) Application program starting method and device, electronic equipment and computer storage medium
CN115080412A (en) Software update quality evaluation method, device, equipment and computer storage medium
CN113904940A (en) Resource adjusting method and device, electronic equipment and computer readable storage medium
CN114297512A (en) Data recommendation method and device, electronic equipment and storage medium
CN112114972B (en) Data inclination prediction method and device
CN116847113B (en) Video live broadcast transfer method, device, equipment and medium based on cloud architecture module
CN116627240B (en) Power consumption adjustment method, device, electronic equipment, storage medium and program product
CN116805947B (en) Block chain data processing method, device, equipment and computer readable storage medium
CN114186845A (en) Method and device for executing index calculation task at fixed time
CN110457392B (en) Copy reading and writing method and device
CN117407186A (en) Task execution method, device, electronic equipment and computer storage medium
CN115202707A (en) Business rule updating method, device, equipment and storage medium
CN116980484A (en) Request processing method, device, computer equipment and computer readable storage medium
CN117411932A (en) Message pushing method and device, electronic equipment and computer storage medium
CN117785486A (en) Environment resource allocation method, device, equipment and medium
CN114756353A (en) Thread execution method and device, electronic equipment and computer readable storage medium
CN118045338A (en) Game operation control method, game operation control device, electronic equipment and computer storage medium
CN117112250A (en) Data processing method, device, computer equipment and computer readable storage medium

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