Method for controlling execution of application, electronic device and storage medium thereof

By identifying and limiting less dependent processes in electronic devices, combined with optimizing process priorities, the performance problems caused by long startup times for high-resource applications and the increase in background processes are solved, achieving faster application startup and stable operation.

CN113728312BActive Publication Date: 2024-08-23SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080031247.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-04-26
Filing Date
2020-03-20
Publication Date
2024-08-23
Estimated Expiration
2040-03-20

AI Technical Summary

Technical Problem

In high-performance electronic devices, when running high-resource applications, the application startup time is long, and the increase in background processes leads to an increase in CPU usage, affecting the application startup speed.

Method used

By identifying multiple processes associated with an application, limiting the operations of less dependent processes during the application startup period, and releasing operation restrictions according to preset conditions, increasing the priority of the startup target process to accelerate application startup.

Benefits of technology

The application startup time perceived by the user is shortened, the application startup speed is improved, the application startup delay caused by an increase in background processes is prevented, and the stable performance of the electronic device is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113728312B_ABST
    Figure CN113728312B_ABST
Patent Text Reader

Abstract

An electronic device is provided. The electronic device includes at least one processor and a memory storing instructions, wherein the instructions are executed to enable the at least one processor to: identify multiple processes associated with an application, identify at least one process whose operation is restricted among the multiple processes during at least a portion of the time when the application is running, restrict the operation of the at least one identified process during the at least a portion of the time when the application is running, and release the operation restriction on at least some of the at least one identified process in response to satisfying a preset condition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a method for controlling the execution of an application. More specifically, the present disclosure relates to an electronic device and a storage medium thereof. Background Art

[0002] As smart phones or other electronic devices gain higher performance, various services are being provided on electronic devices. For example, more and more applications are becoming widely used to provide more complex services via artificial intelligence (AI) technology, such as Bixby or the Internet of Things (IoT). The application used on such a smart platform is called an application, and when the application is started, it can be calculated as resources such as classes, layouts, images, or libraries are read from the memory. This startup may require waiting time to allow the started application to run completely on the screen. Therefore, a screen indicating loading can be displayed on the screen.

[0003] The above information is presented as background information only to assist with an understanding of the present disclosure. No determination has been made, and no assertion is made, as to whether any of the above may be applicable as prior art with respect to the present disclosure. Summary of the invention

[0004] Technical issues

[0005] Recent electronic devices deliver better performance, thus running applications more seamlessly. However, when running high-resource applications, launching the application still takes time. The startup time may be extended due to the various computing tasks and resources necessary when initially executing the application.

[0006] The method for reducing the application startup time is to schedule as many application-related processes as possible in a high-performance central processing unit (CPU). For example, launching a target process related to the launched application can be rendered to run on a high-performance CPU.

[0007] However, as the electronic device is used for a longer time, the number of background running processes may increase regardless of the launched application. Therefore, although a high-performance CPU is used, the CPU occupancy rate may be allocated for a longer time to process background processes rather than to process the launched application-related processes. In addition, turning all background processes into a frozen state to avoid unnecessary scheduling may cause the electronic device to malfunction.

[0008] Solution to the problem

[0009] Aspects of the present disclosure are to solve at least the above-mentioned problems and / or disadvantages and to provide at least the advantages described below. Therefore, one aspect of the present disclosure is to provide a method for improving the startup speed when running an application.

[0010] Additional aspects will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the presented embodiments.

[0011] According to one aspect of the present disclosure, an electronic device is provided. The electronic device includes at least one processor and a memory storing instructions, which, when executed by the at least one processor, enable the at least one processor to identify multiple processes associated with an application, identify at least one operation-restricted process among the multiple processes, the at least one operation-restricted process is operation-restricted during at least a portion of the time when the application is running, restrict the operation of the at least one operation-restricted process during at least a portion of the time when the application is running, and release the operation restriction on a first operation-restricted process among the at least one operation-restricted process in response to satisfying a preset condition.

[0012] According to another aspect of the present disclosure, a method for controlling the execution of an application on an electronic device is provided. The method includes: identifying multiple processes associated with the application; identifying at least one operation-restricted process among the multiple processes, the at least one operation-restricted process being operation-restricted during at least a portion of the time when the application is running; restricting the operation of the at least one operation-restricted process during at least a portion of the time when the application is running; and releasing the operation restriction on a first operation-restricted process among the at least one operation-restricted process in response to satisfying a preset condition.

[0013] According to another aspect of the present disclosure, an electronic device is provided. The electronic device includes a storage medium storing instructions, which are configured to, when executed by at least one processor, enable the at least one processor to perform at least one operation, the at least one operation including: identifying multiple processes associated with an application; identifying at least one operation-restricted process among the multiple processes, the at least one operation-restricted process being operation-restricted during at least a portion of the time when the application is running; restricting the operation of the at least one operation-restricted process during at least a portion of the time when the application is running; and releasing the operation restriction on a first operation-restricted process among the at least one operation-restricted process in response to satisfying a preset condition.

[0014] Advantageous Effects of the Invention

[0015] According to various embodiments, the operation of processes with less dependency when starting an application during the application startup period can be limited, thereby allowing the application startup operation to be completed more quickly. Therefore, the startup speed can be improved and the startup time perceived by the user can be shortened.

[0016] According to various embodiments, since the process to be operation-restricted changes based on the dependency on the application whenever the application runs, the operation restriction can be performed more flexibly than in the fixed operation restriction scheme. In addition, the application can be executed in a more stable manner.

[0017] According to various embodiments, it is possible to improve the startup speed when executing an application by increasing the priority of a process that is a startup target when running the application to allow the process to be processed earlier than other processes.

[0018] According to various embodiments, it is possible to prevent the delay of application startup caused by the increase of background processes that may be caused by long-term use of the electronic device. Therefore, the electronic device can maintain stable performance for a long period of time.

[0019] According to various embodiments, although the system is busy in certain situations such as background application update or abnormal operation, the application launch speed can be maintained as in the normal state of the system.

[0020] Other aspects, advantages and salient features of the present disclosure will become apparent to those skilled in the art from the following detailed description, which, taken in conjunction with the accompanying drawings, discloses various embodiments of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The above and other aspects, features and advantages of certain embodiments of the present disclosure will become more apparent from the following description in conjunction with the accompanying drawings, in which:

[0022] Figure 1 is a block diagram illustrating an electronic device in a network environment according to an embodiment of the present disclosure;

[0023] Figure 2A is a block diagram illustrating an electronic device according to an embodiment of the present disclosure;

[0024] Figure 2B is a diagram showing a detailed configuration of a dependency determination module and a priority determination module according to an embodiment of the present disclosure;

[0025] Figure 3 is a view showing a process of limiting operation of one or more processes when an application is running according to an embodiment of the present disclosure;

[0026] Figure 4A is a flowchart illustrating an operation of an electronic device for controlling execution of an application according to an embodiment of the present disclosure;

[0027] Figure 4B is a flowchart illustrating an operation of an electronic device based on a launch time of an application according to an embodiment of the present disclosure;

[0028] Figure 5 is a signal flow chart of operation restriction on freezing target process according to an embodiment of the present disclosure;

[0029] Figure 6 is a flowchart illustrating an operation of an electronic device when an event occurs according to an embodiment of the present disclosure;

[0030] Figure 7 is a signal flow chart showing a dependency-based process control procedure when an application is initially run according to an embodiment of the present disclosure;

[0031] Figure 8 is a signal flow chart showing a dependency-based process control procedure when re-running an application according to an embodiment of the present disclosure;

[0032] Fig. 9 is a signal flow chart illustrating a dependency-based process control procedure when updating an application according to an embodiment of the present disclosure;

[0033] Fig.10 is a flowchart illustrating an operation of an electronic device based on priority according to an embodiment of the present disclosure;

[0034] Fig.11 is a diagram showing a priority-based start target process control process according to an embodiment of the present disclosure; and

[0035] Fig.12 is a view illustrating a priority-based process control procedure according to an embodiment of the present disclosure.

[0036] Throughout the drawings, like reference numerals will be understood to refer to like parts, components and structures. DETAILED DESCRIPTION

[0037] The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of the various embodiments of the present disclosure as defined by the claims and their equivalents. It includes various specific details to assist in that understanding, but these are to be regarded as merely exemplary. Therefore, one of ordinary skill in the art will recognize that various changes and modifications can be made to the various embodiments described herein without departing from the scope and spirit of the present disclosure. In addition, descriptions of well-known functions and configurations may be omitted for clarity and brevity.

[0038] The terms and words used in the following description and claims are not limited to the bibliographic meanings, but are merely used by the inventor to enable a clear and consistent understanding of the present disclosure. Therefore, it should be apparent to those skilled in the art that the following description of various embodiments of the present disclosure is provided for illustration purposes only and not for the purpose of limiting the present disclosure as defined by the appended claims and their equivalents.

[0039] It should be understood that the singular forms "a," "an," and "the" include plural referents unless the context clearly dictates otherwise. Thus, for example, reference to "a component surface" includes reference to one or more of such surfaces.

[0040] The terms as used herein are provided only to describe some embodiments thereof, rather than to limit the scope of other embodiments of the present disclosure. It should be understood that, unless the context clearly specifies otherwise, the singular forms "one", "an" and "the" include plural indicators. All terms including technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the art to which the embodiments of the present disclosure belong. It should be further understood that terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning consistent with their meaning in the context of the relevant art, and should not be interpreted in an idealized or overly formal sense, unless explicitly defined herein. In some cases, the term individuals defined herein are interpreted as excluding embodiments of the present disclosure.

[0041] Figure 1 is a block diagram illustrating an electronic device 101 in a network environment 100 according to various embodiments.

[0042] Reference Figure 1 , the electronic device 101 in the network environment 100 may communicate with the electronic device 102 via the first network 198 (e.g., a short-range wireless communication network), or communicate with the electronic device 104 or the server 108 via the second network 199 (e.g., a long-range wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 via the server 108. According to an embodiment, the electronic device 101 may include a processor 120, a memory 130, an input device 150, a sound output device 155, a display device 160, an audio module 170, a sensor module 176, an interface 177, a haptic module 179, a camera module 180, a power management module 188, a battery 189, a communication module 190, a user identification module (SIM) 196, or an antenna module 197. In some embodiments, at least one of the components (e.g., the display device 160 or the camera module 180) may be omitted from the electronic device 101, or one or more other components may be added to the electronic device 101. In some embodiments, some of the components may be implemented as a single integrated circuit.For example, the sensor module 176 (eg, a fingerprint sensor, an iris sensor, or an illumination sensor) may be implemented to be embedded in the display device 160 (eg, a display).

[0043] The processor 120 may run, for example, software (e.g., program 140) to control at least one other component (e.g., hardware component or software component) of the electronic device 101 connected to the processor 120, and may perform various data processing or calculations. According to one embodiment, as at least part of the data processing or calculation, the processor 120 may load a command or data received from another component (e.g., sensor module 176 or communication module 190) into the volatile memory 132, process the command or data stored in the volatile memory 132, and store the resultant data in the non-volatile memory 134. According to an embodiment, the processor 120 may include a main processor 121 (e.g., a central processing unit (CPU) or an application processor (AP)) and an auxiliary processor 123 (e.g., a graphics processing unit (GPU), an image signal processor (ISP), a sensor hub processor, or a communication processor (CP)) that is independent of or combined with the main processor 121 in operation. Additionally or alternatively, the auxiliary processor 123 may be adapted to consume less power than the main processor 121, or adapted to be specifically used for a specified function. The auxiliary processor 123 may be implemented separately from the main processor 121 , or as part of the main processor 121 .

[0044] When the main processor 121 is in an inactive (e.g., sleep) state, the auxiliary processor 123 may control at least some of the functions or states related to at least one component (e.g., display device 160, sensor module 176, or communication module 190) among the components of the electronic device 101 (not the main processor 121), or when the main processor 121 is in an active state (e.g., running an application), the auxiliary processor 123 may control at least some of the functions or states related to at least one component (e.g., display device 160, sensor module 176, or communication module 190) among the components of the electronic device 101 together with the main processor 121. According to an embodiment, the auxiliary processor 123 (e.g., an image signal processor or a communication processor) may be implemented as part of another component (e.g., camera module 180 or communication module 190) that is functionally related to the auxiliary processor 123.

[0045] The memory 130 may store various data used by at least one component of the electronic device 101 (e.g., the processor 120 or the sensor module 176). The various data may include, for example, software (e.g., the program 140) and input data or output data for commands related thereto. The memory 130 may include a volatile memory 132 or a nonvolatile memory 134.

[0046] The program 140 may be stored as software in the memory 130 , and may include, for example, an operating system (OS) 142 , middleware 144 , or applications 146 .

[0047] The input device 150 may receive commands or data from outside the electronic device 101 (e.g., a user) to be used by other components of the electronic device 101 (e.g., the processor 120). The input device 150 may include, for example, a microphone, a mouse, a keyboard, or a digital pen (e.g., a stylus).

[0048] The sound output device 155 can output a sound signal to the outside of the electronic device 101. The sound output device 155 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as playing multimedia or playing records, and the receiver can be used for incoming calls. Depending on the embodiment, the receiver can be implemented as a separate part from the speaker, or as a part of the speaker.

[0049] The display device 160 may visually provide information to the outside of the electronic device 101 (e.g., a user). The display device 160 may include, for example, a display, a holographic device, or a projector, and a control circuit for controlling a corresponding one of the display, the holographic device, and the projector. According to an embodiment, the display device 160 may include a touch circuit adapted to detect a touch or a sensor circuit (e.g., a pressure sensor) adapted to measure the strength of a force caused by a touch.

[0050] The audio module 170 may convert sound into an electrical signal, or vice versa. According to an embodiment, the audio module 170 may obtain sound via the input device 150, or output sound via the sound output device 155 or an earphone of an external electronic device (e.g., electronic device 102) directly (e.g., wired) or wirelessly connected to the electronic device 101.

[0051] The sensor module 176 may detect an operating state (e.g., power or temperature) of the electronic device 101 or an environmental state (e.g., a state of a user) outside the electronic device 101, and then generate an electrical signal or data value corresponding to the detected state. According to an embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illumination sensor.

[0052] The interface 177 may support one or more specific protocols to be used to connect the electronic device 101 directly (e.g., wired) or wirelessly to an external electronic device (e.g., the electronic device 102). According to an embodiment, the interface 177 may include, for example, a high-definition multimedia interface (HDMI), a universal serial bus (USB) interface, a secure digital (SD) card interface, or an audio interface.

[0053] The connection end 178 may include a connector, wherein the electronic device 101 can be physically connected to an external electronic device (e.g., the electronic device 102) via the connector. According to an embodiment, the connection end 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).

[0054] The haptic module 179 may convert the electrical signal into mechanical stimulation (eg, vibration or motion) or electrical stimulation that can be recognized by the user via his sense of touch or kinesthetic sense. According to an embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulator.

[0055] The camera module 180 may capture still images or moving images. According to an embodiment, the camera module 180 may include one or more lenses, an image sensor, an image signal processor, or a flash.

[0056] The power management module 188 may manage power supply to the electronic device 101. According to an embodiment, the power management module 188 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).

[0057] The battery 189 may power at least one component of the electronic device 101. According to an embodiment, the battery 189 may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.

[0058] The communication module 190 may support establishing a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (e.g., electronic device 102, electronic device 104, or server 108), and perform communication via the established communication channel. The communication module 190 may include one or more communication processors capable of operating independently from the processor 120 (e.g., an application processor (AP)) and supporting direct (e.g., wired) communication or wireless communication. According to an embodiment, the communication module 190 may include a wireless communication module 192 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (e.g., a local area network (LAN) communication module or a power line communication (PLC) module). A corresponding one of these communication modules can communicate with an external electronic device via a first network 198 (e.g., a short-range communication network such as Bluetooth, Wireless Fidelity (Wi-Fi) Direct, or Infrared Data Association (IrDA)) or a second network 199 (e.g., a long-range communication network such as a cellular network, the Internet, or a computer network (e.g., a LAN or a wide area network (WAN))). These various types of communication modules can be implemented as a single component (e.g., a single chip), or these various types of communication modules can be implemented as multiple components separated from each other (e.g., multiple chips). The wireless communication module 192 can identify and authenticate the electronic device 101 in a communication network (such as the first network 198 or the second network 199) using user information (e.g., an International Mobile Subscriber Identity (IMSI)) stored in the user identification module 196.

[0059] The antenna module 197 may transmit or receive a signal or power to or from the outside of the electronic device 101 (e.g., an external electronic device). According to an embodiment, the antenna module 197 may include an antenna including a radiating element formed of a conductive material or a conductive pattern formed in or on a substrate (e.g., a PCB). According to an embodiment, the antenna module 197 may include a plurality of antennas. In this case, at least one antenna suitable for a communication scheme used in a communication network (such as the first network 198 or the second network 199) may be selected from the plurality of antennas by, for example, the communication module 190 (e.g., the wireless communication module 192). A signal or power may then be transmitted or received between the communication module 190 and the external electronic device via the selected at least one antenna. According to an embodiment, another component (e.g., a radio frequency integrated circuit (RFIC)) other than the radiating element may be additionally formed as a part of the antenna module 197.

[0060] At least some of the above components may be connected to each other via an inter-peripheral communication scheme (e.g., a bus, general purpose input output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and communicatively transmit signals (e.g., commands or data) therebetween.

[0061] According to an embodiment, a command or data may be sent or received between the electronic device 101 and the external electronic device 104 via the server 108 connected to the second network 199. Each of the electronic device 102 and the electronic device 104 may be a device of the same type as the electronic device 101, or a device of a different type from the electronic device 101. According to an embodiment, all or some operations to be executed in the electronic device 101 may be executed in one or more of the external electronic device 102, the external electronic device 104, or the server 108. For example, if the electronic device 101 should automatically execute a function or service or should execute a function or service in response to a request from a user or another device, the electronic device 101 may request the one or more external electronic devices to execute at least part of the function or service instead of executing the function or service, or the electronic device 101 may request the one or more external electronic devices to execute at least part of the function or service in addition to executing the function or service. The one or more external electronic devices that receive the request may execute the requested at least part of the function or service, or execute another function or another service related to the request, and transmit the result of the execution to the electronic device 101. The electronic device 101 may provide the result as at least a partial reply to the request with or without further processing the result. To this end, for example, cloud computing technology, distributed computing technology, or client-server computing technology may be used.

[0062] Described in detail below is a method for shortening the startup time of a running application to speed up the operation of a process required to start the application at the system level. In order to reduce the startup time of the application when running the application, two main methods can be adopted, for example, limiting other unnecessary running processes except the startup application and maximizing the system running clock.

[0063] Background processes tend to increase in proportion to the usage time of the electronic device. Complete restrictions on the operation of the increasing background processes may cause the electronic device to malfunction, so it is impractical to do so. Therefore, as the background operations increase, the background processes can occupy the CPU for a long time. If a predefined list is used to limit some background processes, the application startup time may be longer. For example, since various processes such as network operations, display operations, or kernel threads are involved as critical sections when starting an application, it may be difficult to limit all background processes.

[0064] However, according to an embodiment, the startup speed in the execution of the application and the stable execution of the application can be achieved by dynamically changing the process that is restricted whenever the application is run. To this end, according to an embodiment, restrictions can be imposed on the operation of at least one process based on the dependency among multiple processes associated with the application when the application is run. Therefore, the operation of the process with less dependency when the application is started during the application startup period can be restricted, thereby allowing the application startup operation to be completed more quickly. Therefore, the startup speed can be improved, and the startup time felt by the user can be shortened.

[0065] Meanwhile, the method of maximizing the system running clock shortens the application startup time, but may sharply increase the current consumption due to the increased processing. In addition, in the case of a sharp increase in background processes due to long-term use, even in the case of increasing the running clock, the application startup may take longer.

[0066] However, according to various embodiments, it is possible to improve the startup speed when the application is executed by increasing the priority of the process as the startup target when running the application to allow the process to be processed earlier than other processes. Fast startup can be made possible by using a high-performance CPU to schedule a higher priority process.

[0067] Refer to below Figure 2A Describe the preceding text in detail.

[0068] Figure 2A is a block diagram ( 200 ) illustrating an electronic device according to an embodiment of the present disclosure.

[0069] about Figure 2A The term "module" used here means a unit that processes at least one function or operation and is implemented by hardware, software, or a combination thereof. Figure 2A The term "module" is used, but the term can be used interchangeably with "unit" or "device".

[0070] Reference Figure 2A , the electronic device 201 may include a processor 220 and a memory 230. The electronic device 201 may correspond to, for example Figure 1 All or part of the electronic device 101. Figure 2A An example is shown in which a dependency determination module 221 and a priority determination module 222 are included in the processor 220, but the corresponding operations of the dependency determination module 221 and the priority determination module 222 may be performed under the control of the processor 220 or may be performed by the processor 220 alone, rather than by the dependency determination module 221 and the priority determination module 222.

[0071] The memory 230 may store at least one application. The memory 230 may store data for running applications, maintaining and managing applications. For example, an application may be started (or executed) as resources such as classes, layouts, images, or libraries are read by the memory 230. The started application requires a waiting time to be fully executed, and this waiting time may be referred to as an application startup time.

[0072] According to an embodiment, the memory 230 may include a dependency DB 231 and a priority DB 234. When an application is executed by the dependency determination module 221, a plurality of processes 210 associated with the application may be divided into processes corresponding to a launch target based on the dependency on the application and processes corresponding to a freeze target to be limited in operation while being launched.

[0073] The dependency DB 231 may include a thawing target group 232 classified as a thawing target process and a freezing target group 233 classified as a freezing target process. According to an embodiment, the thawing target group 232 and the freezing target group 233 may store information about processes associated with an application instead of actual processes. For example, dependency information about each process updated while an application is running may be stored in the dependency DB 231. For example, when starting an application, a process to be limited in operation and a startup target process may be determined based on the dependency information stored according to a plurality of processes associated with each application.

[0074] Meanwhile, the priority DB 234 may include a high priority group 235 and a low priority group 236. According to an embodiment, the high priority group 235 may store information about a process that has been assigned a higher priority and at least one thread in the process. The low priority group 236 may store information about other threads in the startup target process except for at least one thread that has been assigned a higher priority. The low priority group 236 may also store information about processes that have been restricted in operation during the application startup period.

[0075] Reference Figure 2A , although if application A starts running, it is necessary to execute the startup target process 214 related to application A, but processes with less dependence on application A can also run in the background. For example, the remaining background processes A, B, ..., N (215, 216, 217) can be background processes that have increased as the electronic device 201 is used for a long time, and these processes may have less dependence on the application requested to run. Although processes such as Android BG 211, DEX2OAT thread 212 and just-in-time (JIT) thread 213 can be processes that can run during the application startup period, such processes are not processes that need to be executed during the startup period and may not be very dependent on the application.

[0076] Therefore, according to an embodiment, limiting the execution of less dependent processes (including background processes) other than the startup target process 214 can shorten the startup time of application A. To this end, the dependency determination module 221 can identify the less dependent background processes among the background processes running in the background and limit their operations, and the dependency determination module 221 can manage in advance the processes that are not related to the execution of application A during the startup period as freeze targets to be frozen within the startup period.

[0077] According to various embodiments, processes such as Android BG 211, DEX2OAT thread 212, and just-in-time (JIT) thread 213 may be pre-included in the freezing target group 233. The remaining background processes A, B, ..., N (215, 216, 217) may be frozen during the startup period of the application requested to run. In other words, the remaining background processes A, B, ..., N (215, 216, 217) may be added to the freezing target group 233 that is not to be operated during the startup period.

[0078] According to an embodiment, the dependency determination module 221 can change the frozen process back to the thawed state according to the event occurring during the application startup, while maintaining the frozen state for other frozen processes until the application startup is completed. For example, for the background process A, B, ..., N (215, 216, 217) that has been added to the freezing target group 233 to which the operation restriction is applied during the startup period, the dependency determination module 221 can change the frozen state in which the operation is restricted to the thawed state in which the operation restriction is released.

[0079] Although in the above description, the process whose operation is to be restricted until the application startup is completed is kept in the frozen state, the process not corresponding to the event may be kept in the frozen state until the application ends.

[0080] Thereafter, when the application is terminated, the dependency determination module 221 may update the dependency DB including the thaw target group 232 and the freeze target group 233. For example, the dependency determination module 221 may update the dependency DB 231 by adding processes frozen before application launch completion to the freeze target group 233.

[0081] Therefore, instead of freezing all processes during application startup when running the application on the electronic device 201, at least one process is selectively changed to a frozen state, corresponding to the detection of various events such as: network events or binder calls and external events such as user input. Therefore, the startup can be accelerated and any failure in the electronic device 201 can be prevented.

[0082] The binder calls are briefly described below.

[0083] The Android operating system (OS) provides components in a process unit and can be configured by Linux-based java. Applications running on the Android OS can be run as independent processes on Linux, and applications created by Java can be run on a java virtual machine.

[0084] Since all applications are provided in the form of processes, the interaction between applications requires a request-response mechanism between processes. Such a mechanism for inter-process communication is a binder. For example, functions provided by other processes in the Android OS system can be provided via a binder.

[0085] The binder driver can be used to share the programs and data necessary to run the predetermined service when executing the application. For example, the application can call the system call provided on Linux to perform communication. Therefore, data exchange can be performed between different applications or between different services through the binder call.

[0086] According to an embodiment, the processor 220 may include a dependency determination module 221 and a priority determination module 222. The processor 220 may determine at least one process to be restricted in operation during a startup period for running an application and restrict the operation of the determined process. The processor 220 may monitor the context of the electronic device 201 during the startup period, and upon detecting an event, may determine a process to release the operation restriction and release the operation restriction.

[0087] Therefore, the operation restriction of one or more processes corresponding to the detection of the event among the processes with limited operation can be released during the startup period. However, if the startup period ends, that is, the startup is completed, all the processes with limited operation can be released from the operation restriction. For example, since the process to be limited in operation changes based on the dependence on the application whenever the application is running, the operation restriction can be performed more flexibly than in the fixed operation restriction scheme. In addition, the application can be executed in a more stable manner. Therefore, regardless of frequent application updates and a variety of applications, optimized application startup can be achieved in a smart phone environment because the process to be limited in operation can change based on the dependence on the application. In addition, since the process to be subject to operation restriction changes and is updated whenever the application is running, the startup time can be shortened by actively freezing the process that does not depend on the application.

[0088] According to an embodiment, the electronic device 201 includes at least one processor 220 and a memory 230 storing instructions that are executed to enable the at least one processor 220 to identify multiple processes associated with an application, identify at least one process among the multiple processes that is to be restricted in operation during at least a portion of the time when the application is running, restrict the operation of at least one identified process during at least a portion of the time when the application is running, and release the operation restriction on at least some of the at least one identified process in response to satisfying a preset condition.

[0089] According to an embodiment, the preset condition may include a startup time of the application, and the instruction may be configured to enable the at least one processor 220 to release the operation restriction on the at least one identified process when the application startup time has passed.

[0090] According to an embodiment, the preset condition may include detecting at least one event, and the instruction may be configured to enable the at least one processor 220 to release the operation restriction on a process corresponding to the detection of the at least one event among the at least one identified process.

[0091] According to an embodiment, the instructions may be configured to enable the at least one processor 220 to identify at least one process among a plurality of processes to be restricted in operation during at least a portion of the time when the application is executed based on dependency on the application.

[0092] According to an embodiment, the instructions may be configured to enable at least one processor 220 to add at least one identified process to an operation restriction group and, in response to the operation restriction group including a process corresponding to detection of at least one event, release from the operation restriction group.

[0093] According to an embodiment, the operation restriction group may be updated such that at least some of the processes included in the operation restriction group are changed each time an application is executed.

[0094] According to an embodiment, the instructions may be configured to enable the at least one processor 220 to determine a priority of at least one process other than the at least one identified process among the plurality of processes.

[0095] According to an embodiment, the instructions may be configured to enable at least one processor 220 to increase the priority of at least one thread in at least one process.

[0096] According to an embodiment, the instruction may be configured to enable at least one processor 220 to schedule at least one thread in at least one process with a higher priority by a central processing unit (CPU) having a first operating speed, and to schedule the remaining threads in at least one process by a CPU having a second operating speed. The first operating speed may be set to be higher than the second operating speed.

[0097] According to an embodiment, the instructions may be configured to enable the at least one processor 220 to change the priority of at least one thread in at least one process to the original priority when the application launch time has elapsed.

[0098] Refer to below Figure 2B Describe in more detail Figure 2A The operations of the dependency determination module 221 and the priority determination module 222.

[0099] Figure 2B 2 is a diagram showing a detailed configuration of the dependency determination module 221 and the priority determination module 222 according to an embodiment of the present disclosure.

[0100] Reference Figure 2B , all operations of the dependency determination module 221 and the priority determination module 222 may start corresponding to the user input. For example, the user input may be transmitted via the touch screen to start (or execute) an application (e.g., application A), and thus, the dependency determination module 221 and the priority determination module 222 may be driven.

[0101] According to an embodiment, when an application is executed in response to a user request, dependencies and priorities may be determined. In contrast, if an application unrelated to the user request is running, dependency and priority determination may not be performed. For example, if the user accidentally runs an application, such as turning off the screen, a database (DB) of only at least one of dependencies and priorities may be updated without performing operational restrictions on one or more processes at startup. Therefore, in order to execute an application that the user intends to run (i.e., the user's predetermined application), operational restrictions may be imposed only on one or more processes, so that startup can be accelerated and the startup time perceived by the user can be shortened. For the user's predetermined application, the application may occasionally run automatically even without user input. In the context of automatic application execution, dependency and priority determination may be performed, thereby imposing operational restrictions on one or more processes.

[0102] Specifically, if application A is started in response to a user request, the dependency determination module 221 may select one or more processes associated with application A and run the selected processes. The one or more processes associated with the application may be related to one or more hardware or software components of the electronic device 201, and the one or more selected processes may be executed by activating the hardware or software components associated with the one or more selected processes.

[0103] For example, when an application execution request from a user is initiated, an application including one or more processes (eg, application A) may be executed in response to the request. Here, a process associated with application A and actually executed may be referred to as an initiation target process.

[0104] According to an embodiment, one or more application-associated processes may include a startup target process that needs to be executed when the application is driven. Here, the process that must be run when the application is driven may include, for example, a system process that has no dependency among one or more application-associated processes but involves a critical system task (e.g., execution of the application), and such necessary startup target process may be set as a thawing target group.

[0105] One or more application-associated processes may include at least one of a graphics process, a network process, a media process, a log process, or a connection process. Specifically, the graphics process may be a process necessary for updating a screen of a user interface application, the network process may be a process necessary for sending / receiving data to / from a network, the media process may be a process necessary for outputting video and audio, the log process may be a process for collecting log data, and the connection process may be a process for communicating with an external device.

[0106] According to an embodiment, the dependency determination module 221 may identify at least one process to be restricted in operation during the execution of the application among one or more application-associated processes. Here, the application execution period (or time) may be at least a portion of the time (or duration) during which the application runs.

[0107] According to an embodiment, the dependency determination module 221 may identify at least one process to be restricted in operation based on the dependency on the application. Therefore, the dependency determination module 221 may freeze at least one identified process. In order to determine whether there is a dependency on the application, a dependency DB (e.g., Figure 2A Each time the application is run, at least some of the processes included in the operation restricted group may change, thereby updating the dependency database. Therefore, the dependency determination module 221 may re-determine whether there is a dependency each time the application is run by applying a process update or a dependency that changes when the application is run.

[0108] According to an embodiment, the dependency determination module 221 may manage at least one identified process corresponding to the freezing target as a freezing target group to be restricted in operation. Therefore, the dependency determination module 221 may add at least one identified process to the freezing target group. Here, the freezing target group may also be referred to as an operation restricted group or a non-dependency group including the frozen processes.

[0109] According to an embodiment, the operation of at least one identified process may be restricted from the start of the application until the start-up is completed. For example, if the application start-up is completed, the dependency determination module 221 may release the operation restriction on at least one identified process. The dependency determination module 221 may update the database while releasing the operation restriction on at least one identified process that has been managed as a freezing target group. Therefore, the operation restriction on all processes that have been operation-restricted simultaneously with the start of the application start-up may be released when the application start-up is completed.

[0110] According to an embodiment, the dependency determination module 221 may determine whether to release the operation restriction on at least one process depending on whether an event occurs. The dependency determination module 221 may detect whether at least one event occurs during a startup period. For example, if a specific process associated with application A is started, the dependency determination module 221 may monitor whether an event such as a binder call used by the specific process to request another process occurs. Based on the monitoring, the dependency determination module 221 may identify dependencies between processes.

[0111] Upon receiving at least one event during the startup period, the dependency determination module 221 may set the process 260 receiving the event among the one or more application-associated processes as a thaw target and designate it as a thaw target group ( 262 ).

[0112] In contrast, the dependency determination module 221 can set the processes 261 that fail to receive events such as binder calls among one or more application-associated processes as frozen targets 263 and add them to the frozen target group 233. Corresponding to being set as unfreeze targets and frozen targets, the dependency DB (264) can be updated. In other words, whenever at least one process is specified for unfreeze targets and frozen targets, the dependency DB can be updated.

[0113] At the same time, the dependency determination module 221 can release the operation restriction on the process corresponding to the detected event among the operation restricted processes in the freezing target group 233 based on at least a part of the detected event. Therefore, the dependency determination module 221 can delete the process whose operation restriction is released from the freezing target group 233 and designate it as the thawing target group.

[0114] According to an embodiment, the at least one event may be an event occurring inside the electronic device 201 or triggered by an external device or a user and may include, for example, an external event such as user input, and at least one of a network event or a binder call.

[0115] The dependency determination module 221 operating as described above can manage multiple application-associated processes respectively using the thawing target group 232 and the freezing target group 233 in the memory 230. According to an embodiment, the dependency determination module 221 can divide multiple application-associated processes into the thawing target group 232 and the freezing target group 233 based on the dependency on the application.

[0116] According to an embodiment, two main methods may be considered to shorten the startup time of an application when running the application: a dependency-based scheme that limits other processes that are unnecessarily run except for the startup application and a priority-based scheme that maximizes the system execution clock for the startup target process.

[0117] According to an embodiment, a dependency-based scheme as one of the schemes for improving the application startup speed may be a scheme that, when the application is running, at least one process that is less dependent on the application is frozen while the application is started to stop unnecessary scheduling, and when the startup is completed, at least one frozen process is changed back to a thawed state. Here, the database (DB) of the freezing target group (or operation restricted group) in the memory 230 (for example, Figure 2A The dependency determination module 221 may identify at least one less dependent process by referring to the predetermined freezing target process among the processes associated with the downloaded application. According to an embodiment, examples of the predetermined freezing target processes in the freezing target group 233 may include, for example, DEX2OAT 265, Just-in-Time (JIT) 266, and Android BG 267.

[0118] DEX2OAT 265 is a process that runs when an execution file (e.g., APK) is installed, and as the APK is compiled, a huge load can be generated in a short time. There are two main types of DEX2OAT: internal DEX2OAT and normal DEX2OAT. Since internal DEX2OAT has a dependency on the application of the startup target, it can be excluded from the frozen target. In contrast, for normal DEX2OAT, that is, a process that is executed while the application is updated or installed does not depend on the application startup process, it can be designated as a frozen target and then frozen during the startup period.

[0119] JIT266 is a process that precompiles hot code that is often used as a compiler to improve the performance of the application. The JIT (266) compiler is used to precompile hot code detected during application startup in the form of source code in the form of JAVA bytecode. However, since this compilation is performed after the application has been started rather than compiling hot code detected during operation while the application is being started, it is not dependent on startup. In addition, since JIT 266 has a large compilation load and memory usage, the dependency determination module 221 can pre-specify JIT 266 as a frozen target group 233 before running the application and freeze it during the startup period.

[0120] Android background (BG) 267 is collecting and processing jobs that do not need to be processed immediately by each Android system server and do not depend on application startup. Therefore, the dependency determination module 221 places the Android BG 267 in the freezing target group 233 and freezes it during the startup period.

[0121] According to an embodiment, as another scheme for improving the application startup speed, a priority-based scheme can increase the priority of a process that serves as a startup target among multiple processes associated with an application when the application is starting and at least one thread in the startup target process, and when the application startup is completed, change the increased priority of the process and the threads in the process back to the original priority.

[0122] According to an embodiment, the processor 220 may use threads to process tasks. For example, when each process occupies memory separately, multiple threads may share memory in a process. Multiple threads may include a main thread, a worker thread, and a user interface (UI) thread.

[0123] The main thread may be allocated or generated per application and may be responsible for tasks recognizable to the user, such as input processing and UI updating. Therefore, the startup time perceived by the user may be shortened by setting a high priority for the main thread.

[0124] The UI thread may be responsible for tasks requesting UI components. For example, the UI thread may process UI update requests. Therefore, if a high priority is set for the UI thread, the user may see the application screen launched quickly. Therefore, the startup time perceived by the user may be reduced.

[0125] Worker threads can process huge data and complex calculations. Worker threads can be generated when performing tasks that require relatively long processing compared to tasks processed by the main thread (for example, storage I / O or network I / O). Multiple worker threads can be provided.

[0126] According to an embodiment, when application A starts running, the priority determination module 222 can reduce the priority of processes that are not related to the startup among the processes associated with application A, and assign a high priority to the processes that are directly related to the startup. For example, if application A starts running, the priority determination module 222 can determine the priority of the startup target process associated with application A. The startup target process may include at least one thread. By allowing the startup target process and the main thread and UI thread in the startup target process to run quickly, the application startup time perceived by the user can be shortened.

[0127] To this end, according to an embodiment, in response to a user input for executing an application, the priority determination module 222 may assign a higher priority to the main thread and the UI thread 250 in the startup target process associated with the application, so that they can be executed faster than the running of other processes. For example, by setting a higher priority for the main thread and the UI thread at the initial execution of the application, the UI can be quickly displayed on the screen immediately after the application is executed, so that the startup time felt by the user can be shortened. Therefore, the priority determination module 222 may assign a higher priority to the main thread and the UI thread 250 in the startup target process and update the priority DB (252) of application A.

[0128] Therefore, the highest priority, such as real-time (RT) priority, can be assigned to increase the priority of the main thread and UI thread in the startup target process. In order to prevent priority inversion that may occur when the priority of the main thread and UI thread in the startup target process rises, the RT priority can be assigned to the process that communicates with other processes to be processed first. The assignment of RT priority can reduce the preemption of CPU scheduling by other tasks and thus increase CPU utilization. Threads assigned high priority can be scheduled to run on high-performance CPUs.

[0129] Since the process corresponding to the high priority group and at least one thread in the process need to respond quickly, a CPU with a first operating speed (e.g., a high-performance CPU) can be used to speed up processing and thus speed up application startup. In contrast, a process corresponding to the low priority group and at least one thread in the process can be processed by a CPU with a second operating speed (e.g., a low-performance CPU). Here, the first operating speed can be higher than the second operating speed. Thereafter, when the application startup is completed or the application is terminated, the main thread and the UI thread in the target process assigned with a high priority can return to their original priorities.

[0130] As described above, a higher priority can be set for a startup target process and at least one thread in the startup target process among multiple processes associated with the application during application startup, while a lower priority can be assigned to other processes and at least one thread therein. For example, a frozen target process and at least one thread in the frozen target process can be assigned a priority lower than the priority set for the startup target process.

[0131] In addition, the priority determination module 222 can monitor the binder communication from the start target process to the outside and can also increase the priority of the process 251 that receives events such as binder calls, thereby updating the priority DB (252) of application A. For example, the process corresponding to the reception of the event can be assigned an RT priority to be scheduled earlier than other processes, and as the occupancy rate of the high-performance CPU increases, fast processing may be possible. In contrast, for processes that lack a binder call to the start target process, that is, processes that fail to receive events or other processes other than the process that receives events, the priority can be lowered or they can be scheduled at their original priority. Such low-priority processes and at least one thread therein can be run by a low-performance CPU.

[0132] The priority determination module 222 may divide at least one launch target process and at least one thread in the launch target process into a low priority group 253 , a unchanged priority group 254 , and a high priority group 255 .

[0133] For example, the low priority group 236 may include garbage collection (GC) 256, log daemon 257, and Android BG 258. Here, GC 256 may refer to a program that releases memory for other purposes when memory is insufficient. Log daemon 257 may refer to a program that moves system-related tasks to the background.

[0134] Thereafter, when the application launch is completed or the application is terminated, the priority determination module 222 may update the priority DB including the high priority group 235 and the low priority group 236 (eg, Figure 2A For example, a process that has been in a frozen state before the application startup is completed and at least one thread in the frozen target process may be added to the low priority group 236 so that the priority DB may be updated.

[0135] According to an embodiment, when the application is terminated, the priority determination module 222 may change the priority of at least one process and at least one thread in the process that has been increased back to the original priority. In addition, the priority determination module 222 may temporarily increase the priority of a process corresponding to an event that occurs during the application startup among multiple processes associated with the application and at least one thread in the process during the application startup, and change it back to the original priority when the application startup is completed or the application is terminated.

[0136] Figure 3 300 is a view showing a process of limiting operation of one or more processes when an application is running according to an embodiment of the present disclosure.

[0137] Reference Figure 3 , reference numeral 310 denotes a time axis, which may be mainly divided into a start time 320 of execution of an application, an application launch period 330, and a release period 340 after the launch is completed.

[0138] First, if the application is executed (320) in response to a user request, in the case of a full launch (325) without imposing restrictions on one or more processes based on dependencies and priorities, background processes and processes unrelated to the application launch as well as application-related launch target processes can be executed during the launch period.

[0139] In contrast, at least one process to be limited in operation among one or more application-associated processes can be determined through dependency and priority determination operations among the fully started process (process 325). Figure 3 As shown, the processor 220 can identify a process 336 that is predetermined as a freezing target among the plurality of processes 325 and background processes A and B 338 that are not related to the application among the background processes based on the dependency on the application. Therefore, in the startup period 330, other processes 336 and 338 except the background process N 339 related to the application and the startup target process 337 can be frozen. In other words, the other processes 336 and 338 can be operated and restricted in the startup period 330.

[0140] Thereafter, if the startup period 330 ends, that is, if the startup time has passed, the operation-restricted processes 336 and 338 may be released from the operation restriction. As explained above, the partially restricted startup 335 may be performed within the startup period 330, and when released (release period 340) after the startup period 330, the operation-restricted processes 345 may be fully unfrozen. After the startup period 330, the application may be in a running state.

[0141] Figure 4Ais a flowchart ( 400 ) illustrating an operation of an electronic device for controlling execution of an application according to an embodiment of the present disclosure.

[0142] Reference Figure 4A The operation method may include operations 405 to 430. Each operation of the operation method may be performed by an electronic device (eg, Figure 1 or Figure 2A at least one of the electronic devices 101 or 201) or at least one processor of the electronic device (e.g., Figure 1 or Figure 2A According to an embodiment, at least one of operations 405 to 430 may be omitted or changed in order or other operations may be added.

[0143] Reference Figure 4A , the application may start running in response to a user request, such as a user's touch input. Therefore, the electronic device 201 may determine whether there is an application running request from the user in operation 405.

[0144] If there is an application execution request, the electronic device 201 may identify a plurality of processes associated with the application in operation 410. Then, the electronic device 201 may identify at least one process to be restricted in operation during at least a portion of the time when the application is executed, among the plurality of processes, in operation 415. According to an embodiment, at least a portion of the time when the application is executed may include an application startup time.

[0145] In operation 420, the electronic device 201 may limit the operation of at least one process identified during at least a portion of the time when the application is running. According to an embodiment, at least one process to be restricted in operation during the application startup time may be identified based on the dependency on the application. For example, a process that has not received an event (e.g., a binder call) among multiple processes may be determined as not dependent on the application. Therefore, a process that lacks binder communication for exchanging data between processes may be restricted in operation during the startup period.

[0146] According to an embodiment, at least one identified process may be added to an operation restriction group and may be operation restricted.

[0147] Thereafter, the electronic device 201 may identify whether a preset condition is satisfied in operation 425. If the preset condition is satisfied, the electronic device 201 may release the operation restriction on at least some of the at least one identified process in response to satisfying the preset condition in operation 430. According to an embodiment, if the operation restriction group includes a process that satisfies the preset condition, the electronic device 201 may release the process from the operation restriction group. According to an embodiment, the operation restriction group may be updated so that at least some of the processes included in the operation restriction group change each time an application is executed.

[0148] According to an embodiment, the preset condition may include a launch time of the application, and releasing the operation restriction on at least some of the at least one identified process may include releasing the operation restriction on the at least one identified process if the application launch time has passed.

[0149] According to an embodiment, the preset condition may include detecting at least one event, and releasing the operational restrictions on at least some of the at least one identified process may include releasing the operational restrictions on the process corresponding to the detection of the at least one event among the at least one identified process.

[0150] For example, in the case where the contacts application is provided by the user, when the contacts application is started, the contacts DB can be retrieved from the contacts provider process via a binder call, in which case the contacts provider process can be determined to be dependent on the contacts application and can be managed as an uplink transmission power so that it is not frozen when the contacts application is started.

[0151] As explained above, with the operation of one or more processes whose operation is limited within the application launch time, the electronic device may continuously monitor whether the preset condition is satisfied until the application launch is terminated.

[0152] Reference Figure 4B Describes an example of monitoring whether a preset condition is met.

[0153] Figure 4B is a flowchart ( 441 ) illustrating an operation of an electronic device based on a launch time of an application according to an embodiment of the present disclosure.

[0154] Figure 4B Operation 441, including Figure 4B Operations 445 and 447 may correspond to Figure 4A Operations 425 and 430.

[0155] Reference Figure 4B If the preset condition indicates the application startup time, the electronic device 201 may determine whether the application startup time has passed in operation 445. Until the application startup time has passed, the electronic device 201 may determine whether the application startup time has passed in operation 445. Figure 4A The operation restrictions on the at least one identified process are maintained as in operation 420 of the embodiment.

[0156] In contrast, if the application launch time elapses in operation 445 , the electronic device 201 may release the operation restriction on the at least one identified process in response to the elapse of the application launch time in operation 447 .

[0157] Figure 55 is a signal flow chart (500) of operation restriction on freezing a target process according to an embodiment of the present disclosure. Figure 5 DEX2OAT is shown as an example freeze target process.

[0158] Reference Figure 5 , if a thread is generated (515) from DEX2OAT 505, the dependency determination module 221 may determine whether DEX2OAT 505 is an internal DEX2OAT in operation 520. If DEX2OAT 505 is an internal DEX2OAT in operation 520, the dependency determination module 221 may exclude it from the frozen target in operation 525. Since the internal DEX2OAT may be compiled in real time, it depends on launching the target application and may be excluded from the frozen target. In contrast, since the normal DEX2OAT is executed when it is compiled once when the application is installed or updated, it does not depend on application launch and may be added to the frozen target as in operation 530.

[0159] However, the determination as to whether it is a freezing target may be performed after the application 510 is executed or it may be pre-stored in the freezing target group regardless of whether the application 510 is running. Therefore, if the application 510 is running and starts to start in operation 535, the pre-stored freezing target group may be referred to or executed, and then it may be determined whether it is a freezing target, and if so, the DEX2OAT 505 may be controlled to be frozen in operation 540. Therefore, the DEX2OAT 505 may be maintained in the frozen state 550 during the startup period 545.

[0160] Thereafter, if the launch of the application 510 is completed in operation 555, the dependency determination module 221 may release the operation restriction on the DEX2OAT 505 in operation 560. Then, as the thread in the DEX2OAT 505 is terminated in operation 565, that is, as the operation of the DEX2OAT 505 is ended, the DB may be updated after the DEX2OAT 505 is released from the freezing target in operation 570. Therefore, only the processes unrelated to the application 510 may be kept frozen within the launch period 545 from the start of the launch in operation 535 to the termination of the launch in operation 555.

[0161] Figure 6 is a flowchart ( 600 ) illustrating an operation of an electronic device when an event occurs according to an embodiment of the present disclosure.

[0162] Reference Figure 6 The operation method may include operations 605 to 640. Each operation of the operation method may be performed by an electronic device (eg, Figure 1 or Figure 2Aat least one of the electronic devices 101 or 201) or at least one processor of the electronic device (e.g., Figure 1 or Figure 2A According to an embodiment, at least one of operations 605 to 640 may be omitted or changed in order or other operations may be added.

[0163] Figure 6 Operations 605 to 620 and Figure 4A Operations 405 to 420 are the same, and a detailed description thereof will not be repeated.

[0164] Figure 6 Operations 625 and 630 may correspond to including Figure 4A Operation 425 and operation 430 of operation 440. Figure 6 Described in Figure 4A An example of monitoring whether a preset condition is met.

[0165] Reference Figure 6 , the electronic device 201 may determine in operation 625 whether at least one event is detected, wherein at least one process identified during the startup period is operation-restricted. If at least one event is detected, the electronic device 201 may release the operation restriction on the process corresponding to the detection of at least one event among the at least one identified process in operation 630. Then, the electronic device 201 may determine in operation 635 whether to terminate the application startup. If the application startup has not been terminated, for example, until before the startup time has passed, the electronic device may monitor whether the startup time has passed. In contrast, if the application startup is terminated, the electronic device 201 may release the operation restriction on other operation-restricted processes in operation 640 and update the DB.

[0166] Figure 7 700 is a signal flow diagram illustrating a dependency-based process control procedure when an application is initially run according to an embodiment of the present disclosure.

[0167] Reference Figure 7, if a user touch is input (702) in order to run the application on the electronic device 201, the application launch (710) may start. For example, if the plurality of processes associated with the application are processes A, B, C, and D, the application launch 710 may be started by the user touch, and the dependency determination 711 may be performed. If the launch target process is process A 704, and this process is launched for the first time since the application has been installed, then since it is before the DB is established, the dependency determination module 221 may add processes B 706, C 708, and D 709 other than process A 704 to the freezing target group 233 and update the dependency DB 231 at the time of initial execution. Therefore, the dependency determination module 221 may freeze processes B 706, C 708, and D 709 in operation 712 to limit the operations of processes B 706, C 708, and D 709 during the launch period. Processes B 706, C 708, and D 709 may remain in frozen states 714, 716, and 718 until a thaw instruction occurs.

[0168] Thereafter, the dependency determination module 221 may perform monitoring to detect events during the startup period. If a binder call from process A 704 to process B 706 occurs while monitoring, the dependency determination module 221 may determine (720) that process B 706 depends on process A 704. Therefore, after deleting process B 706 from the freeze target group 233, the dependency determination module 221 may add process B 706 to the unfreeze target group 232 and update (231) the DB. Subsequently, the dependency determination module 221 may unfreeze process B 706 to release the operation restrictions on process B 706, and process B 706 may maintain (722) the unfreeze state corresponding to the unfreeze instruction in operation 721.

[0169] Thereafter, if a binder call from process A 704 to process C 708 occurs while monitoring, the dependency determination module 221 may determine (723) that process C 708 depends on process A 704. Therefore, after deleting process C 708 from the freeze target group 233, the dependency determination module 221 may add process C 708 to the unfreeze target group 232 and update (231) the DB. In addition, the dependency determination module 221 may unfreeze process C 708 in operation 724. Correspondingly, process C 708 may maintain (726) the unfreeze state corresponding to the unfreeze instruction.

[0170] In contrast, if process D 709 does not exchange data with process A 704 during the startup period, the frozen state 718 may be maintained until before the startup ends. Thereafter, if the startup ends (728), the frozen state of process D 709 that once belonged to the freezing target group 233 may be released and unfrozen (730) via dependency determination 729.

[0171] Corresponding to the initial execution of the application as described above, the processes B 706 and C 708 may be managed to be included in the thaw target group 232 , and the process D 709 may be managed to be included in the freeze target group 233 .

[0172] Figure 8 8 is a signal flow diagram ( 800 ) illustrating a dependency-based process control procedure when re-running an application according to an embodiment of the present disclosure.

[0173] Reference Figure 8 , it shows that when Figure 7 The signal flow when the same application is run again. Figure 8 If the previously executed application is re-executed, the dependency determination module 221 may be executed based on the dependency DB configured at the initial execution. For example, the dependency DB configured at the initial execution may include processes B 706 and C 708 in the unfreeze target group 232 and process D 709 in the freeze target group 233.

[0174] Therefore, if the application starts to start (810), the dependency determination 811 may be performed by referring to the dependency DB. Therefore, the dependency determination module 221 may freeze the process D 709 in operation 812 and maintain (818) the frozen state while maintaining the unfrozen state for the processes B 706 and C 708.

[0175] Thereafter, the unfrozen state may be maintained for processes B 706 and C 708 corresponding to the detection of events (e.g., binder calls) via dependency determinations 821 and 823. If there is no binder call to process D 709 via dependency determination 829 before the termination time 828 of the launch period, the frozen state 818 of process D 709 may be maintained and unfrozen (830) at the termination time 828 of the launch.

[0176] Fig. 9 is a signal flow diagram (900) illustrating a dependency-based process control procedure when updating an application according to an embodiment of the present disclosure.

[0177] Fig. 9 Operation and Figure 8 The operation is similar to that of , so it will not be described in detail below. Fig. 9, which shows an example where when the operation of process A changes due to an application update, the dependency DB is also updated. For example, process A 704 may occasionally need to exchange data with process D 709. In this case, Fig. 9 The dependency DB can be used with Figure 8 For example, the dependency DB may include processes B 706 and C 708 in the unfreeze target group 232 and process D 709 in the freeze target group 233.

[0178] After the start (910) of the boot, the dependency determination module 221 may perform dependency determinations 921 and 934 that continuously monitor whether data is exchanged between the process A 704 and the process B 706 and the process C 708. If such a situation occurs in the case where the process A 704 needs to exchange data with the process D 709 within the boot period, for example, when a binder call occurs from the process A 704 to the process D 709 via the dependency determination 929, the dependency determination module 221 may unfreeze (930) the process D 709, and thus may release the frozen state 918 of the process D 709. Subsequently, the dependency determination module 221 may control to move the process D 709 from the frozen target group 233 to the unfrozen target group 232 via the dependency DB 231. Therefore, until the end of the boot, the process D 709 may remain in the unfrozen state 932.

[0179] Thereafter, when the startup is finished (936), the DB may be updated to allow the unfreeze target group 232 to include processes B 706, C 708, and D 709.

[0180] Therefore, if the application is re-run later, the dependency determination module 221 can freeze the processes B 706, C 708, and D 709 based on the updated DB so as not to be operation-restricted during the startup period. In contrast, if the binder call with the process B 706 does not occur, the dependency determination module 221 can designate the process B 706 as being in the freeze target group 233 and update the DB during the startup period until the startup is terminated. Therefore, if the application is run again, the dependency determination module 221 can freeze the process B 706 during the startup period based on the updated DB. Therefore, since the freeze target group in the dependency DB is updated so that at least some changes in the processes included in the freeze target group are made whenever the application is run, even when the application is frequently updated, the processes to be adaptively operation-restricted during the startup period can be identified, and therefore, the application startup speed can be ensured.

[0181] Fig.10 is a flowchart ( 1000 ) illustrating an operation of an electronic device based on priority according to an embodiment of the present disclosure.

[0182] Reference Fig.10 The operation method may include operations 1005 to 1045. Each operation of the operation method may be performed by an electronic device (eg, Figure 1 or Figure 2A at least one of the electronic devices 101 or 201) or at least one processor of the electronic device (e.g., Figure 1 or Figure 2A According to an embodiment, at least one of operations 1005 to 1045 may be omitted or changed in order or other operations may be added.

[0183] Fig.10 Operations 1005 to 1015 and Figure 4A Operations 405 to 415 are the same, and a detailed description thereof will not be repeated.

[0184] Reference Fig.10 , the electronic device 201 may assign a higher priority to other processes except for the at least one identified process and at least one thread in the process in operation 1020. For example, if a higher priority is assigned to all remaining processes, priority inversion or priority conflict may occur with other processes. Therefore, a higher priority may be assigned to at least one process. Since at least one process includes at least one thread, such as a main thread, a UI thread, or a worker thread, a priority may also be determined for at least one thread in the at least one process.

[0185] For example, the electronic device 201 may assign the highest priority, such as the RT priority, to the main thread and the UI thread that need to be processed first.

[0186] Then, in operation 1025, the electronic device 201 can limit the operation of at least one identified process while running the application and assign a lower priority. For example, a lower priority can be assigned to at least one identified process so that it is not run during the startup period. Alternatively, the electronic device 201 can control the low-performance CPU to schedule it so that although it is assigned a lower priority, a specific operation in the process can be performed during the startup period. Therefore, the electronic device 201 can control the process assigned a lower priority and at least one thread in the process to be scheduled with a low-performance CPU.

[0187] Therefore, according to an embodiment, the electronic device 201 may assign a higher priority to at least one process other than the at least one identified process among a plurality of processes associated with an application and at least one thread in the at least one process.

[0188] According to an embodiment, the electronic device 201 may schedule at least one thread in at least one process assigned with a higher priority by a CPU having a first operating speed and schedule the remaining threads in at least one process by a CPU having a second operating speed. According to an embodiment, the first operating speed may be set higher than the second operating speed.

[0189] In operation 1030, the electronic device 201 may determine whether at least one event is detected. If at least one event is detected, the electronic device 201 may release the operation restriction on the process corresponding to at least a part of the detected event among the at least one identified process and assign a higher priority thereto in operation 1035. In contrast, if at least one event is not detected, the electronic device 201 may return to operation 1020.

[0190] Then, the electronic device 201 may determine whether the application launch is terminated in operation 1040. The above operation may be maintained until the application launch is terminated. In contrast, if the application launch is terminated as a result of the determination in operation 1040, the electronic device 201 may release the operation restriction on the operation-restricted process in operation 1045 and return to the original priority, and then update the DB.

[0191] As explained above, according to an embodiment, if the application launch time elapses, the electronic device 201 may change the increased priority of at least one process and at least one thread in the at least one process back to the original priority.

[0192] Fig.11 1100 is a diagram showing a priority-based start target process control process according to an embodiment of the present disclosure.

[0193] Reference Fig.11 , it shows an example in which the application-associated startup target process (e.g., process A) 1110 includes a main thread 1111, a UI thread 1112, and a plurality of worker threads #1, #2, ..., #N (1113, 1114, 1115). The main thread 1111 and the UI thread 1112 of the startup target process (e.g., process A) 1110 need to be executed first without falling behind other process operations.

[0194] Therefore, the priority determination module 222 can change (1120) the priority of the main thread 1111 and the UI thread 1112 to the RT priority so as to assign a higher priority to the main thread 1111 and the UI thread 1112 when the application is started along the timeline 1105. Therefore, by assigning the RT priority, a longer CPU occupancy rate is possible, resulting in fast processing. In addition, the thread assigned with the RT priority can be scheduled (1130) with a high-performance CPU for fast processing.

[0195] Thereafter, when the application is terminated, the priority determination module 222 may restore (1140) the changed priority. Here, the termination time of the application may represent the completion time of the application launch.

[0196] Although Fig.11 An example of increasing the priority of at least one thread in the startup target process is shown, but the priority of the process corresponding to the detection of an event (e.g., a binder call) may also be increased. For example, the priority determination module 222 may designate the process that receives the binder call from the startup target process as a high priority group, while designating the process that fails to receive the binder call as a low priority group. Normal priority may be assigned to newly generated processes and processes that do not belong to the priority DB.

[0197] Fig.12 12 is a diagram illustrating a priority-based process control procedure according to an embodiment of the present disclosure.

[0198] Reference Fig.12 , if a user touch is input (1202) in order to run an application on the electronic device 201, application launch (1210) may start. For example, if a plurality of processes associated with the application are processes A, B, C, and D, application launch 1210 may be started by a user touch, and priority determination 1211 may be performed. If the launch target process is process A 1204, and process A 1204 is related to processes B 1206 and C 1208, when application launch 1210 starts, the priority determination module 222 may add processes B 1206 and C 1208 to the high priority group 235 and add process D 1209 to the low priority group 236, thereby updating (231) the DB. If a database including the high priority group 235 including processes B 1206 and C 1208 has been established, and the low priority group 236 includes process D 1209 , the priority determination module 222 may assign a lower priority to process D 1209 in operation 1212 .

[0199] Therefore, process D 1209 may be partially operation-restricted during the startup period due to its low priority, and even within the startup period, if a certain operation needs to be performed for binder communication with process A, it may be scheduled with a low-performance CPU (1218). Therefore, since process D 1209 is not related to process A 1204, the priority of process D 1209 may be changed to a lower priority at startup.

[0200] Thereafter, although it is necessary to run process D 1209 during the startup period, it can be assigned a low-performance CPU and scheduled according to a lower priority (1218). For example, examples of process D 1209 assigned a lower priority may include a log daemon, garbage collection (GC), and Android BG and are restricted to run on a low-performance CPU.

[0201] In contrast, during a period of performing priority determination, such as a period of monitoring events such as a binder call from process A 1204 to process B 1206 or from process A 1204 to process C 1208 as in operations 1220 and 1224, the priorities of process B 1206 and process C 1208 may be changed to a higher priority, such as an RT priority as in operations 1222 and 1226. Therefore, processes B 1206 and C 1208 may be assigned a high-performance CPU and thus run quickly.

[0202] Thereafter, if the startup is terminated in operation 1228, the priorities of processes B 1206 and C 1208 and the priority of process D 1209 may be changed back to the original priorities in operation 1230. In this case, since the DB is updated whenever the priority is changed, although the priority is changed back to the original priority, information on the priority change of the process associated with the application and at least one thread in the process may be cumulatively managed. Therefore, whenever the application is running, at least one process and at least one thread in the process may be classified into a high priority group and a low priority group, and the priority DB may be managed. Therefore, not only for applications that are frequently updated but also for other various applications, it is possible to ensure that the application is quickly started based on adaptively changing priorities.

[0203] For example, since binder communication from the main thread of process A 1204 of the application to the Android system and another process is directly associated with the startup time, it may be assigned RT priority to be processed first, thereby shortening the startup time.

[0204] The electronic device according to various embodiments may be one of various types of electronic devices. The electronic device may include, for example, a portable communication device (e.g., a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a household appliance. According to an embodiment of the present disclosure, the electronic device is not limited to those described above.

[0205] It should be appreciated that the various embodiments of the present disclosure and the terms used therein are not intended to limit the technical features set forth herein to specific embodiments and include various variations, equivalents or replacements of the corresponding embodiments. With regard to the description of the accompanying drawings, similar reference numerals may be used to refer to similar or related elements. It should be understood that the singular form of the noun corresponding to the project may include one or more things, unless the relevant context clearly indicates otherwise. As used herein, each of the phrases such as "A or B", "at least one of A and B", "at least one of A or B", "A, B or C", "at least one of A, B and C" and "at least one of A, B or C" may include all possible combinations of the items enumerated together in the corresponding one of these phrases. As used herein, terms such as "1st" and "2nd" or "first" and "second" may be used to simply distinguish between a corresponding component and another component, without limiting the component in other aspects (e.g., importance or order). It should be understood that if an element (e.g., a first element) is referred to as being “coupled with”, “coupled to”, “connected to”, or “connected to” another element (e.g., the second element), with or without the term “operationally” or “communicatively”, it means that the element can be coupled to the other element directly (e.g., wired), wirelessly, or via a third element.

[0206] As used herein, the term "module" may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with other terms such as "logic," "logic block," "part," or "circuit." A module may be a single integrated component adapted to perform one or more functions, or its smallest unit or portion. For example, according to an embodiment, a module may be implemented in the form of an application specific integrated circuit (ASIC).

[0207] The various embodiments as described herein may be implemented as software (e.g., program 140) including one or more instructions stored in a storage medium (e.g., internal memory 136 or external memory 138) that can be read by a machine (e.g., electronic device 101). For example, a processor (e.g., processor 120) of a machine (e.g., electronic device 101) may call at least one of the one or more instructions stored in the storage medium and execute it with or without one or more other component instructions under the control of the processor. This allows the machine to be operated to perform at least one function according to at least one of the called instructions. The one or more instructions may include code generated by a compiler or code executed by an interpreter. A machine-readable storage medium may be provided in the form of a non-transitory storage medium. The term "non-transitory" simply means that the storage medium is a tangible device and does not include signals (e.g., electromagnetic waves), but this term does not distinguish between where data is semi-permanently stored in the storage medium and where data is temporarily stored in the storage medium.

[0208] According to an embodiment, the method according to various embodiments of the present disclosure may be included and provided in a computer program product. The computer program product may be traded between a seller and a buyer as a commodity. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., a compact disk read-only memory (CD-ROM)), or via an application store (e.g., PlayStore). TM ) online distribution, or directly between two user devices (e.g., smart phones). If distributed online, at least a portion of the computer program product may be temporarily generated or at least temporarily stored in a machine-readable storage medium such as a memory of a manufacturer's server, an application store's server, or a relay server.

[0209] According to various embodiments, each component (e.g., module or program) in the above-mentioned components may include a single entity or multiple entities. According to various embodiments, one or more of the above-mentioned components may be omitted, or one or more other components may be added. Alternatively or additionally, multiple components (e.g., module or program) may be integrated into a single component. In such a case, according to various embodiments, the integrated component may perform one or more functions of each of the multiple components in the same or similar manner as they are performed by a corresponding one of the multiple components before integration. According to various embodiments, the operations performed by a module, program or another component may be performed sequentially, in parallel, repeatedly or heuristically, or one or more of these operations may be performed or omitted in different orders, or one or more other operations may be added.

[0210] According to an embodiment, a storage medium storing instructions is provided, which are configured to, when executed by at least one process, enable at least one processor to perform at least one operation, the at least one operation including: identifying multiple processes associated with an application; identifying at least one process among the multiple processes whose operation is to be restricted during at least a portion of the time when the application is running; restricting the operation of at least one identified process during at least a portion of the time when the application is running; and releasing the operation restrictions on at least some of the at least one identified process in response to satisfying a preset condition.

[0211] The embodiments herein are provided only for a better understanding of the present disclosure, and the present disclosure should not be limited thereto or thereby. It should be appreciated by those skilled in the art that various changes in form or detail may be made to the embodiments without departing from the scope of the present disclosure as defined by the following claims.

Claims

1. An electronic device, the electronic device include: at least one processor; as well as a memory storing instructions, which, when executed by the at least one processor, cause the electronic device to: In response to receiving input for running an application, identifying a plurality of processes based on dependencies on the application, Based on the identified plurality of processes, identifying at least one process among the identified plurality of processes, the identified at least one process being operationally restricted during at least a portion of the time the application is executed, limiting operation of the identified at least one process during the at least a portion of the time the application is running, and Operational restrictions on at least some of the identified at least one process are released in response to a preset condition being satisfied.

2. The electronic device according to claim 1, in, The identified at least one process has a lower dependency on the application than other processes in the plurality of processes.

3. The electronic device according to claim 1, in, The preset condition includes the startup time of the application, and The instructions further cause the electronic device to: When the launch time of the application has elapsed, operational restrictions on at least some of the identified at least one process are released.

4. The electronic device according to claim 1, in, The pre-set condition includes detecting at least one event, and The instructions further cause the electronic device to: Operational restrictions on at least some of the identified at least one process corresponding to the detection of the at least one event are released.

5. The electronic device according to claim 1, in, The instructions also cause the electronic device to: adding the identified at least one process to an operational restriction group, and, In response to the detection of at least one event, the identified at least one process is removed from the set of operating restrictions.

6. The electronic device according to claim 5, in, The operation restriction group is updated such that at least some of the processes included in the operation restriction group are changed each time the application is executed.

7. The electronic device according to claim 1, in, The instructions also cause the electronic device to: determining a priority of at least one priority process among the plurality of processes other than the identified at least one process; increasing the priority of at least one thread in the at least one priority process; as well as When the activation time of the application has elapsed, the priority of the at least one thread is changed to the original priority.

8. The electronic device according to claim 7, in, The instructions also cause the electronic device to: The at least one thread is scheduled to run in a first central processing unit (CPU) having a first running speed, and scheduling another thread in the at least one priority process to run in a second CPU having a second running speed, and Wherein, the first operating speed is set to be higher than the second operating speed.

9. A method for controlling the execution of an application on an electronic device, the method include: In response to receiving input for running an application, identifying a plurality of processes based on dependencies on the application; Based on the identified plurality of processes, identifying at least one process among the identified plurality of processes, the identified at least one process being operationally restricted during at least a portion of the time the application is executed; limiting operation of the identified at least one process during at least a portion of the time the application is running; as well as Operational restrictions on at least some of the identified at least one process are released in response to a preset condition being satisfied.

10. The method according to claim 9, in, The preset condition includes the startup time of the application, and The releasing the operation restriction comprises: when the startup time of the application has passed, releasing the operation restriction on at least some of the at least one identified process.

11. The method according to claim 9, in, The pre-set condition includes detecting at least one event, and The releasing the operation restriction comprises: releasing the operation restriction on at least some processes corresponding to the detection of the at least one event among the at least one identified process.

12. The method according to claim 9, further comprising: include: adding the identified at least one process to an operation restriction group; In response to the detection of at least one event, removing from the operation restriction group at least one process corresponding to the detection of the at least one event; as well as When the startup time of the application has passed, changing the higher priority of the at least one priority process and the at least one thread to the original priority, The operation restriction group is updated so that at least some of the processes included in the operation restriction group are changed each time the application is executed.

13. The method according to claim 9, further comprising: include: assigning a higher priority to at least one priority process among the plurality of processes other than the identified at least one process and to at least one thread in the at least one priority process; scheduling the at least one thread to run in a first central processing unit (CPU) having a first running speed; as well as Another thread in the at least one priority process is scheduled to run in a second CPU having a second running speed, wherein the first running speed is set to be higher than the second running speed.

14. The method according to claim 9, in, The identified at least one process has a lower dependency on the application than other processes in the plurality of processes.

15. A non-transitory storage medium storing instructions, wherein the instructions are configured to, when executed by at least one processor of an electronic device, enable the electronic device to perform at least one operation, wherein the at least one operation include: In response to receiving input for running an application, identifying a plurality of processes based on dependencies on the application, identifying at least one process among the identified plurality of processes, the identified at least one process being operationally restricted during at least a portion of the time the application is executed, limiting operation of the identified at least one process during at least a portion of the time the application is running, and Operational restrictions on at least some of the identified at least one process are released in response to a preset condition being satisfied.