CN116661901A - Application program start control method and device, storage medium and computer equipment - Google Patents

Application program start control method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN116661901A
CN116661901A CN202310757973.9A CN202310757973A CN116661901A CN 116661901 A CN116661901 A CN 116661901A CN 202310757973 A CN202310757973 A CN 202310757973A CN 116661901 A CN116661901 A CN 116661901A
Authority
CN
China
Prior art keywords
application
time
target application
starting
memory
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
CN202310757973.9A
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.)
Seuic Technologies Co Ltd
Original Assignee
Seuic Technologies 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 Seuic Technologies Co Ltd filed Critical Seuic Technologies Co Ltd
Priority to CN202310757973.9A priority Critical patent/CN116661901A/en
Publication of CN116661901A publication Critical patent/CN116661901A/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
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides an application program starting control method, an application program starting control device, a storage medium and computer equipment. The method comprises the following steps: responding to an application hot start instruction, acquiring the sequence of the total starting times of the target application in the recording period and the last stored old hot start time, and recording the current hot start time of the target application; if the ordering of the total starting times is not lower than the preset lowest order and the old hot starting time is longer than the preset first time, configuring the CPU performance of the target application when the target application is started as the optimal performance; acquiring an occupied memory of a target application in historical starting; if the occupied memory is larger than the system allocation memory, expanding the system allocation memory of the target application; starting a target application according to the adjusted CPU performance configuration and the system allocation memory; if the acceleration time reaches a preset condition, adding a priority mark with the duration time for the target application. The method and the device can allocate the starting time of the resource optimization application program according to the use condition of the user.

Description

Application program start control method and device, storage medium and computer equipment
Technical Field
The present application relates to the field of intelligent terminals, and in particular, to an application program start control method, an application program start control device, a storage medium, and a computer device.
Background
With the rapid development of intelligent terminal technology, a variety of applications can be used on intelligent terminals to realize more and more functions.
If the starting time of the user is long when starting the application program, the experience of the user on the application is affected, and the starting time of the application program is limited by the resources of the intelligent terminal. However, the number of application programs in the current intelligent terminal is numerous, and how to allocate resources to optimize the starting time of the application programs is a difficult problem in the current intelligent terminal.
Disclosure of Invention
The embodiment of the application provides an application program starting control method, an application program starting control device, a storage medium and computer equipment, which can allocate resources according to the use condition of a user to optimize the starting time of an application program.
In a first aspect, the present application provides an application program start control method, including:
responding to an application hot start instruction, acquiring the sequence of the total starting times of a target application in the recording period and the last stored old hot start time, and recording the current hot start time of the target application;
if the ordering of the starting total times is not lower than the preset lowest order and the old hot starting time is longer than the preset first time, configuring the CPU performance of the target application when starting as the optimal performance; wherein the optimal performance includes the CPU frequency being the highest frequency;
acquiring an occupied memory of the target application in historical starting;
if the occupied memory is larger than the system allocation memory, modifying the system allocation memory of the target application into the system maximum memory;
starting the target application according to the adjusted CPU performance configuration and the system allocation memory;
judging whether the acceleration time of the current hot start time compared with the old hot start time reaches a preset condition or not;
if so, adding a priority mark with the duration time for the target application, so that the target application is started again in the duration time of the priority mark, and directly starting by the adjusted CPU performance configuration and the system allocation memory;
and updating the current hot start time to a record so as to cover the old hot start time, and updating the start times of the target application in a unit time.
In one embodiment, if the CPU is a multi-core CPU, the optimal performance further includes the operation core being a CPU big core.
In one embodiment, the total number of starts is the sum of the number of cold starts and the number of hot starts applied at all unit time in one recording period.
In one embodiment, the determining whether the acceleration time of the current warm start time compared with the old warm start time reaches a preset condition includes:
calculating the difference between the old hot start time and the current hot start time;
judging whether the difference is larger than a preset difference or not;
and if the preset difference value is larger than the preset difference value, judging that the preset condition is reached.
In one embodiment, the determining whether the acceleration time of the current warm start time compared with the old warm start time reaches a preset condition includes:
calculating the difference between the old hot start time and the current hot start time;
calculating the ratio of the difference value to the old hot start time;
judging whether the ratio is larger than a preset ratio or not;
and if the ratio is larger than the preset ratio, judging that the preset condition is reached.
In one embodiment, the method further comprises:
if any application process is recovered, identifying whether the recovery reason of the application process belongs to abnormal state recovery;
if not, acquiring the process creation time of the application process;
if the process creation time is greater than a preset second time, re-creating an empty process for the application;
and modifying the recycling priority of the empty process into the recycling priority corresponding to the foreground process.
In one embodiment, the method further comprises:
acquiring a background application white list;
and when the recycling priority of the application is calculated, modifying the recycling priority of each application in the background application white list into the recycling priority corresponding to the foreground process.
In a second aspect, the present application provides an application start control apparatus, the apparatus comprising:
the response module is used for responding to the application hot start instruction, acquiring the sequence of the total starting times of the target application in the recording period and the last stored old hot start time, and recording the current hot start time of the target application;
the configuration adjustment module is used for configuring the CPU performance of the target application when the starting time is greater than the preset first time when the ordering of the starting total times is not lower than the preset lowest order; wherein the optimal performance includes the CPU frequency being the highest frequency;
the first acquisition module is used for acquiring the occupied memory of the target application in the history starting process;
the first modification module is used for modifying the system allocation memory of the target application to be not smaller than the memory value of the occupied memory when the occupied memory is larger than the system allocation memory;
the hot start module is used for starting the target application according to the adjusted CPU performance configuration and the system allocation memory;
the judging module is used for judging whether the acceleration time of the current hot start time compared with the old hot start time reaches a preset condition or not;
the mark adding module is used for adding a priority mark with a continuous time for the target application when the speed-up time reaches a preset condition, so that the target application is started again in the continuous time of the priority mark, and the target application is started directly by the adjusted CPU performance configuration and the system allocation memory;
and the updating module is used for updating the current hot start time to the record so as to cover the old hot start time and updating the start times of the target application in a unit time.
In a third aspect, the present application provides a storage medium having stored therein computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of an application launch control method as described in any one of the embodiments above.
In a fourth aspect, the present application provides a computer device comprising: one or more processors, and memory;
the memory has stored therein computer readable instructions which, when executed by the one or more processors, perform the steps of the application launch control method of any one of the embodiments described above.
From the above technical solutions, the embodiment of the present application has the following advantages:
the method, the device, the storage medium and the computer equipment for controlling the starting of the application program provided by the application are characterized in that the total starting times of the application in the recording period are recorded, the using frequency of the application is determined by sequencing, if the sequence of the total starting times of the target application to be started by an application hot starting instruction in the recording period is not lower than the preset lowest order, and the last recorded old hot starting time of the target application is longer than the preset first time, the CPU performance of the target application in starting is configured to be the optimal performance, the CPU frequency is configured to be the highest frequency, if the occupied memory of the target application in historical starting is longer than the system allocation memory, the system allocation memory is modified to be not smaller than the memory value of the occupied memory, the hot starting time of the high-frequency application is optimized by increasing the memory and improving the CPU performance, and the target application with the continuous time priority mark is added to enable the target application with the speed up time reaching the preset condition, so that the target application can be directly and rapidly started in the adjusted configuration within a certain time, and the resource optimizing starting time is realized according to the using frequency of the user to the application.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the application, and that other drawings can be obtained from these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a flow chart of an application launch control method according to one embodiment;
FIG. 2 is a flowchart of another embodiment of an application launch control method;
FIG. 3 is a flowchart of an application launch control method according to another embodiment;
FIG. 4 is a block diagram of an application launch control apparatus according to one embodiment;
FIG. 5 is an internal block diagram of a computer device, in one embodiment.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The application program starting control method provided by the application is applied to the intelligent terminal, and the intelligent terminal can be, but not limited to, various personal computers, notebook computers, intelligent mobile phones, tablet computers, internet of things equipment and portable wearable equipment, wherein the Internet of things equipment can be intelligent sound boxes, intelligent televisions, intelligent air conditioners, intelligent vehicle-mounted equipment and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like.
As shown in fig. 1, the present application provides an application program start control method, which includes steps S101 to S109, wherein:
step S101, responding to an application hot start instruction, acquiring the sequence of the total starting times of the target application in the recording period and the last stored old hot start time, and recording the current hot start time of the target application.
When an application is started, a background process of the application is available, and under the condition of the existing process, the application is started from the existing process, and the starting mode is hot start, and when the application is started, the process of an application program is already available, and part of resources and data are loaded into a memory, so that the hot start speed is faster than that of cold start. The cold start corresponding to the method refers to that when an application is started, the background does not have a process of the application, and at the moment, the system can recreate a new process to be distributed to the application, and the starting mode is cold start. At cold start, the process of the application will be created by the system and the application needs to reinitialize all the resources and data. Cold starts require more time because all resources and data need to be loaded.
The time range covered by the recording period changes along with the time change, the time end point of the recording period is the current time, and the time start point of the recording period is the time point of the period time before the current time. For example, if the duration of one period is T and the current time is T1, the recording period is a time range from T1-T to T1.
In one embodiment, to avoid that the data is still changed when the start control is performed, the total number of starts may be recorded in units of time, and statistics of the total number of starts in one recording period may be performed according to the total amount of units of time included in one recording period, for example, the total number of starts may be in units of days, and one recording period may be 30 days.
In one embodiment, the total number of starts is the sum of the number of cold starts and the number of hot starts applied at all units of time in one recording period.
The old hot start time is the last hot start time of the target application stored when the storage trigger condition is met. In one embodiment, each application will record its start time when it starts, and if it is cold-started, record the creation process time and the hot-start time, and record the sum of the two as the cold-start time; if the start is hot, the hot start time is recorded.
Step S102, if the order of the total number of starts is not lower than the preset lowest order, and the old hot start time is longer than the preset first time, the CPU performance of the target application at the start is configured as the optimal performance.
Wherein the optimal performance includes the CPU frequency being the highest frequency. In one embodiment, if the CPU is a multi-core CPU, the optimal performance further includes the operation core being a CPU big core.
The preset lowest order is a preset starting total number order for judging whether the application is the application used at high frequency, and if the starting total number order of the target application is not lower than the preset lowest order, the target application is judged to be the application used at high frequency. The preset first time is a judging condition for judging whether the hot start time of the application is too long and needs to be optimized.
The first time is obtained by testing the hot start time of a plurality of applications under different system versions, sorting the test time according to the long-to-short time, selecting the hot start time of the first 50% to carry out the sorting again from the long-to-short time, selecting the hot start time with the duration being in the middle section (for example, the first 30% -60%), and selecting one time in the range as the first time by combining the user feedback.
For the application used at high frequency, if the hot start time is long, the application is started and optimized for optimizing the user experience, and the starting speed is optimized by configuring the CPU performance to be the optimal performance.
Step S103, obtaining the occupied memory of the target application in the history starting.
The historical starting means any previous starting and can be the last starting.
Step S104, if the occupied memory is larger than the system allocation memory, the system allocation memory of the target application is modified to be not smaller than the memory value of the occupied memory.
When the occupied memory is larger than the system allocation memory, the starting speed can be further improved by expanding the memory, and at the moment, the system allocation memory automatically allocated by the system is modified to be a memory value not smaller than the occupied memory, and in one embodiment, the system allocation memory can be modified to be the occupied memory of the target application in the historical starting. In another embodiment, it may be modified to the system maximum memory. If the occupied memory of the target application in the history starting is not larger than the system allocation memory, the system allocation memory is not modified.
Step S105, the target application is started according to the adjusted CPU performance configuration and the system allocation memory.
Step S106, judging whether the acceleration time of the current hot start time compared with the old hot start time reaches a preset condition.
In one embodiment, a difference between the old warm start time t and the current warm start time t1 is calculated; judging whether the difference is larger than a preset difference delta t or not; if the difference is larger than the preset difference delta t, judging that the preset condition is reached. I.e., t-t1 >. DELTA.t, a preset condition is reached.
In one embodiment, a difference between the old warm start time t and the current warm start time t1 is calculated; calculating the ratio of the difference value to the old hot start time t 1; judging whether the ratio is larger than a preset ratio A or not; if the ratio is larger than the preset ratio A, judging that the preset condition is reached. I.e., (t-t 1)/t 1> A, a preset condition is reached.
Step S107, if the CPU performance configuration and the system allocation memory are adjusted, a priority mark with a duration time is added to the target application, so that the target application is directly started by the adjusted CPU performance configuration and the system allocation memory when the target application is started again in the duration time of the priority mark.
Step S108, if not, the priority identification is not added to the target application.
And for the target application with the acceleration time meeting the preset condition, if the priority mark is identified during the restart within the priority mark duration time, the steps from S101 to S104 are not executed, the startup is directly executed by adding the adjusted CPU performance configuration and the system allocation memory adopted by the priority mark, the operation processing process is reduced, and the startup speed is further optimized. Setting the duration for the priority identifier can avoid the situation that the application allocates more resources for a long time to start running, but the use habit of the user changes to reduce the use frequency of the application.
Step S109, the current hot start time is updated to the record to cover the old hot start time, and the start times of the target application in a unit time are updated.
In one embodiment, the application updates the thermal recording time in the recording each time it is started. In one embodiment, the hot recording time in the record is updated only when the update condition is satisfied, and adding the priority identifier to the application may be one of the update conditions.
In the embodiment of the application, the use frequency of the application is determined by recording the total starting times of the application in the recording period and sequencing, if the sequencing of the total starting times of the target application to be started by the application hot start instruction in the recording period is not lower than the preset lowest order, and the last recorded old hot start time of the target application is longer than the preset first time, the CPU performance of the target application in starting is configured to be the optimal performance, the CPU frequency is configured to be the highest frequency, if the occupied memory of the target application in historical starting is longer than the system allocation memory, the system allocation memory is modified to be not less than the memory value of the occupied memory, the hot start time of the high-frequency application is optimized by increasing the memory and improving the CPU performance, and the target application with the continuous time is added with the priority mark in a mode that the speed increasing time reaches the preset condition, so that the target application can be directly and quickly started in the adjusted configuration within a certain time, and the startup time is optimized according to the use frequency resource allocation of the user for the application is realized.
As shown in fig. 2, in one embodiment, the application start control method further includes steps S201 to S104, in which:
in step S201, if any application process is reclaimed, it is identified whether the reclaiming reason of the application process belongs to the abnormal state reclaiming.
And the system recovers the application process meeting the recovery condition according to the process recovery mechanism, namely, terminates the application process to release the memory. Abnormal state reclamation refers to reclaiming an application process in an abnormal state, and the abnormal state includes but is not limited to forced stopping of the application, unresponsiveness of the application and crashing of the application. Non-exception reclamation is typically the reclamation of an application process that satisfies the current reclamation conditions by the system according to the reclamation priority.
Step S202, if the information belongs to the group, the process is ended.
Step S203, if not, obtaining the process creation time of the application process.
And if the application process belongs to the non-abnormal state recovery, acquiring the process creation time of the application process.
In step S204, if the process creation time is greater than the preset second time, an empty process is created again for the application.
The preset second time is a judging condition for judging whether the process creation time of the application is too long and needs to be optimized.
The second time is obtained by testing the process creation time of a plurality of applications under different system versions, sorting the test times according to the sequence from long to short, selecting the first 50% of the process creation time to carry out the sequence from long to short again, selecting the process creation time with the duration being in the middle section (for example, the first 30% -60%), and selecting one time as the second time in the range by combining the user feedback.
An empty process refers to a process that does not contain any active application components. The purpose of retaining such a process is to act as a cache to shorten the start-up time required for the next time a component is run in.
In step S205, the reclamation priority of the empty process is modified to the reclamation priority corresponding to the foreground process.
In order to keep the balance of the whole system resources between the process cache and the bottom kernel cache, the system has higher recovery priority for the empty process. In order to optimize the starting time of the application, the reclaiming priority of the empty process of the application is modified to be the reclaiming priority corresponding to the foreground process, wherein the foreground process is the process necessary for the current operation of the user, so that the reclaiming priority is lower.
In one embodiment, the larger the recovery priority is oom _adj value of a process, the higher the oom _adj value is, the more preferentially the recovery is performed when the recovery needs to be performed, and the default oom _adj value of an empty process is larger than the oom _adj value of a foreground process, so in order to ensure that the recovery application process needing to perform the starting time optimization this time can shorten the starting time when starting again, the oom _adj value of the empty process newly innovated for the recovery application process is modified to be the oom _adj value of the foreground process, so that the system cannot preferentially recover the process, and further, when the user starts the application next time, the process creation time is shortened, and quick starting is realized.
As shown in fig. 3, in one embodiment, the application program start control method further includes:
step S301, a background application white list is acquired.
The background application white list is an application list that needs to run in the background for a long time. In one embodiment, the background application whitelist may be edited and in addition to maintaining the background application for normal use of the system, the user may add applications to the background application whitelist that are expected to run in the background for a long period of time as needed.
In step S302, when the recycling priority of the application is calculated, the recycling priority of each application in the background application white list is modified to the recycling priority corresponding to the foreground process.
In this embodiment, the recovery priority is adjusted according to the background application white list, and for the applications belonging to the background application white list, the recovery priority is modified to the recovery priority corresponding to the foreground process.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
The application start control device provided by the embodiment of the present application is described below, and the application start control device described below and the application start control method described above may be referred to correspondingly.
As shown in fig. 4, an embodiment of the present application provides an application start control apparatus 400, which includes:
the response module 401 is configured to obtain, in response to an application warm start instruction, a ranking of total times of starting of a target application in a present recording period and an old warm start time recorded last time, and record a warm start time of the target application this time;
a configuration adjustment module 402, configured to configure the CPU performance of the target application at the time of starting to be the optimal performance when the total number of times of starting is not less than the preset lowest order and the old hot start time is greater than the preset first time; wherein, the optimal performance comprises CPU frequency being highest frequency;
a first obtaining module 403, configured to obtain an occupied memory of the target application in the history starting;
a first modifying module 404, configured to modify the system allocation memory of the target application to a memory value not smaller than the occupied memory when the occupied memory is larger than the system allocation memory;
a hot start module 405, configured to start a target application according to the adjusted CPU performance configuration and the system allocation memory;
a judging module 406, configured to judge whether the acceleration time of the current warm start time compared to the old warm start time reaches a preset condition;
the identifier adding module 407 is configured to add a priority identifier with a duration time to the target application when the speed-up time reaches a preset condition, so that the target application is directly started with the adjusted CPU performance configuration and the system allocation memory when the target application is started again within the duration time of the priority identifier;
the updating module 408 is configured to update the current hot start time to the record to cover the old hot start time, and update the number of times of starting the target application in a unit time.
In one embodiment, the determination module is configured to perform the steps of:
calculating the difference between the old hot start time and the current hot start time;
judging whether the difference value is larger than a preset difference value or not;
if the difference is larger than the preset difference, judging that the preset condition is reached.
In one embodiment, the determination module is configured to perform the steps of:
calculating the difference between the old hot start time and the current hot start time;
calculating the ratio of the difference value to the old hot start time;
judging whether the ratio is larger than a preset ratio;
if the ratio is larger than the preset ratio, judging that the preset condition is reached.
In one embodiment, the application start control device further includes:
the identification module is used for identifying whether the recovery reason of the application process belongs to abnormal state recovery or not when any application process is recovered;
the second acquisition module is used for acquiring the process creation time of the application process when the recovery reason of the application program does not belong to abnormal state recovery;
the process creation module is used for re-creating an empty process for the application when the process creation time is greater than a preset second time;
and the second modification module is used for modifying the recycling priority of the empty process into the recycling priority corresponding to the foreground process.
In one embodiment, the application start control device further includes:
the third acquisition module is used for acquiring a background application white list;
and the third modification module is used for modifying the recovery priority of each application in the background application white list into the recovery priority corresponding to the foreground process when the recovery priority of the application is calculated.
The above-mentioned division of each module in the application start control device is only for illustration, and in other embodiments, the application start control device may be divided into different modules as needed to complete all or part of the functions of the application start control device. The respective modules in the above-described application start control apparatus may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, the present application also provides a storage medium having stored therein computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the application launch control method as described in any one of the embodiments above.
In one embodiment, the present application further provides a computer device, where computer readable instructions are stored, and when the one or more processors execute the computer readable instructions, the steps of the application launch control method according to any one of the embodiments above are executed.
In one embodiment, a computer device is provided, which may be a smart terminal, and the internal structure thereof may be as shown in fig. 5. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program, when executed by a processor, implements an application launch control method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
In the present specification, each embodiment is described in a progressive manner, and each embodiment focuses on the difference from other embodiments, and may be combined according to needs, and the same similar parts may be referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An application launch control method, the method comprising:
responding to an application hot start instruction, acquiring the sequence of the total starting times of a target application in the recording period and the last stored old hot start time, and recording the current hot start time of the target application;
if the ordering of the starting total times is not lower than the preset lowest order and the old hot starting time is longer than the preset first time, configuring the CPU performance of the target application when starting as the optimal performance; wherein the optimal performance includes the CPU frequency being the highest frequency;
acquiring an occupied memory of the target application in historical starting;
if the occupied memory is larger than the system allocation memory, modifying the system allocation memory of the target application to be not smaller than the memory value of the occupied memory;
starting the target application according to the adjusted CPU performance configuration and the system allocation memory;
judging whether the acceleration time of the current hot start time compared with the old hot start time reaches a preset condition or not;
if so, adding a priority mark with the duration time for the target application, so that the target application is started again in the duration time of the priority mark, and directly starting by the adjusted CPU performance configuration and the system allocation memory;
and updating the current hot start time to a record so as to cover the old hot start time, and updating the start times of the target application in a unit time.
2. The application launch control method of claim 1 wherein if the CPU is a multi-core CPU, the optimal performance further comprises the execution core being a CPU big core.
3. The application start control method according to claim 1, wherein the total number of starts is a sum of a number of cold starts and a number of hot starts of the application at all unit times in one recording period.
4. The application start control method according to any one of claims 1 to 3, wherein the determining whether the acceleration time of the current warm start time compared to the old warm start time reaches a preset condition includes:
calculating the difference between the old hot start time and the current hot start time;
judging whether the difference is larger than a preset difference or not;
and if the preset difference value is larger than the preset difference value, judging that the preset condition is reached.
5. The application start control method according to any one of claims 1 to 3, wherein the determining whether the acceleration time of the current warm start time compared to the old warm start time reaches a preset condition includes:
calculating the difference between the old hot start time and the current hot start time;
calculating the ratio of the difference value to the old hot start time;
judging whether the ratio is larger than a preset ratio or not;
and if the ratio is larger than the preset ratio, judging that the preset condition is reached.
6. The application launch control method according to claim 1, characterized in that the method further comprises:
if any application process is recovered, identifying whether the recovery reason of the application process belongs to abnormal state recovery;
if not, acquiring the process creation time of the application process;
if the process creation time is greater than a preset second time, re-creating an empty process for the application;
and modifying the recycling priority of the empty process into the recycling priority corresponding to the foreground process.
7. The application launch control method according to claim 1, characterized in that the method further comprises:
acquiring a background application white list;
and when the recycling priority of the application is calculated, modifying the recycling priority of each application in the background application white list into the recycling priority corresponding to the foreground process.
8. An application launch control apparatus, the apparatus comprising:
the response module is used for responding to the application hot start instruction, acquiring the sequence of the total starting times of the target application in the recording period and the last stored old hot start time, and recording the current hot start time of the target application;
the configuration adjustment module is used for configuring the CPU performance of the target application when the starting time is greater than the preset first time when the ordering of the starting total times is not lower than the preset lowest order; wherein the optimal performance includes the CPU frequency being the highest frequency;
the first acquisition module is used for acquiring the occupied memory of the target application in the history starting process;
the first modification module is used for modifying the system allocation memory of the target application to be not smaller than the memory value of the occupied memory when the occupied memory is larger than the system allocation memory;
the hot start module is used for starting the target application according to the adjusted CPU performance configuration and the system allocation memory;
the judging module is used for judging whether the acceleration time of the current hot start time compared with the old hot start time reaches a preset condition or not;
the mark adding module is used for adding a priority mark with a continuous time for the target application when the speed-up time reaches a preset condition, so that the target application is started again in the continuous time of the priority mark, and the target application is started directly by the adjusted CPU performance configuration and the system allocation memory;
and the updating module is used for updating the current hot start time to the record so as to cover the old hot start time and updating the start times of the target application in a unit time.
9. A storage medium, characterized by: the storage medium having stored therein computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the application launch control method of any one of claims 1 to 7.
10. A computer device, comprising: one or more processors, and memory;
the memory has stored therein computer readable instructions which, when executed by the one or more processors, perform the steps of the application launch control method of any one of claims 1 to 7.
CN202310757973.9A 2023-06-26 2023-06-26 Application program start control method and device, storage medium and computer equipment Pending CN116661901A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310757973.9A CN116661901A (en) 2023-06-26 2023-06-26 Application program start control method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310757973.9A CN116661901A (en) 2023-06-26 2023-06-26 Application program start control method and device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN116661901A true CN116661901A (en) 2023-08-29

Family

ID=87709719

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310757973.9A Pending CN116661901A (en) 2023-06-26 2023-06-26 Application program start control method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN116661901A (en)

Similar Documents

Publication Publication Date Title
US9613034B2 (en) Methods, apparatuses and computer program products for updating a content item
US20150271318A1 (en) Efficient retrieval of 4g lte capabilities
US20090164152A1 (en) Method, Apparatus and Computer Program Product for Providing Power Consumption Notification and Management
KR20160132432A (en) Dynamic resource management for multi-process applications
US20090259936A1 (en) Methods, Apparatuses and Computer Program Products for Generating A Preview of A Content Item
WO2007020735A1 (en) Conflict solving device
EP3506105B1 (en) Method and device for processing a memory and storage medium
CN110018902B (en) Memory processing method and device, electronic equipment and computer readable storage medium
CN113474756A (en) Application processing method and device, storage medium and electronic equipment
CN111666516A (en) Page loading method and device, electronic equipment and storage medium
JP2009528608A (en) Reduce code size by outlining specific functions in a library
CN109992399B (en) Resource management method, resource management device, mobile terminal and computer-readable storage medium
CN111857531A (en) Mobile terminal and file display method thereof
US20220283716A1 (en) Method and Systems for Recommending Storage Management Actions based on Capacities of Storage Systems
CN113672296A (en) Switching method and switching device for customized application, electronic equipment and storage medium
CN113031996A (en) OTA (over the air) upgrading method and device of electronic equipment, control terminal and medium
CN116661901A (en) Application program start control method and device, storage medium and computer equipment
CN109558187A (en) A kind of user interface rendering method and device
CN115617515A (en) Memory allocation method and device for intelligent Internet of things operating system and storage medium
CN114238399A (en) Cache refreshing system, method and device, computer equipment and storage medium
CN110888649B (en) Application deployment method, application baseline creation method and device
CN111625254A (en) File processing method, device, terminal and storage medium
Li et al. Extend capability of low-end android devices by scheduling apps between local and cloud
JP2010277495A (en) Compressive recording device and compressive recording method
CN108762871B (en) Page component preloading method and device and display terminal

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