CN112860439A - Application starting method and device, terminal and storage medium - Google Patents
Application starting method and device, terminal and storage medium Download PDFInfo
- Publication number
- CN112860439A CN112860439A CN202110227731.XA CN202110227731A CN112860439A CN 112860439 A CN112860439 A CN 112860439A CN 202110227731 A CN202110227731 A CN 202110227731A CN 112860439 A CN112860439 A CN 112860439A
- Authority
- CN
- China
- Prior art keywords
- application
- starting
- priority
- determining
- present disclosure
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 203
- 230000008569 process Effects 0.000 claims abstract description 157
- 230000004044 response Effects 0.000 claims abstract description 17
- 230000008014 freezing Effects 0.000 claims description 12
- 238000007710 freezing Methods 0.000 claims description 12
- 238000004519 manufacturing process Methods 0.000 claims description 9
- 230000026676 system process Effects 0.000 claims description 5
- 230000006870 function Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 7
- 238000004590 computer program Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 230000006855 networking Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000010257 thawing Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation 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/5016—Allocation 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/5021—Priority
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 disclosure relates to an application starting method, an application starting device, a terminal and a storage medium. The application starting method provided by the disclosure comprises the following steps: in response to launching the first application, determining a process of a second application associated with the first application; the process of the second application is adjusted for priority of use of the system resource. According to the application starting method provided by the disclosure, by improving the priority of the process of the second application associated with the first application for using the system resource when the first application is started, more system resources can be allocated for starting the first application, so that the loading speed of the relevant process is improved, and the starting speed of the first application is improved.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an application starting method, an application starting device, a terminal, and a storage medium.
Background
Starting an application on a mobile phone consumes high system resources such as CPU load, memory, I/O (input/output), and the like. However, as the functions of the mobile phone are rich, more and more application programs are installed in the mobile phone, and when the application is started, a system background may have run multiple processes at the same time, so that system resources required by the application start are seized, and the application start speed is affected.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
According to one or more embodiments of the present disclosure, there is provided an application starting method including:
in response to launching a first application, determining a process of a second application associated with the first application;
and adjusting the priority of the process of the second application for using the system resource.
According to one or more embodiments of the present disclosure, there is provided an application-based starting apparatus including:
a process determination unit, configured to determine, in response to starting a first application, a process of a second application associated with the first application;
and the priority adjusting unit is used for adjusting the priority of the process of the second application for using the system resource.
According to one or more embodiments of the present disclosure, there is provided a mobile terminal, characterized in that the mobile terminal includes:
at least one memory and at least one processor;
wherein the memory is configured to store program code, and the processor is configured to call the program code stored in the memory to execute an application launching method provided according to one or more embodiments of the present disclosure.
According to one or more embodiments of the present disclosure, there is provided a non-transitory computer storage medium storing program code which, when run on a computer device, causes the computer device to perform an application launching method provided according to one or more embodiments of the present disclosure.
According to the application starting method provided by one or more embodiments of the disclosure, by increasing the priority of the process of the second application associated with the first application using the system resource when the first application is started, more system resources can be allocated for starting the first application, so that the loading speed of the relevant process is increased, and the starting speed of the first application is increased.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a flowchart of an application starting method according to an embodiment of the present disclosure;
fig. 2 is a flowchart of an application starting method according to another embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an application starting apparatus according to an embodiment of the present disclosure
Fig. 4 is a schematic structural diagram of a terminal device for implementing an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The term "responsive to" and related terms mean that one signal or event is affected to some extent, but not necessarily completely or directly, by another signal or event. If an event x occurs "in response" to an event y, x may respond directly or indirectly to y. For example, the occurrence of y may ultimately result in the occurrence of x, but other intermediate events and/or conditions may exist. In other cases, y may not necessarily result in the occurrence of x, and x may occur even though y has not already occurred. Furthermore, the term "responsive to" may also mean "at least partially responsive to". The term "determining" broadly encompasses a wide variety of actions that can include calculating, computing, processing, deriving, investigating, looking up (e.g., looking up in a table, a database or another data structure), ascertaining and the like, and can also include receiving (e.g., receiving information), accessing (e.g., accessing data in a memory) and the like, as well as resolving, selecting, choosing, establishing and the like. Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Fig. 1 illustrates an application starting method 100 provided based on one or more embodiments of the present disclosure, where the application starting method 100 includes steps S101 to S102:
step S101: in response to launching a first application, a process of a second application associated with the first application is determined.
The first application and the second application are different application programs. In some embodiments, the second application comprises an application that communicates with the first application, illustratively, the first application is a social networking application, and the second application is a contact book application, a camera application, or the like associated with the social networking application during the startup of the social networking application.
It should be noted that "responding to the starting of the first application" may include responding to an event for starting the first application, such as an event for a user to click an application icon or other events for starting the application, and may further include a trigger event preset in the starting process of the first application, where the trigger event is used for triggering the execution of step S101.
Step S102: and adjusting the priority of the process of the second application for using the system resource.
System resources include, but are not limited to, processors, memory, I/O resources, network resources, and the like. In some embodiments, a process using system resources with a higher priority may take more CPU slots, or be executed first, or be released later, or a thread corresponding to the process may preferentially use a less loaded processor core.
Illustratively, the priority may be represented by a value, and when the priority of the process of the second application using the system resource is lower than a preset value, the priority is increased.
In this way, the application starting method provided by the disclosure can allocate more system resources for starting the first application by improving the priority of the process of the second application associated with the first application for using the system resources when the first application is started, thereby improving the loading speed of the relevant process and improving the starting speed of the first application.
In some embodiments, the method 100 further comprises:
step S103: and after the first application is started, restoring the priority of the process of the second application for using the system resource.
In some embodiments, the method 100 further comprises:
step A1: determining a target background process in response to starting the first application;
step A2: freezing the target background process.
In some embodiments, the target background process does not include currently running important processes, such as a system process, a sound production process, or a process that is interacting with the user. The sound production process refers to a sound production process, such as a navigation process, a player process, and the like.
Illustratively, the frozen background process can freeze the process based on the freeze frame of linux, the frozen process is not run any more and saves the state before being frozen, and the running can be resumed after being thawed.
According to one or more embodiments of the present disclosure, by freezing a target background process when a first application is started, relatively more system resources can be allocated to the first application while reducing the total load of the system, thereby increasing the starting speed of the first application.
Further, in some embodiments, step a1 includes:
step a 1: and determining the target background process based on the resource occupation degree of the background process and/or the utilization rate of the background process.
For example, a process with a resource occupancy degree higher than a preset threshold value and/or a process with a user usage rate lower than the preset threshold value may be determined as a target background process; if the background running process is high, the number of the target background processes can be further limited, for example, 10 processes running in the background and having the lowest user utilization rate can be selected as the target background processes. The utilization rate of the process can be determined based on the number of times of use and/or the use duration in the preset time, and the influence of freezing the background process on the normal use of the user can be reduced to the maximum extent while the first application is accelerated to be started by freezing the process with low utilization rate in the application starting process.
Further, in some embodiments, the method 100 further comprises:
step A3: and unfreezing the target background process after the first application is started.
Referring to fig. 2, fig. 2 shows an application starting method 200 provided based on another embodiment of the present disclosure, where the application starting method 200 includes steps S201 to S206:
step S201: in response to starting the first application, a first set of processes is determined based on resource occupancy of the background process and/or usage of the background process.
Step S202: and determining a target background process according to a difference set of the first process set and a second process set, wherein the second process set comprises a system process, a sound production process and a process interacting with a user.
Step S203: the target background process is frozen.
Step S204: a process of a second application in communication with the first application and its frozen state are determined. If the process of the second application is frozen, go to step S2051; if the process of the second application is not frozen, step S2052 is performed.
Step S2051: unfreezing the frozen second application. Step S2052 is executed next.
Step S2052: the priority of the process of the second application using the system resource is increased.
Step S206: and after the first application is started, unfreezing the frozen target background process, and recovering the priority of the process of the adjusted second application for using the system resources.
The frozen process of the second application unfrozen in step S2051 may include the target background process frozen in step S203, or may include a background process that has been frozen by the system before step S203 is executed. In some embodiments, in performing step S202, the process of the second application may be included in the second set of processes to avoid the second application process being frozen. However, not all processes of the second application communicating with the first application may be determined in advance, and therefore, the present embodiment may prevent invalidation of the process of the second application that adjusts the priority due to freezing by determining the frozen state of the process of the second application and thawing the frozen process in time.
In this way, according to the application starting method provided by one or more embodiments of the present disclosure, when a first application starts, a non-important target background process is frozen to release system resources, a process of a second application communicating with the first application is unfrozen and the priority of the second application using the system resources is increased, so that more system resources can be inclined towards the first application without increasing the total load of the system, and the starting speed of the first application is accelerated.
Correspondingly, fig. 3 shows an application launching device 300 provided based on one or more embodiments of the present disclosure, including:
a process determining unit 301, configured to determine, in response to starting a first application, a process of a second application associated with the first application;
a priority adjusting unit 302, configured to adjust a priority of the process of the second application using the system resource.
According to the application starting device provided by one or more embodiments of the present disclosure, by increasing the priority of the process of the second application associated with the first application using the system resource when the first application is started, more system resources can be allocated for starting the first application, so as to increase the loading speed of the related process and increase the starting speed of the first application.
In some embodiments, the second application comprises an application that communicates with the first application, illustratively, the first application is a social networking application, and the second application is a contact book application, a camera application, or the like associated with the social networking application during the startup of the social networking application.
In some embodiments, the application launching device 300 further comprises:
and the priority restoration unit is used for restoring the priority of the process of the second application for using the system resources after the first application is started.
In some embodiments, the application launching device 300 further comprises:
a target process determination unit, configured to determine a target background process in response to starting the first application;
and the process freezing unit is used for freezing the target background process.
In some embodiments, the target background process does not include currently running important processes, such as a system process, a sound production process, or a process that is interacting with the user. The sound production process refers to a sound production process, such as a navigation process, a player process, and the like.
Illustratively, the frozen background process can freeze the process based on the freeze frame of linux, the frozen process is not run any more and saves the state before being frozen, and the running can be resumed after being thawed.
Further, in some embodiments, the application launching device 300 further comprises:
and the process unfreezing unit is used for unfreezing the target background process after the first application is started.
According to one or more embodiments of the present disclosure, by freezing a target background process when a first application is started, relatively more system resources can be allocated to the first application while reducing the total load of the system, thereby increasing the starting speed of the first application.
Further, in some embodiments, the target process determining unit is configured to determine the target background process based on a resource occupancy level of the background process and/or a usage rate of the background process.
For example, a process with a resource occupancy degree higher than a preset threshold value and/or a process with a user usage rate lower than the preset threshold value may be determined as a target background process; if the background running process is high, the number of the target background processes can be further limited, for example, 10 processes running in the background and having the lowest user utilization rate can be selected as the target background processes. The utilization rate of the process can be determined based on the number of times of use and/or the use duration in the preset time, and the influence of freezing the background process on the normal use of the user can be reduced to the maximum extent while the first application is accelerated to be started by freezing the process with low utilization rate in the application starting process.
In some embodiments, the process determining unit comprises a frozen state determining unit for determining a frozen state of the process of the second application; the application launching device 300 further comprises a unfreezing unit for unfreezing the process of the second application if the process of the second application is in a frozen state. For the embodiments of the apparatus, since they correspond substantially to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described apparatus embodiments are merely illustrative, in that modules illustrated as separate modules may or may not be separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Accordingly, according to one or more embodiments of the present disclosure, there is provided a terminal device including:
at least one memory and at least one processor;
wherein the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the application starting method provided by one or more embodiments of the present disclosure.
Referring now to fig. 4, a block diagram of a mobile terminal 400 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the disclosed embodiment may include, but is not limited to, devices such as a television, smart screen, cell phone, computer, e-reader, PDA (personal digital assistant), PAD (tablet), and the like. The terminal shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the terminal device 400 may include a processing means (e.g., a central processing unit, a graphic processor, etc.) 401 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage means 408 into a Random Access Memory (RAM) 403. In the RAM403, various programs and data necessary for the operation of the terminal apparatus 400 are also stored. The processing device 401, the ROM402, and the RAM403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the terminal device 400 to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 illustrates a terminal apparatus 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 409, or from the storage device 408, or from the ROM 402. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 401.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (hypertext transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be included in the terminal device; or may exist separately without being assembled into the terminal device.
The computer readable medium carries one or more programs which, when executed by the terminal device, cause the terminal device to: in response to launching a first application, determining a process of a second application associated with the first application; and adjusting the priority of the process of the second application for using the system resource.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer device, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a definition of the unit itself, for example, the process determining unit may also be described as "a unit for determining a process of a second application associated with a first application in response to launching said first application".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided an application starting method including: in response to launching a first application, determining a process of a second application associated with the first application; and adjusting the priority of the process of the second application for using the system resource.
According to one or more embodiments of the present disclosure, the second application includes an application that communicates with the first application.
According to one or more embodiments of the present disclosure, an application starting method further includes: determining a target background process in response to starting the first application; freezing the target background process.
According to one or more embodiments of the present disclosure, the determining a second application associated with the first application comprises: determining a frozen state of a process of the second application; the application starting method further comprises the following steps: and if the process of the second application is in the frozen state, unfreezing the process of the second application.
According to one or more embodiments of the present disclosure, the target background process does not include at least one of: system process, sound production process, and process currently interacting.
According to one or more embodiments of the present disclosure, the determining a target background process includes: and determining the target background process based on the resource occupation degree of the background process and/or the utilization rate of the background process.
According to one or more embodiments of the disclosure, after the first application is started, the priority of the process of the second application for using the system resource is restored.
According to one or more embodiments of the present disclosure, an application starting method further includes: and unfreezing the target background process after the first application is started.
According to one or more embodiments of the present disclosure, there is provided an application starting apparatus including: a process determination unit, configured to determine, in response to starting a first application, a process of a second application associated with the first application; and the priority adjusting unit is used for adjusting the priority of the process of the second application for using the system resource.
According to one or more embodiments of the present disclosure, there is provided a terminal including: at least one memory and at least one processor; wherein the memory is configured to store program code, and the processor is configured to call the program code stored in the memory to execute an application launching method provided according to one or more embodiments of the present disclosure.
According to one or more embodiments of the present disclosure, there is provided a non-transitory computer storage medium storing program code which, when run on a computer device, causes the computer device to perform an application launching method provided according to one or more embodiments of the present disclosure.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims (11)
1. An application startup method, comprising:
in response to launching a first application, determining a process of a second application associated with the first application;
and adjusting the priority of the process of the second application for using the system resource.
2. The application startup method of claim 1,
the second application comprises an application that communicates with the first application.
3. The application launching method of claim 1, further comprising:
determining a target background process in response to starting the first application;
freezing the target background process.
4. The application startup method of claim 1 or 3,
the process of determining a second application associated with the first application includes: determining a frozen state of a process of the second application;
the method further comprises the following steps: and if the process of the second application is in the frozen state, unfreezing the process of the second application.
5. The application launching method of claim 3, wherein the target background process does not include at least one of:
system process, sound production process, and process currently interacting.
6. The application launching method of claim 3, wherein the determining a target background process comprises:
and determining the target background process based on the resource occupation degree of the background process and/or the utilization rate of the background process.
7. The application startup method of claim 1,
and after the first application is started, restoring the priority of the process of the second application for using the system resource.
8. The application launching method of claim 3, further comprising:
and unfreezing the target background process after the first application is started.
9. An application startup device, characterized by comprising:
a process determination unit, configured to determine, in response to starting a first application, a process of a second application associated with the first application;
and the priority adjusting unit is used for adjusting the priority of the process of the second application for using the system resource.
10. A terminal, comprising:
at least one memory and at least one processor;
wherein the memory is configured to store program code and the processor is configured to call the program code stored in the memory to perform the application launching method of any of claims 1 to 8.
11. A non-transitory computer storage medium, characterized in that,
the non-transitory computer storage medium stores program code that, when run on a computer device, causes the computer device to perform the application launching method of any of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110227731.XA CN112860439A (en) | 2021-03-01 | 2021-03-01 | Application starting method and device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110227731.XA CN112860439A (en) | 2021-03-01 | 2021-03-01 | Application starting method and device, terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112860439A true CN112860439A (en) | 2021-05-28 |
Family
ID=75990768
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110227731.XA Pending CN112860439A (en) | 2021-03-01 | 2021-03-01 | Application starting method and device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112860439A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114217872A (en) * | 2021-12-15 | 2022-03-22 | 北京鲸鲮信息系统技术有限公司 | Application program starting method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105446811A (en) * | 2015-12-30 | 2016-03-30 | 广东欧珀移动通信有限公司 | Application process associated starting method and associated starting apparatus |
CN106528210A (en) * | 2016-10-20 | 2017-03-22 | 广东欧珀移动通信有限公司 | Application running method and apparatus |
CN106528298A (en) * | 2016-12-29 | 2017-03-22 | 努比亚技术有限公司 | Resource distribution method and device |
CN110032267A (en) * | 2018-01-10 | 2019-07-19 | 广东欧珀移动通信有限公司 | Information processing method, device, mobile terminal and computer readable storage medium |
WO2020078314A1 (en) * | 2018-10-15 | 2020-04-23 | 华为技术有限公司 | Method and apparatus for accelerating cold-starting of application, and terminal |
US20200341805A1 (en) * | 2019-04-26 | 2020-10-29 | Samsung Electronics Co., Ltd. | Method for controlling execution of application, electronic device and storage medium for the same |
CN112256354A (en) * | 2020-11-25 | 2021-01-22 | Oppo(重庆)智能科技有限公司 | Application starting method and device, storage medium and electronic equipment |
-
2021
- 2021-03-01 CN CN202110227731.XA patent/CN112860439A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105446811A (en) * | 2015-12-30 | 2016-03-30 | 广东欧珀移动通信有限公司 | Application process associated starting method and associated starting apparatus |
CN106528210A (en) * | 2016-10-20 | 2017-03-22 | 广东欧珀移动通信有限公司 | Application running method and apparatus |
CN106528298A (en) * | 2016-12-29 | 2017-03-22 | 努比亚技术有限公司 | Resource distribution method and device |
CN110032267A (en) * | 2018-01-10 | 2019-07-19 | 广东欧珀移动通信有限公司 | Information processing method, device, mobile terminal and computer readable storage medium |
WO2020078314A1 (en) * | 2018-10-15 | 2020-04-23 | 华为技术有限公司 | Method and apparatus for accelerating cold-starting of application, and terminal |
US20200341805A1 (en) * | 2019-04-26 | 2020-10-29 | Samsung Electronics Co., Ltd. | Method for controlling execution of application, electronic device and storage medium for the same |
CN112256354A (en) * | 2020-11-25 | 2021-01-22 | Oppo(重庆)智能科技有限公司 | Application starting method and device, storage medium and electronic equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114217872A (en) * | 2021-12-15 | 2022-03-22 | 北京鲸鲮信息系统技术有限公司 | Application program starting method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111221638B (en) | Concurrent task scheduling processing method, device, equipment and medium | |
CN111240834B (en) | Task execution method, device, electronic equipment and storage medium | |
CN110430142B (en) | Method and device for controlling flow | |
CN111309391A (en) | Application program starting method, device, equipment and medium | |
CN112379982B (en) | Task processing method, device, electronic equipment and computer readable storage medium | |
CN110795446A (en) | List updating method and device, readable medium and electronic equipment | |
CN111274503A (en) | Data processing method and device, electronic equipment and computer readable medium | |
CN113760982A (en) | Data processing method and device | |
CN110856004B (en) | Message processing method and device, readable storage medium and electronic equipment | |
CN114257870B (en) | Short video playing method, device, equipment and storage medium | |
CN112860439A (en) | Application starting method and device, terminal and storage medium | |
CN117093149A (en) | Memory management method, device, medium and electronic equipment | |
CN110960857A (en) | Game data monitoring method and device, electronic equipment and storage medium | |
CN110673955A (en) | Method, device, system, terminal and storage medium for optimizing memory | |
CN114374657B (en) | Data processing method and device | |
CN113518183B (en) | Camera calling method and device and electronic equipment | |
CN111756833B (en) | Node processing method, node processing device, electronic equipment and computer readable medium | |
CN111459893B (en) | File processing method and device and electronic equipment | |
CN111209042B (en) | Method, device, medium and electronic equipment for establishing function stack | |
CN111538721A (en) | Account processing method and device, electronic equipment and computer readable storage medium | |
CN110502891B (en) | Method, device, medium and electronic equipment for acquiring process memory leakage | |
CN111324386B (en) | Method and device for starting split application program, electronic equipment and storage medium | |
CN111949528A (en) | Memory leak detection method and device, electronic equipment and storage medium | |
CN112163176A (en) | Data storage method and device, electronic equipment and computer readable medium | |
CN110633141A (en) | Memory management method and device of application program, terminal equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |