CN114880042A - Application starting method and device, electronic equipment and computer readable storage medium - Google Patents

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

Info

Publication number
CN114880042A
CN114880042A CN202210463463.6A CN202210463463A CN114880042A CN 114880042 A CN114880042 A CN 114880042A CN 202210463463 A CN202210463463 A CN 202210463463A CN 114880042 A CN114880042 A CN 114880042A
Authority
CN
China
Prior art keywords
application
target
starting
target application
interception
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
CN202210463463.6A
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 CN202210463463.6A priority Critical patent/CN114880042A/en
Publication of CN114880042A publication Critical patent/CN114880042A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/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/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
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load
    • 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/5083Techniques for rebalancing the load in a distributed system

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 embodiment of the application discloses an application starting method, an application starting device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring the load state of a system; determining a target interception strategy according to the load state; and when detecting that a starting request aiming at the target application exists in the system, carrying out starting control on the target application according to the target interception strategy. Different interception strategies are determined according to different resource occupation conditions, after the application is controlled according to the interception strategies, different control of application starting is achieved according to different system resources, reasonable distribution of the system resources is facilitated, smoothness of the system is guaranteed, and user experience is improved.

Description

Application starting method and device, electronic equipment and computer readable storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to an application starting method and device, electronic equipment and a computer readable storage medium.
Background
With the rapid development of computer technology, the number of applications in terminal equipment is increasing, the modes of starting the application background mainly include the modes of obtaining system broadcasts such as system startup and the like, and mutually pulling up the applications through mechanisms such as broadcasting or service and the like, and with the increase of the service duration of the terminal by a user, the applications running in the background are increasing, so that the terminal system is more and more jammed, system resources are occupied, and user experience is influenced.
Disclosure of Invention
The embodiment of the application starting method and device, the electronic device and the computer readable storage medium can achieve hierarchical management and control of system application starting, achieve reasonable distribution of system resources and improve user experience.
In a first aspect, an embodiment of the present application provides an application starting method, including:
acquiring the load state of the system;
determining a target interception strategy according to the load state;
and when detecting that the system has a starting request aiming at the target application, carrying out starting control on the target application according to the target interception strategy.
In a second aspect, an embodiment of the present application further provides an application starting apparatus, including:
the acquisition module is used for acquiring the load state of the system;
the determining module is used for determining a target interception strategy according to the load state;
and the control module is used for carrying out starting control on the target application according to the target interception strategy when detecting that the starting request aiming at the target application exists in the system.
Wherein, in some embodiments of the present application, the target application includes at least two, and the control module includes:
the first determining unit is used for determining the quantity to be intercepted and the quantity to be started according to the target intercepting strategy and the at least two target applications when detecting that starting requests aiming at the at least two target applications exist in the system within a preset time period;
and the first control unit is used for intercepting the target applications with the quantity to be intercepted and starting the target applications with the quantity to be started.
Wherein, in some embodiments of the present application, the first control unit comprises:
an obtaining subunit, configured to obtain, for each target application, an application type of the target application;
the determining subunit is used for determining the target application to be intercepted and the target application to be started according to the application type, the quantity to be intercepted and the application to be started;
and the control subunit is used for intercepting the target application to be intercepted and starting the target application to be started.
In some embodiments of the present application, the target interception policy includes interception, and the control module includes:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a starting thread of a target application when a starting request aiming at the target application is detected in the system;
and the intercepting unit is used for intercepting the starting thread and adjusting the execution state of the starting thread to be suspended.
Wherein, in some embodiments of the present application, the control module comprises:
a second obtaining unit, configured to obtain, when it is detected that a start request for a target application exists in the system, launch application running information for launching the start request and the target application running information;
the second control unit is used for starting the target application when the launching application running information comprises foreground running;
and the third control unit is used for keeping the foreground running or the background running of the target application when the running information of the target application comprises foreground running or background running.
Wherein, in some embodiments of the present application, the control module comprises:
the third acquisition unit is used for acquiring a historical starting record of the target application when a starting request aiming at the target application is detected in the system;
the second determining unit is used for determining the starting frequency type of the target application according to the historical starting record;
and the fourth control unit is used for carrying out starting control on the target application according to the starting frequency type and the target interception strategy.
Wherein, in some embodiments of the present application, the determining module comprises:
a fourth obtaining unit, configured to obtain a mapping relationship set, where the mapping relationship set includes a mapping relationship between a preset load state and a preset interception policy;
and the third determining unit is used for determining the target interception strategy corresponding to the load state according to the mapping relation.
In a third aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps in the application starting method when executing the computer program.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the application starting method are implemented.
According to the method and the device, the load state of the terminal system is obtained, the target interception strategy is determined according to the load state, and when the fact that the starting request aiming at the target application exists in the system is detected, the target application is started and controlled according to the target interception strategy. The load state of the terminal system corresponds to the occupation situation of the terminal system resources, different interception strategies are determined according to different resource occupation situations, after the application is controlled according to the interception strategies, different control of application starting is achieved according to different system resources, reasonable distribution of the system resources is facilitated, smoothness of the system is guaranteed, and user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a scene schematic diagram of an application starting method provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of an application starting method provided in an embodiment of the present application;
FIG. 3 is a flowchart illustrating an initiation request of an initiator initiated by a caller according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an application starting apparatus provided in an embodiment of the present application;
fig. 5 is another schematic structural diagram of an application starting apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the present application will be described clearly and completely with reference to the accompanying drawings in the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the application provides an application starting method and device, electronic equipment and a computer readable storage medium. Specifically, the embodiment of the present application provides an application starting apparatus suitable for an electronic device, where the electronic device includes a terminal device, where the terminal may be a mobile phone, a personal computer, or other devices.
In the embodiment of the present application, the terminal device may independently execute the application starting method, please refer to fig. 1, which takes the case that the terminal device independently executes the application starting method as an example, where a specific execution process of the application starting method is as follows:
the terminal device 10 obtains a load state of a system of the terminal device 10, determines a target interception policy according to the load state, and performs start control on the target application according to the target interception policy when detecting that a start request for the target application exists on the terminal device 10.
In the application embodiment, the load state refers to operation information of applications in the terminal device, where the load state reflects the number of applications operating in the system and an occupation situation of system resources, and the load state may be obtained through the occupation situation of the system resources, where the occupation information of the system resources may include processor occupation information, memory occupation information, input/output occupation information, and the like.
In the embodiment of the application, the interception policy includes interception or non-interception, and may also include the number to be intercepted, and the like.
In the embodiment of the application, the starting request refers to a background starting request, and when it is detected that a starting request for an application in a background exists in the terminal device, the background starting of the application is controlled through an interception policy. The number of the applications started in the background in the terminal can be controlled by controlling the applications to be started in the background, so that a large number of background applications are prevented from occupying system resources.
The method and the device for controlling the starting of the target application comprise the steps that the load state of a terminal system is obtained, the target intercepting strategy is determined according to the load state, and when the fact that a starting request aiming at the target application exists in the system is detected, the target application is controlled to be started according to the target intercepting strategy. The load state of the terminal system corresponds to the occupation situation of the terminal system resources, different interception strategies are determined according to different resource occupation situations, after the application is controlled according to the interception strategies, different control of application starting is achieved according to different system resources, reasonable distribution of the system resources is facilitated, smoothness of the system is guaranteed, and user experience is improved.
The following are detailed below. It should be noted that the description sequence of the following embodiments is not intended to limit the priority sequence of the embodiments.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating an application starting method according to an embodiment of the present disclosure. The specific process of the application starting method can be as follows:
101. and acquiring the load state of the system.
In the embodiment of the present application, the system refers to a terminal system, and includes an android operating system or an apple operating system.
In the application embodiment, the load state refers to operation information of applications in the terminal device, where the load state reflects the number of applications operating in the system and the occupation situation of system resources.
The occupation situation of the system resources can be known by acquiring the system load state, so that the application starting can be controlled conveniently according to the occupation situation of the system resources.
In this embodiment of the present application, the load state may be obtained through a system resource occupation condition, that is, optionally, in some embodiments of the present application, the step "obtaining the load state of the system" includes:
acquiring resource occupation information of the system, wherein the resource occupation information comprises at least one of processor occupation information, memory occupation information and input/output occupation information;
and determining the load state of the system according to the resource occupation information.
The processor occupation information, the memory occupation information, the input and output occupation information and the like can all reflect the occupation situation of system resources. The system resource data can be obtained by acquiring system memory information, processor available information and input/output events.
102. And determining a target interception strategy according to the load state.
In the embodiment of the application, the interception policy includes interception, non-interception, or setting the number to be intercepted, and the like. The number to be intercepted refers to the number of applications to be intercepted in the current stage.
The interception strategy is determined through the load state, so that the interception strategy is matched with the load state of the system, the purpose that the application starting is associated with the system load state is achieved after the starting of the system application is controlled according to the interception strategy, for example, when the system load state shows that available resources in the system are few, the control of the application starting can be increased, and the difficulty in distributing the system resources is reduced.
In this embodiment of the present application, the interception policy may also be determined according to a mapping relationship with the load state, that is, optionally, in some embodiments of the present application, the step "determining the target interception policy according to the load state" includes:
acquiring a mapping relation set, wherein the mapping relation set comprises a mapping relation between a preset load state and a preset interception strategy;
and determining a target interception strategy corresponding to the load state according to the mapping relation.
The interception strategy corresponding to the load state of the current system can be determined through the mapping relation between the load state and the interception strategy, and the interception strategy can be rapidly obtained.
In the embodiment of the present application, the mapping relationship between the load state and the interception policy may be set according to actual experience parameters, or according to actual requirements, for example, according to an occupation situation of system resources reflected by the load state, an optimal interception policy corresponding to the load state is determined, so as to ensure the flow operation of the system.
103. And when detecting that the system has a starting request aiming at the target application, carrying out starting control on the target application according to the target interception strategy.
The method includes the steps of receiving an interception policy, intercepting application start, and controlling application start according to the interception policy.
The method comprises the steps of determining an interception strategy through system load, controlling system application starting according to the interception strategy, determining startable application according to system resource occupation conditions, controlling the application which can be started by a terminal, and ensuring system fluency.
For example, in the embodiment of the present application, for a situation that system resources occupy more, a stricter interception policy (such as interception) may be set to perform interception control on the start of an application, so as to avoid the number of applications that can be started in the system. And aiming at the condition that the system resource occupies less resources, a looser interception strategy (such as no interception) can be set so as to start and control the starting of the application, realize the starting of the corresponding application and facilitate the use of users.
In the embodiment of the application, the starting request includes background starting, wherein the application background starting refers to starting of the application under the condition that a user does not sense the application, the control of the starting number of the system background applications is realized through the control of the application background starting, the situation that the number of the system background starting applications is large, system resources are occupied, the situation that the user experience is affected due to blocking is avoided, and the like is avoided.
In the embodiment of the application, the method for starting the system application background mainly includes monitoring system startup broadcast or awakening by other application broadcast, and the like, so that the application background starting request can be acquired by monitoring the starting request of the application, and then background starting control is performed on the application according to a corresponding interception strategy.
In the embodiment of the application, the application started in the background may include a single application, and therefore when a starting request for the single application occurs, the application can be controlled to be started by intercepting or not intercepting in the interception policy, so that the application can be controlled to be not started or started.
In this embodiment of the present application, the application started in the background may include a plurality of applications, and therefore, when a start request for a plurality of applications occurs, the number of applications to be intercepted and the number of applications that can be started may be determined by the number of intercepts in the intercept policy, that is, optionally, in some embodiments of the present application, the target application includes at least two steps, "when a start request for a target application is detected in the system, start control is performed on the target application according to the target intercept policy", including:
when detecting that a starting request aiming at least two target applications exists in the system within a preset time period, determining the quantity to be intercepted and the quantity to be started according to the target interception strategy and the at least two target applications;
intercepting the target applications of the quantity to be intercepted and starting the target applications of the quantity to be started.
In the embodiment of the present application, the preset time period is a time period with a short time span, for example, a time period within two seconds or within three seconds.
When the starting requests of the plurality of applications simultaneously appear in a short time period, the decision of interception or non-interception is difficult to be made directly according to the occupation condition of system resources, for example, when the plurality of applications are started simultaneously, a large amount of system resources are occupied, and when the plurality of applications are not started simultaneously, the system has recombined available resources, and the operation of the applications is influenced by the fact that the plurality of applications are not started simultaneously, so that the user experience is influenced.
Therefore, in the embodiment of the present application, when a plurality of application start requests occur within a short time period, the number of interception and the number of start may be determined according to the interception policy, so as to intercept and start a part of applications, and implement hierarchical start control on a plurality of applications.
In this embodiment of the present application, when a start request of multiple applications occurs within a short period of time, a startable application and an application to be intercepted may be determined according to a type of each application, that is, optionally, in some embodiments of the present application, the step "intercepting the number of target applications to be intercepted and starting the number of target applications to be started" includes:
for each target application, acquiring an application type of the target application;
determining a target application to be intercepted and a target application to be started according to the application type, the quantity to be intercepted and the application to be started;
intercepting the target application to be intercepted, and starting the target application to be started.
In this embodiment, the application type refers to a type to which an application belongs, where the application type may be classified into a common type or an uncommon type according to whether the application is frequently used, or may be classified into a communication type application or a non-communication type application according to whether the application is a communication type application.
In the embodiment of the application, the application type can be set according to the requirements of the user, and after the application to be intercepted and the application to be started are determined according to the application type, the interception or the starting of the application can be determined according to the requirements of the user, so that the actual requirements of the user are met, and the user experience is improved.
In this embodiment of the present application, intercepting or starting an application may be controlled by managing a starting process corresponding to the application, that is, optionally, in some embodiments of the present application, a target intercepting policy includes intercepting, and "when a starting request for a target application is detected in the system, starting the target application is controlled according to the target intercepting policy", including:
when detecting that a starting request aiming at a target application exists in the system, acquiring a starting thread of the target application;
intercepting the starting thread and adjusting the execution state of the starting thread to be suspended.
The control of starting or intercepting the application is realized by controlling the starting process corresponding to the application.
In the embodiment of the present application, the start request of the application may also be initiated by broadcasting through other applications, for example, the start request of the current application is initiated through other applications. Accordingly, in some embodiments of the present application, a start request for an application may be obtained from an application component and an application process management service (AMS).
Optionally, in some embodiments of the application, the step "performing start control on a target application according to a target interception policy when a start request for the target application is detected in the system" includes:
when detecting that a starting request aiming at a target application exists in the system, acquiring starting application running information for starting the starting request and the target application running information;
when the launching application running information comprises foreground running, starting the target application;
and when the target application running information comprises foreground running or background running, the foreground running or the background running of the target application is kept.
When the initiation request for the target application is the application running in the foreground, the initiation of the initiation request is generated by the user operation, and therefore, the target application can be started in order to meet the use of the target application by the user.
When the requested application is already in the running state, the application is indicated as the application used by the user in the historical time, so that the running state of the requested application can be maintained when the running state of the requested application is running. For example, when the running information of the target application includes foreground running or background running, the running state of the target application may be maintained, that is, when the running state of the target application is foreground running, the foreground running of the target application is maintained, and when the running state of the target application is background running, the background running of the target application is maintained.
In the embodiment of the present application, the application may be controlled to start according to a start frequency type of a requested application, that is, optionally, in some embodiments of the present application, the step "when a start request for a target application is detected in the system, controlling to start the target application according to the target interception policy" includes:
when detecting that a starting request aiming at a target application exists in the system, acquiring a historical starting record of the target application;
determining the starting frequency type of the target application according to the historical starting record;
and performing starting control on the target application according to the starting frequency type and the target interception strategy.
The historical starting record records starting data of the application in historical time, and starting frequency data of the application can be acquired according to the starting data, so that the starting frequency type of the application is acquired.
In the embodiment of the present application, the start frequency type includes a high frequency start type or a low frequency start type, where the high frequency start type indicates that the frequency of the application started and used by the user is high, and therefore, when the start frequency type of the requested application is the high frequency start type, the application may be directly started to meet the start requirement of the user. And aiming at the low-frequency starting type, the starting of the application can be intercepted, so that the number of the applications started by the system background is reduced, the occupation of system resources is reduced, and the user experience is improved.
The method and the device for controlling the starting of the target application comprise the steps that the load state of a terminal system is obtained, the target intercepting strategy is determined according to the load state, and when the fact that a starting request aiming at the target application exists in the system is detected, the target application is controlled to be started according to the target intercepting strategy. The load state of the terminal system corresponds to the occupation situation of the terminal system resources, different interception strategies are determined according to different resource occupation situations, after the application is controlled according to the interception strategies, different control of application starting is achieved according to different system resources, reasonable distribution of the system resources is facilitated, smoothness of the system is guaranteed, and user experience is improved.
Referring to fig. 3, fig. 3 is a schematic flowchart of a process for initiating a start request of an initiator by a caller according to an embodiment of the present application, where the specific process for initiating the start request includes:
111. a caller (application or system) initiates an application component starting request to an application component and an application process management service (AMS);
112. after receiving the request, the application component and the application process management service transmit the information of a caller and a booted person to the interception controller;
113. the method comprises the steps that an interception controller obtains a system load state and selects an interception strategy according to the state;
114. the interception controller judges whether to intercept and return the information to the application component and the application process management service by combining the received caller and initiator information and the interception strategy;
115. and the application component and the application process management service interrupt the request or execute the request to pull up the application according to the returned result.
When a request for starting the application background is obtained, an interception strategy is obtained through a system load state, application interception or starting is controlled according to the interception strategy, and management of background application starting control is achieved.
In order to better implement the application starting method, the application starting device based on the application starting method is further provided. Wherein the meaning of the third target word is the same as that in the application starting method, and the specific implementation details can refer to the description in the method embodiment.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an application startup device provided in the present application, where the application startup device may include:
an obtaining module 201, configured to obtain a load state of a system;
a determining module 202, configured to determine a target interception policy according to the load status;
and the control module 203 is configured to, when it is detected that there is a start request for a target application in the system, perform start control on the target application according to the target interception policy.
Among them, in some embodiments of the present application, the target application includes at least two, and the control module 203 includes:
the first determining unit is used for determining the quantity to be intercepted and the quantity to be started according to the target intercepting strategy and the at least two target applications when detecting that starting requests aiming at the at least two target applications exist in the system within a preset time period;
and the first control unit is used for intercepting the target applications with the quantity to be intercepted and starting the target applications with the quantity to be started.
Wherein, in some embodiments of the present application, the first control unit comprises:
the obtaining subunit is used for obtaining the application type of each target application;
the determining subunit is used for determining the target application to be intercepted and the target application to be started according to the application type, the quantity to be intercepted and the application to be started;
and the control subunit is used for intercepting the target application to be intercepted and starting the target application to be started.
In some embodiments of the present application, the target interception policy includes interception, and the control module 203 includes:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a starting thread of a target application when a starting request aiming at the target application is detected in the system;
and the intercepting unit is used for intercepting the starting thread and adjusting the execution state of the starting thread to be suspended.
Among others, in some embodiments of the present application, the control module 203 includes:
a second obtaining unit, configured to obtain, when it is detected that a start request for a target application exists in the system, launch application running information for launching the start request and the target application running information;
the second control unit is used for starting the target application when the launching application running information comprises foreground running;
and the third control unit is used for keeping the foreground running or the background running of the target application when the running information of the target application comprises foreground running or background running.
Among others, in some embodiments of the present application, the control module 203 includes:
the third acquisition unit is used for acquiring a historical starting record of the target application when a starting request aiming at the target application is detected in the system;
the second determining unit is used for determining the starting frequency type of the target application according to the historical starting record;
and the fourth control unit is used for carrying out starting control on the target application according to the starting frequency type and the target interception strategy.
Among other things, in some embodiments of the present application, the determining module 202 includes:
a fourth obtaining unit, configured to obtain a mapping relationship set, where the mapping relationship set includes a mapping relationship between a preset load state and a preset interception policy;
and the third determining unit is used for determining the target interception strategy corresponding to the load state according to the mapping relation.
In the embodiment of the application, an obtaining module 201 obtains a load state of a system, a determining module 202 determines a target interception policy according to the load state, and a control module 203 performs start control on a target application according to the target interception policy when detecting that a start request for the target application exists in the system.
The method and the device for controlling the starting of the target application comprise the steps that the load state of a terminal system is obtained, the target interception strategy is determined according to the load state, and when the fact that the starting request aiming at the target application exists in the system is detected, the target application is started and controlled according to the target interception strategy. The load state of the terminal system corresponds to the occupation situation of the terminal system resources, different interception strategies are determined according to different resource occupation situations, after the application is controlled according to the interception strategies, different control of application starting is achieved according to different system resources, reasonable distribution of the system resources is facilitated, smoothness of the system is guaranteed, and user experience is improved.
Referring to fig. 5, fig. 5 is another schematic structural diagram of an application startup device according to an embodiment of the present application, where the application startup device specifically includes:
the interception controller 211: in the Android native application process starting process, a pile is inserted, the load state of a system resource is obtained through calculation of the system load detection module 212, an interception strategy is associated according to the calculation result, and then whether the application process is intercepted to start or not is decided according to the corresponding strategy.
The system load detection module 212: the occupation and surplus conditions of resources such as a processor, a memory, an input and an output of the current system are obtained at intervals and fed back to the interception controller 211.
Self-initiated interception policy set 213: the method comprises a series of application starting interception strategies with different degrees of strictness, which are designed in advance according to information such as system load, caller state (whether the caller can sense the application) and started application state (whether the user is frequently used).
AMS 214: and the Android system comprises application components and application process management services.
Different interception strategies are determined according to different resource occupation conditions, after the application is controlled according to the interception strategies, different control of application starting is achieved according to different system resources, reasonable distribution of the system resources is facilitated, smoothness of the system is guaranteed, and user experience is improved.
In addition, the present application also provides an electronic device, as shown in fig. 6, which shows a schematic structural diagram of the electronic device related to the present application, specifically:
the electronic device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of 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, and performs various functions of the electronic device and processes data by operating or executing software 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, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the 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 access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are realized through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The electronic device may further include an input unit 404, and the input unit 404 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the electronic device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the electronic device loads an executable file corresponding to a process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application programs stored in the memory 402, thereby implementing the steps in any application starting method provided by this application.
According to the method and the device, the load state of the terminal system is obtained, the target interception strategy is determined according to the load state, and when the starting request aiming at the target application is detected in the system, the target application is started and controlled according to the target interception strategy. The load state of the terminal system corresponds to the occupation situation of the terminal system resources, different interception strategies are determined according to different resource occupation situations, after the application is controlled according to the interception strategies, different control of application starting is achieved according to different system resources, reasonable distribution of the system resources is facilitated, smoothness of the system is guaranteed, and user experience is improved.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer-readable storage medium having stored thereon a computer program, which can be loaded by a processor to perform the steps of any of the application launching methods provided herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute any step in the image processing provided by the present application, the beneficial effects that can be achieved by any application starting method provided by the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
The application starting method, the application starting device, the electronic device and the storage medium provided by the present application are described in detail above, and a specific example is applied in the present application to illustrate the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An application startup method, comprising:
acquiring the load state of the system;
determining a target interception strategy according to the load state;
and when detecting that the system has a starting request aiming at the target application, carrying out starting control on the target application according to the target interception strategy.
2. The method according to claim 1, wherein the target applications include at least two, and the performing, when it is detected that there is a start request for a target application in the system, start control on the target application according to the target interception policy includes:
when detecting that a starting request aiming at least two target applications exists in the system within a preset time period, determining the quantity to be intercepted and the quantity to be started according to the target interception strategy and the at least two target applications;
intercepting the target applications of the quantity to be intercepted and starting the target applications of the quantity to be started.
3. The method of claim 2, wherein the intercepting the number of target applications to be intercepted and the launching the number of target applications to be launched comprises:
for each target application, acquiring an application type of the target application;
determining a target application to be intercepted and a target application to be started according to the application type, the quantity to be intercepted and the application to be started;
intercepting the target application to be intercepted, and starting the target application to be started.
4. The method of claim 1, wherein the target interception policy comprises interception, and wherein when a start request for a target application is detected in the system, performing start control on the target application according to the target interception policy comprises:
when detecting that a starting request aiming at a target application exists in the system, acquiring a starting thread of the target application;
intercepting the starting thread and adjusting the execution state of the starting thread to be suspended.
5. The method according to claim 1, wherein when it is detected that there is a start request for a target application in the system, performing start control on the target application according to the target interception policy includes:
when detecting that a starting request aiming at a target application exists in the system, acquiring starting application running information for starting the starting request and the target application running information;
when the launching application running information comprises foreground running, starting the target application;
and when the target application running information comprises foreground running or background running, the foreground running or the background running of the target application is kept.
6. The method according to claim 1, wherein when it is detected that there is a start request for a target application in the system, performing start control on the target application according to the target interception policy includes:
when detecting that a starting request aiming at a target application exists in the system, acquiring a historical starting record of the target application;
determining the starting frequency type of the target application according to the historical starting record;
and performing starting control on the target application according to the starting frequency type and the target interception strategy.
7. The method according to claim 1, wherein said determining a target interception policy based on said load status comprises:
acquiring a mapping relation set, wherein the mapping relation set comprises a mapping relation between a preset load state and a preset interception strategy;
and determining a target interception strategy corresponding to the load state according to the mapping relation.
8. An application startup device, characterized by comprising:
the acquisition module is used for acquiring the load state of the system;
the determining module is used for determining a target interception strategy according to the load state;
and the control module is used for carrying out starting control on the target application according to the target interception strategy when detecting that the system has a starting request aiming at the target application.
9. An electronic device, characterized in that the electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the application launching method as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the application launching method as claimed in any one of the claims 1 to 7.
CN202210463463.6A 2022-04-28 2022-04-28 Application starting method and device, electronic equipment and computer readable storage medium Pending CN114880042A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210463463.6A CN114880042A (en) 2022-04-28 2022-04-28 Application starting method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210463463.6A CN114880042A (en) 2022-04-28 2022-04-28 Application starting method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114880042A true CN114880042A (en) 2022-08-09

Family

ID=82672084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210463463.6A Pending CN114880042A (en) 2022-04-28 2022-04-28 Application starting method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114880042A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116661984A (en) * 2022-09-09 2023-08-29 荣耀终端有限公司 Load control method, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116661984A (en) * 2022-09-09 2023-08-29 荣耀终端有限公司 Load control method, electronic equipment and storage medium
CN116661984B (en) * 2022-09-09 2024-05-07 荣耀终端有限公司 Load control method, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US20190200047A1 (en) Data processing method, apparatus, and system for live streaming page
CN107832100B (en) APK plug-in loading method and terminal thereof
US7657762B2 (en) Apparatus and methods for power management of a circuit module
CN110333947B (en) Method, device, equipment and medium for loading subcontracting resources of game application
US20010010052A1 (en) Method for controlling multithreading
WO2019024649A1 (en) Application program launching method, device, storage medium and terminal
CN111767012A (en) Screen projection method and device
CN116028205A (en) Resource scheduling method and electronic equipment
CN114880042A (en) Application starting method and device, electronic equipment and computer readable storage medium
CN103544039A (en) Plug-in loading processing method and device
CN117130454B (en) Power consumption adjustment method and electronic equipment
WO2023193527A1 (en) Thread execution method and apparatus, electronic device, and computer-readable storage medium
CN110650546B (en) File transmission method, device, storage medium and terminal
CN116578422A (en) Resource allocation method and electronic equipment
CN113867831B (en) Intelligent device control method, intelligent device, storage medium and electronic device
WO2024021485A1 (en) Processor performance adjustment method and apparatus, electronic device and storage medium
WO2019024643A1 (en) Data synchronization control method, device and electronic equipment
CN112131029B (en) Broadcast processing method, apparatus, computer device and storage medium
CN112604267B (en) Game processing method, system, device, equipment and medium
CN112860352A (en) Application loading method and device, storage medium and terminal
US11442522B2 (en) Method of controlling performance boosting of semiconductor device based on at least user input and feedback from previous boosting policies and semiconductor device performing the method
CN116915717B (en) Throughput distribution method and device, storage medium and electronic equipment
CN116028005B (en) Audio session acquisition method, device, equipment and storage medium
CN117615205A (en) Volume adjustment control method and device, storage medium and electronic equipment
CN117170697A (en) Display interface updating method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination