WO2022163907A1 - Electronic device and control method therefor - Google Patents

Electronic device and control method therefor Download PDF

Info

Publication number
WO2022163907A1
WO2022163907A1 PCT/KR2021/003940 KR2021003940W WO2022163907A1 WO 2022163907 A1 WO2022163907 A1 WO 2022163907A1 KR 2021003940 W KR2021003940 W KR 2021003940W WO 2022163907 A1 WO2022163907 A1 WO 2022163907A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
electronic device
preload
processor
class list
Prior art date
Application number
PCT/KR2021/003940
Other languages
French (fr)
Korean (ko)
Inventor
이해욱
정관희
김효종
전경석
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Publication of WO2022163907A1 publication Critical patent/WO2022163907A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4416Network booting; Remote initial program loading [RIPL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44557Code layout in executable memory

Definitions

  • the present disclosure relates to an electronic device and a control method thereof, and more particularly, to an electronic device for preloading a class corresponding to a process and a control method thereof.
  • the class list (or preload class list) preloaded through Zygot is generally a list of classes previously defined in AOSP (Android Open Source Project).
  • AOSP Android Open Source Project
  • the list of preloaded classes was not divided according to the type or function of the process, but was applied to each process in batches.
  • the present disclosure has been devised to improve the above problems, and an object of the present disclosure is to provide an electronic device for generating a class list for each process and preloading the generated class list, and a method for controlling the same.
  • the electronic device acquires and stores profile data including information about a class executed exceeding a threshold number of times for each communication module, memory, and a plurality of processes including a circuit and stores it in the memory, and a processor configured to generate a second preload class list corresponding to each of the plurality of processes based on the stored profile data for each of the plurality of processes, wherein the processor is configured to: When the first process is created, a second preload class list corresponding to the first process may be preloaded.
  • the plurality of processes may include a system server and an application application
  • the processor may obtain profile data of each of the system server and the application application and store the obtained profile data in the memory.
  • the processor identifies a class that the application application commonly executes exceeding the threshold number based on the profile data of the application application, and a second preload corresponding to the application application based on the identified class You can create a list of classes.
  • the processor may generate a second preload class list corresponding to the application application based on the remaining classes except for the classes included in the first preload class list among the identified classes.
  • the processor when a user command for booting the electronic device is input, the processor generates a zygote while booting the electronic device, and when the system server, which is the first process, is generated through the gygote, the system server A second preload class list corresponding to may be preloaded.
  • a second preload class list may be preloaded.
  • the processor identifies a class in which a plurality of application applications grouped according to a predefined criterion commonly executes exceeding the threshold number of times, and selects the rest of the identified classes except for the first preload class list.
  • a third preload class list corresponding to the grouped plurality of applications may be generated by using the .
  • the processor when the system server inputs an execution request for a second application among the plurality of grouped applications to the zygote, generates a process for executing the second application through the zygote,
  • the third preload class list may be preloaded.
  • the processor may receive a first preload class list from an external server through the communication module and store it in the memory, and the system server and the application application may share the first preload class list.
  • a method of controlling an electronic device acquiring and storing profile data including information on a class executed exceeding a threshold number of times for each of a plurality of processes, and storing the obtained profile data for each of the plurality of stored processes generating a second preload class list corresponding to each of the plurality of processes based on the profile data; and when a first process among the plurality of processes is generated while the electronic device is booting, the process corresponding to the first process is generated.
  • a second preload class list may be preloaded.
  • the plurality of processes may include a system server and an application application
  • obtaining and storing the profile data may include obtaining and storing profile data of each of the system server and the application application.
  • the generating includes: identifying a class commonly executed by the application application based on the profile data of the application application; and a second preload class list corresponding to the application application based on the identified class It may include the step of generating
  • the generating may include generating a second preload class list corresponding to the application application based on the remaining classes except for the classes included in the first preload class list among the identified classes.
  • the preloading may include, when a user command for booting the electronic device is input, generating a gygot while booting the electronic device, and generating a system server, which is the first process, through the gygot. If so, the method may include preloading a second preload class list corresponding to the system server.
  • the preloading includes, when a first application execution request signal is input to the gygot by the system server, creating a process for executing the first application through the gygote and the application A second preload class list corresponding to the application may be preloaded.
  • control method includes: identifying a class that is commonly executed by a plurality of application applications grouped according to a predefined criterion exceeding the threshold number of times; The method may further include generating a third preload class list corresponding to the grouped plurality of applications using .
  • control method when an execution request for a second application among the plurality of grouped applications is input to the zygot by the system server, generating a process for executing the second application through the zygot and the third preload class list may be preloaded.
  • the control method may further include receiving and storing a first preload class list from an external server, and the system server and the application application may share the first preload class list.
  • FIG. 1 is a block diagram schematically illustrating a configuration of an electronic device according to an embodiment of the present disclosure
  • FIG. 2 is a diagram for explaining a network environment including an electronic device according to an embodiment of the present disclosure
  • FIG. 3 is a flowchart illustrating a method of controlling an electronic device according to an embodiment of the present disclosure
  • FIG. 4 is a flowchart illustrating a method for an electronic device to preload a class list for each process according to an embodiment of the present disclosure
  • FIG. 5 is a flowchart illustrating a method of generating and preloading a preload class list corresponding to a grouped application by an electronic device according to an embodiment of the present disclosure
  • Embodiments of the present disclosure may apply various transformations and may have various embodiments, and specific embodiments will be illustrated in the drawings and described in detail in the detailed description. However, this is not intended to limit the scope of the specific embodiments, and it should be understood to include all transformations, equivalents and substitutions included in the spirit and scope of the disclosure. In describing the embodiments, if it is determined that a detailed description of a related known technology may obscure the subject matter, the detailed description thereof will be omitted.
  • module used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logic block, component, or circuit.
  • a module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions.
  • the module may be implemented in the form of an application-specific integrated circuit (ASIC).
  • ASIC application-specific integrated circuit
  • the electronic device may have various types of devices.
  • the electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device.
  • a portable communication device eg, a smart phone
  • a computer device e.g., a smart phone
  • a portable multimedia device e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a wearable device e.g., a smart bracelet
  • a home appliance device e.g., a home appliance
  • FIG. 1 is a block diagram schematically illustrating a configuration of an electronic device 100 according to an embodiment of the present disclosure.
  • the electronic device 100 may include a memory 110 , a communication unit 120 , and a processor 130 .
  • the configuration shown in FIG. 1 is an exemplary diagram for implementing embodiments of the present disclosure, and appropriate hardware and software configurations at a level obvious to those skilled in the art may be additionally included in the electronic device 100 .
  • the memory 110 may store commands or data related to at least one other component of the electronic device 100 .
  • the memory 110 is accessed by the processor 130 , and reading/writing/modification/deletion/update of data by the processor 130 may be performed.
  • the term "memory” refers to a memory 110, a ROM (not shown) in the processor 130, a RAM (not shown), or a memory card (not shown) mounted in the electronic device 100 (eg, micro SD). card, memory stick).
  • the memory 110 may store programs and data for configuring various screens to be displayed in the display area of the display. The configuration of the memory 110 will be described in more detail with reference to FIG. 2 .
  • the communication module 120 includes a circuit and may communicate with an external device.
  • the external device may refer to the electronic device 102 , the electronic device 104 , and the server 108 of FIG. 2 .
  • Communication of the communication module 120 with an external device may include communication through a third device (eg, a repeater, a hub, an access point, a server, or a gateway).
  • a third device eg, a repeater, a hub, an access point, a server, or a gateway.
  • the processor 130 may be electrically connected to the memory 110 to control overall functions and operations of the electronic device 100 .
  • the processor 130 may receive the first preload class list from the external server through the communication module 120 and store it in the memory 110 .
  • the external server may refer to the server 108 shown in FIG. 2 , and may refer to a server that manages or provides an open source, etc. by Google TM or the like.
  • the first preload class list means a list of at least one predefined preload class provided by an external server
  • the system server and the application application generated by Zygot may share the first preload class list.
  • the zygot refers to a software module that executes a preset command to execute various processes in the Android operating system environment.
  • the processor 130 may generate a gygote.
  • the processor 130 may preload the pre-stored first preload class list through zygote.
  • the preload may be expressed as loading, and the loading refers to an operation of allowing the processor 130 to access the memory by loading it from a memory performing a storage function to a memory performing a main memory function. do. That is, the processor 130 may load the first preload class list stored in the memory performing the storage function into the memory performing the main memory function.
  • the processor 130 may acquire profile data including information on a class executed by exceeding a threshold number of times for each of the plurality of processes. That is, the processor 130 may acquire profile data for each process by identifying information about a class executed exceeding a threshold number of times when each of the plurality of processes is executed.
  • the plurality of processes may include a system server and an application application.
  • the system server refers to a collection of service modules responsible for the overall operation and management of the framework, such as the execution of application applications.
  • the Android operating system records and stores information about classes and methods used a threshold number of times or more for each process in order to perform optimization work according to a user's usage pattern.
  • the processor 130 may access information recorded by the Android operating system to obtain profile data including information on classes and methods executed exceeding a threshold number of times for each of a plurality of processes.
  • the processor 130 may obtain profile data of each of the system server and the application application.
  • the threshold number may be a preset value (eg, 5000 times) by research or experimentation, but is not limited thereto, and may be changed based on at least a part of a user's usage pattern. Also, it goes without saying that the user can arbitrarily change the threshold number.
  • the processor 130 may generate a second preload class list for each of the plurality of processes based on the profile data for each of the plurality of processes. Specifically, the processor 130 may identify a class that the application application commonly executes exceeding a threshold number of times based on the profile data of the application application.
  • the processor 130 may generate a second preload class list corresponding to the application based on the identified class.
  • the processor 130 may store the generated second preload class list for each process in the memory 110 .
  • the second preload class list for each process may be stored in the form of a text file, but is not limited thereto, and may be stored in various file types.
  • the processor 130 identifies a class that is commonly executed exceeding a threshold number of classes among the classes executed by the application application, and uses the remaining classes except for the class included in the first preload class list among the identified classes.
  • a second preload class list corresponding to the application may be generated.
  • the processor 130 identifies a class executed exceeding a threshold number of times when the system server is executed based on the profile data of the system server, and a second preload class list corresponding to the system server based on the identified class can create Then, the processor 130 generates a second preload class list corresponding to the system server using the remaining classes except for the classes included in the first preload class list among the classes executed exceeding a threshold number of times when the system server is executed. can create
  • the processor 130 When a first process among a plurality of processes is generated while or after the electronic device 100 is booted as a user command for booting the electronic device 100 is input, the processor 130 corresponds to the first process. It is possible to preload the list of the second preload class to be. That is, the processor 130 may preload the second preload class list corresponding to the generated process.
  • the processor 130 may generate a gygoth.
  • the processor 130 may preload a second list of preload classes corresponding to the system server. Specifically, the processor 130 may preload the second preload class list corresponding to the system server before the system server performs initialization.
  • the system server may initialize and execute an application for driving the electronic device 100 in the Android operating system environment.
  • the system server executes a specific application, it may mean that the system server transmits (or inputs) a signal requesting a fork of the specific application to Zygot.
  • a first application execution request signal (eg, a signal for requesting a fork of the first application) is input by the system server to Zygot
  • the processor 130 performs a process for executing the first application through Zygot. and preload the second preload class list corresponding to the application application.
  • the processor 130 may create a process for executing the first application by calling the fork function through the gygot.
  • the generated process may share the list of preloaded first preload classes with the system server.
  • the processor 130 may preload the second preload class list corresponding to the application before the generated process is specialized to the first application.
  • the processor 130 may control the generated process to be specialized as a first application application.
  • the processor 130 generates a third preload class list based on a class in which a plurality of application applications grouped according to a predefined criterion commonly execute exceeding a threshold number of times. can create In addition, when a process for a second application is generated among a plurality of grouped application applications, the processor 130 may preload the third preload class list. An embodiment related thereto will be described in detail with reference to FIG. 5 .
  • a preload class list for a class with high frequency of use may be generated for each system server and each application, and the class list may be preloaded for each generated process.
  • FIG. 2 is a diagram for describing a network environment, according to various embodiments of the present disclosure.
  • the electronic device 100 communicates with the electronic device 102 through a first network 198 (eg, a short-range wireless communication network), or a second network 199 ( For example, it is possible to communicate with at least one of the electronic device 104 or the server 108 through a long-distance wireless communication network.
  • the electronic device 100 may communicate with the electronic device 104 through the server 108 .
  • the electronic device 100 includes a memory 110 , a communication module 120 , a processor 130 , an input module 150 , a sound output module 155 , a display module 160 , and audio Module 170, sensor module 176, interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, subscriber identification module ( 196), or an antenna module 197 may be included.
  • at least one eg, the connection terminal 178
  • these components may be omitted or one or more other components may be added.
  • some of these components are integrated into one component (eg, display module 160 ). can be
  • the processor 130 for example, executes software (eg, the program 140 ) to execute at least one other component (eg, a hardware or software component) of the electronic device 100 connected to the processor 130 . It can control and perform various data processing or operations. According to one embodiment, as at least part of data processing or computation, the processor 130 converts commands or data received from other components (eg, the sensor module 176 or the communication module 120 ) to the volatile memory 112 . may be stored in the volatile memory 112 , and may process commands or data stored in the volatile memory 112 , and store the result data in the non-volatile memory 114 .
  • software eg, the program 140
  • the processor 130 converts commands or data received from other components (eg, the sensor module 176 or the communication module 120 ) to the volatile memory 112 .
  • the volatile memory 112 may be stored in the volatile memory 112 , and may process commands or data stored in the volatile memory 112 , and store the result data in the non-volatile memory 114 .
  • the processor 130 may include a main processor 131 (eg, a central processing unit or an application processor) or a secondary processor 133 (eg, a graphic processing unit or a neural network processing unit) that can operate independently or together with the main processor 131 .
  • main processor 131 eg, a central processing unit or an application processor
  • secondary processor 133 eg, a graphic processing unit or a neural network processing unit
  • NPU neural processing unit
  • image signal processor e.g., image signal processor, sensor hub processor, or communication processor.
  • the sub-processor 133 uses less power than the main processor 131 or is set to be specialized for a specified function.
  • the auxiliary processor 133 may be implemented separately from or as a part of the main processor 131 .
  • the auxiliary processor 133 for example, on behalf of the main processor 131 while the main processor 131 is in an inactive (eg, sleep) state, or the main processor 131 is active (eg, executing an application) ), together with the main processor 131, at least one of the components of the electronic device 100 (eg, the display module 160, the sensor module 176, or the communication module 120) It is possible to control at least some of the related functions or states.
  • the coprocessor 133 eg, an image signal processor or a communication processor
  • another functionally related component eg, the camera module 180 or the communication module 120.
  • the auxiliary processor 133 may include a hardware structure specialized for processing an artificial intelligence model.
  • Artificial intelligence models can be created through machine learning. Such learning may be performed, for example, in the electronic device 100 itself on which the artificial intelligence model is performed, or may be performed through a separate server (eg, the server 108).
  • the learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but in the above example not limited
  • the artificial intelligence model may include a plurality of artificial neural network layers. Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the above example.
  • the artificial intelligence model may include, in addition to, or alternatively, a software structure in addition to the hardware structure.
  • the memory 110 may store various data used by at least one component (eg, the processor 130 or the sensor module 176 ) of the electronic device 100 .
  • the data may include, for example, input data or output data for software (eg, the program 130 ) and instructions related thereto.
  • the memory 110 may include a volatile memory 112 or a non-volatile memory 114 .
  • the program 130 may be stored as software in the memory 110 , and may include, for example, an operating system 142 , middleware 144 , or an application 146 .
  • the input module 150 may receive a command or data to be used in a component (eg, the processor 130 ) of the electronic device 100 from the outside (eg, a user) of the electronic device 100 .
  • the input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a stylus pen).
  • the sound output module 155 may output a sound signal to the outside of the electronic device 100 .
  • the sound output module 155 may include, for example, a speaker or a receiver.
  • the speaker can be used for general purposes such as multimedia playback or recording playback.
  • the receiver can be used to receive incoming calls. According to one embodiment, the receiver may be implemented separately from or as part of the speaker.
  • the display module 160 may visually provide information to the outside (eg, a user) of the electronic device 100 .
  • the display module 160 may include, for example, a control circuit for controlling a display, a hologram device, or a projector and a corresponding device.
  • the display module 160 may include a touch sensor configured to sense a touch or a pressure sensor configured to measure the intensity of a force generated by the touch.
  • the audio module 170 may convert a sound into an electric signal or, conversely, convert an electric signal into a sound. According to an embodiment, the audio module 170 acquires a sound through the input module 150 , or an external electronic device (eg, a sound output module 155 ) connected directly or wirelessly with the electronic device 100 .
  • the electronic device 102) eg, a speaker or headphones
  • the electronic device 102 may output a sound.
  • the sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 100 or an external environmental state (eg, a user state), and generates an electrical signal or data value corresponding to the sensed state. can do.
  • the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.
  • the interface 177 may support one or more specified protocols that may be used by the electronic device 100 to directly or wirelessly connect with an external electronic device (eg, the electronic device 102 ).
  • the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
  • the connection terminal 178 may include a connector through which the electronic device 100 can be physically connected to an external electronic device (eg, the electronic device 102 ).
  • the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).
  • the haptic module 179 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic sense.
  • the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
  • the camera module 180 may capture still images and moving images. According to an embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.
  • the power management module 188 may manage power supplied to the electronic device 100 .
  • the power management module 188 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
  • PMIC power management integrated circuit
  • the battery 189 may supply power to at least one component of the electronic device 100 .
  • battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
  • the communication module 120 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 100 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). It can support establishment and communication performance through the established communication channel.
  • an external electronic device eg, the electronic device 102, the electronic device 104, or the server 108. It can support establishment and communication performance through the established communication channel.
  • the communication module 120 may include one or more communication processors that operate independently of the processor 130 (eg, an application processor) and support direct (eg, wired) communication or wireless communication.
  • the communication module 120 is a wireless communication module 122 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 124 (eg, : It may include a local area network (LAN) communication module, or a power line communication module).
  • GNSS global navigation satellite system
  • a corresponding communication module among these communication modules is a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (eg, a telecommunication network such as a LAN or a WAN).
  • a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)
  • a second network 199 eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (eg, a telecommunication network such as a LAN or a WAN).
  • the wireless communication module 122 uses subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199 .
  • subscriber information eg, International Mobile Subscriber Identifier (IMSI)
  • IMSI International Mobile Subscriber Identifier
  • the electronic device 100 may be identified or authenticated.
  • the wireless communication module 122 may support a 5G network after a 4G network and a next-generation communication technology, for example, a new radio access technology (NR).
  • NR access technology includes high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency) -latency communications)).
  • eMBB enhanced mobile broadband
  • mMTC massive machine type communications
  • URLLC ultra-reliable and low-latency
  • the wireless communication module 122 may support a high frequency band (eg, mmWave band) in order to achieve a high data rate, for example.
  • a high frequency band eg, mmWave band
  • the wireless communication module 122 uses various techniques for securing performance in a high-frequency band, for example, beamforming, massive multiple-input and multiple-output (MIMO), all-dimensional multiplexing. It may support technologies such as full dimensional MIMO (FD-MIMO), an array antenna, analog beam-forming, or a large scale antenna.
  • MIMO massive multiple-input and multiple-output
  • the wireless communication module 122 may support various requirements specified in the electronic device 100 , an external electronic device (eg, the electronic device 104 ), or a network system (eg, the second network 199 ).
  • the wireless communication module 122 may include a peak data rate (eg, 20 Gbps or more) for realizing eMBB, loss coverage (eg, 164 dB or less) for realizing mMTC, or U-plane latency for realizing URLLC ( Example: Downlink (DL) and uplink (UL) each 0.5 ms or less, or round trip 1 ms or less) can be supported.
  • the antenna module 197 may transmit or receive a signal or power to the outside (eg, an external electronic device).
  • the antenna module 197 may include an antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern.
  • the antenna module 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is connected from the plurality of antennas by, for example, the communication module 120 . can be selected. A signal or power may be transmitted or received between the communication module 120 and an external electronic device through the selected at least one antenna.
  • other components eg, a radio frequency integrated circuit (RFIC)
  • RFIC radio frequency integrated circuit
  • the antenna module 197 may form a mmWave antenna module.
  • the mmWave antenna module comprises a printed circuit board, an RFIC disposed on or adjacent to a first side (eg, bottom side) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, an array antenna) disposed on or adjacent to a second side (eg, top or side) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.
  • peripheral devices eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)
  • GPIO general purpose input and output
  • SPI serial peripheral interface
  • MIPI mobile industry processor interface
  • the command or data may be transmitted or received between the electronic device 100 and the external electronic device 104 through the server 108 connected to the second network 199 .
  • Each of the external electronic devices 102 or 104 may be the same as or different from the electronic device 100 .
  • all or a part of operations executed in the electronic device 100 may be executed in one or more external electronic devices 102 , 104 , or 108 .
  • the electronic device 100 may perform the function or service by itself instead of executing the function or service itself.
  • one or more external electronic devices may be requested to perform at least a part of the function or the service.
  • One or more external electronic devices that have received the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 100 .
  • the electronic device 100 may process the result as it is or additionally and provide it as at least a part of a response to the request.
  • cloud computing distributed computing, mobile edge computing (MEC), or client-server computing technology may be used.
  • the electronic device 100 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing.
  • the external electronic device 104 may include an Internet of things (IoT) device.
  • the server 108 may be an intelligent server using machine learning and/or neural networks.
  • the external electronic device 104 or the server 108 may be included in the second network 199 .
  • the electronic device 100 may be applied to an intelligent service (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.
  • FIG. 3 is a flowchart illustrating a method of controlling an electronic device according to an embodiment of the present disclosure.
  • the electronic device 100 may receive and store the first preload class list from the external server (S310).
  • the first preload class list may include a preload class list provided by AOSP of Google TM .
  • the system server and application application generated by Zygot may share the first preload class list.
  • the electronic device 100 may obtain profile data including information about a class executed by exceeding a threshold number of times for each of the plurality of processes ( S320 ).
  • the Android operating system may record information on classes and methods used exceeding a threshold number of times for each application by profiling a user's usage pattern.
  • the electronic device 100 may access information recorded by the Android operating system to obtain profile data including information on classes and methods executed exceeding a threshold number of times for each of a plurality of processes. That is, the electronic device 100 may obtain and store profile data of each of the system server and the application application.
  • the electronic device 100 may generate a second preload class list corresponding to each of the plurality of processes based on the profile data for each of the plurality of processes ( S330 ).
  • the electronic device 100 may identify a class that is commonly executed exceeding a threshold number of times for a plurality of application applications based on profile data of the application application.
  • the electronic device 100 may generate the second preload class list corresponding to the general application by using the remaining classes except for the class included in the first preload class list among the identified classes.
  • the electronic device 100 may generate a second preload class list corresponding to the system server by using the remaining classes except for the class included in the first preload class list among the identified classes.
  • the electronic device 100 may preload a second preload class list corresponding to the first process ( S340 ). That is, when a specific process is generated, the electronic device 100 may preload a class list corresponding to the generated process. An embodiment related thereto will be described in detail with reference to FIG. 4 .
  • FIG. 4 is a flowchart illustrating a method for the electronic device 100 to preload a class list for each process according to an embodiment of the present disclosure. That is, FIG. 4 is a flowchart illustrating a process in which the electronic device 100 preloads the generated class list for each process after the second preload class list is generated.
  • the electronic device 100 may receive a user command for booting the electronic device 100 ( S410 ).
  • the electronic device 100 may receive a user command to turn on the electronic device 100 in a power-off state, or a charger may be connected.
  • the electronic device 100 may receive a user command to reboot while the electronic device 100 is in a power-on state.
  • the electronic device 100 may create and initialize a gygoth during the booting process ( S420 ).
  • Zygot may preload a first list of preload classes received from an external server while being created and initialized.
  • the electronic device 100 may create a system server through the zygote (S430).
  • Zygot can create system servers using fork functions.
  • the system server may use the first preload class list preloaded by Zygot.
  • the system server may share a list of the first preload class with a process for executing an application to be generated by Zygot later.
  • the electronic device 100 may preload the second preload class list corresponding to the system server (S440). Before the generated system server is initialized, the electronic device 100 may preload a second preload class list corresponding to the system server. Thereafter, the system server may perform an initialization operation, and Zygot may monitor whether a specific application execution request is transmitted from the system server.
  • the electronic device 100 may identify whether the first application execution request is input to the gygot by the system server (S450).
  • the system server may operate to execute an application for driving the electronic device 100 in the Android operating system environment.
  • the electronic device 100 may identify whether the system server transmits a signal requesting a fork of the first application among the plurality of application applications to the gygot.
  • the electronic device 100 may generate a process for executing the first application through Xygot (S460).
  • Zygot may call the fork function to create a process for the first application.
  • the process for the generated first application may share the list of the first preload classes preloaded by Zygot with the system server.
  • the electronic device 100 may preload the second preload class list corresponding to the application (S470).
  • the electronic device 100 may preload the second preload class list corresponding to the application application before the generated process is specialized to the first application application.
  • the electronic device 100 may execute the generated process by specializing it as a first application application.
  • FIG. 5 is a flowchart illustrating a method of generating and preloading a preload class list corresponding to a grouped application by an electronic device according to an embodiment of the present disclosure
  • the electronic device 100 may identify a class executed by exceeding a threshold number of times among classes executed by a plurality of application applications grouped according to a predefined criterion ( S510 ).
  • the electronic device 100 may obtain information about a class executed (or used) exceeding a threshold number of times for a plurality of grouped applications by using a function provided by the Android operating system.
  • the electronic device 100 may identify a class in which a plurality of grouped applications are commonly executed exceeding a threshold number based on information obtained through the Android operating system.
  • the plurality of applications may be grouped according to various criteria. For example, among applications distributed online through an application store, at least one application in which the number of downloads is equal to or greater than a preset value may be grouped. As another example, among applications installed in the electronic device 100 , applications that have been executed exceeding a preset number of times may be grouped.
  • the predefined criteria may be set in various ways and may be changed by a user, of course.
  • the electronic device 100 sets the third preload class corresponding to the grouped plurality of applications by using the remaining classes except for the first preload class list among the classes in which the grouped plurality of application applications are commonly executed exceeding the threshold number of times.
  • a list may be created and stored (S520).
  • the third preload class list may be stored in the electronic device 100 in the form of a text file, but is not limited thereto and may be stored in the form of another file.
  • the electronic device 100 may create and initialize a gygoth during booting.
  • the electronic device 100 may create a system server through zygote and preload a second preload class list corresponding to the system server. Since the embodiment related to this has been described with reference to S410 to S440 of FIG. 4 , a redundant description will be omitted.
  • the electronic device 100 may identify whether the execution request for the second application among the plurality of grouped applications is input to the gygot by the system server ( S530 ). When a fork request of a second application among a plurality of applications grouped by the system server is input to Zygot, the electronic device 100 may generate a process for executing the second application through Zygot. There is (S540). The electronic device 100 may preload the third preload class list corresponding to the grouped plurality of application applications before the generated process is specialized to the second application application ( S550 ).
  • the above-described methods according to various embodiments of the present disclosure may be implemented in the form of an application that can be installed in an existing electronic device.
  • the above-described methods according to various embodiments of the present disclosure may be implemented only by software upgrade or hardware upgrade of an existing electronic device.
  • various embodiments of the present disclosure described above may be performed through an embedded server provided in an electronic device, or an external server of at least one of an electronic device and a display device.
  • the various embodiments described above may be implemented as software including instructions stored in a machine-readable storage media readable by a machine (eg, a computer).
  • a device is a device capable of calling a stored command from a storage medium and operating according to the called command, and may include the electronic device according to the disclosed embodiments.
  • the processor may perform a function corresponding to the instruction by using other components directly or under the control of the processor.
  • Instructions may include code generated or executed by a compiler or interpreter.
  • the device-readable storage medium may be provided in the form of a non-transitory storage medium.
  • the 'non-transitory storage medium' does not include a signal and only means that it is tangible and does not distinguish that data is semi-permanently or temporarily stored in the storage medium.
  • the 'non-transitory storage medium' may include a buffer in which data is temporarily stored.
  • the method according to various embodiments disclosed in the present disclosure may be provided by being included in a computer program product.
  • Computer program products may be traded between sellers and buyers as commodities.
  • the computer program product may be distributed in the form of a machine-readable storage medium (eg, compact disc read only memory (CD-ROM)) or online through an application store (eg, Play StoreTM).
  • an application store eg, Play StoreTM
  • at least a portion of the computer program product eg, a downloadable app
  • a storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server, or temporarily can be created with
  • each of the components may be composed of a single or a plurality of entities, and some sub-components of the aforementioned sub-components may be omitted, or other sub-components may be omitted. Components may be further included in various embodiments.
  • some components eg, a module or a program
  • operations performed by a module, program, or other component may be sequentially, parallel, repetitively or heuristically executed, or at least some operations may be executed in a different order, omitted, or other operations may be added.

Abstract

An electronic device and a control method therefor are disclosed. The electronic device of the present disclosure comprises: a communication module including a circuit; a memory; and a processor which acquires profile data including information about classes executed by exceeding a critical frequency for each of a plurality of processes and stores same in the memory, and which generates second preload class lists corresponding to each of the plurality of processes on the basis of the profile data for each of the plurality of stored processes, wherein the processor can preload a second preload class list corresponding to a first process if the first process from among the plurality of processes is generated while the electronic device is booted.

Description

전자 장치 및 이의 제어 방법Electronic device and its control method
본 개시는 전자 장치 및 이의 제어 방법에 관한 것으로서, 더욱 상세하게는 프로세스에 대응되는 클래스를 프리로드(preload)하는 전자 장치 및 이의 제어 방법에 관한 것이다.The present disclosure relates to an electronic device and a control method thereof, and more particularly, to an electronic device for preloading a class corresponding to a process and a control method thereof.
전자 장치의 성능 향상에 대한 수요자 요구가 증가함에 따라, 전자 장치와 관련된 각종 기술의 연구가 진행되고 있다. 예를 들어, 전자 장치를 부팅하기 위한 사용자 명령이 입력된 경우, 전자 장치의 부팅 시간을 단축하기 위한 각종 기술이 개발되고 있다.As consumer demand for performance improvement of electronic devices increases, various technologies related to electronic devices are being studied. For example, when a user command for booting the electronic device is input, various technologies for shortening the booting time of the electronic device have been developed.
기존에는 안드로이드 운영 체제가 적용된 전자 장치를 부팅하고자 할 때, 자이고트(zygote)를 통해 응용 프로그램의 사용자 프로세스(user process)에서 사용될 자바 클래스(java class)와 리소스(resource)를 프리로드(preload)하는 기술이 개발되었다.In the past, when you want to boot an electronic device to which the Android operating system is applied, you preload a java class and a resource to be used in the user process of the application through zygote. technology has been developed.
한편, 자이고트를 통해 프리로드되는 클래스 목록(또는, 프리로드 클래스 목록)은 일반적으로 AOSP(Android Open Source Project)에서 기 정의된 클래스 목록이었다. 또한, 프리로드된 클래스 목록은 프로세스의 유형 또는 기능에 따라 구분되지 않았으며 일괄적으로 각 프로세스에 적용되었다.On the other hand, the class list (or preload class list) preloaded through Zygot is generally a list of classes previously defined in AOSP (Android Open Source Project). In addition, the list of preloaded classes was not divided according to the type or function of the process, but was applied to each process in batches.
즉, 기존에는 프리로드될 클래스 목록이 프로세스의 유형 또는 기능에 따른 구분 없이 일괄적으로 각 프로세스에 적용되었으며, 이에 따라 프로세스에 따라 탄력적으로 클래스 프리로드를 사용할 수 없다는 한계가 존재하였다. That is, in the past, the list of classes to be preloaded was applied to each process in a batch without distinction according to the type or function of the process, and accordingly, there was a limit that class preload could not be used flexibly depending on the process.
본 개시는 상술한 문제점을 개선하기 위해 안출된 것으로서, 본 개시의 목적은 프로세스 별 클래스 목록을 생성하고, 생성된 클래스 목록을 프리로드하는 전자 장치 및 이의 제어 방법을 제공함에 있다.The present disclosure has been devised to improve the above problems, and an object of the present disclosure is to provide an electronic device for generating a class list for each process and preloading the generated class list, and a method for controlling the same.
본 개시의 일 실시예로, 전자 장치는, 회로를 포함하는 통신 모듈, 메모리 및 복수의 프로세스 별로 임계 횟수를 초과하여 실행된 클래스에 대한 정보가 포함된 프로파일 데이터를 획득하여 상기 메모리에 저장하고, 상기 저장된 복수의 프로세스 별 프로파일 데이터에 기초하여 상기 복수의 프로세스 각각에 대응되는 제2 프리로드 클래스 목록을 생성하는 프로세서;를 포함하고, 상기 프로세서는, 상기 전자 장치가 부팅되는 동안 상기 복수의 프로세스 중 제1 프로세스가 생성되면, 상기 제1 프로세스에 대응되는 제2 프리로드 클래스 목록을 프리로드할 수 있다.In an embodiment of the present disclosure, the electronic device acquires and stores profile data including information about a class executed exceeding a threshold number of times for each communication module, memory, and a plurality of processes including a circuit and stores it in the memory, and a processor configured to generate a second preload class list corresponding to each of the plurality of processes based on the stored profile data for each of the plurality of processes, wherein the processor is configured to: When the first process is created, a second preload class list corresponding to the first process may be preloaded.
또한, 상기 복수의 프로세스는, 시스템 서버 및 응용 어플리케이션이 포함되고, 상기 프로세서는, 상기 시스템 서버 및 상기 응용 어플리케이션 각각의 프로파일 데이터를 획득하여 상기 메모리에 저장할 수 있다.Also, the plurality of processes may include a system server and an application application, and the processor may obtain profile data of each of the system server and the application application and store the obtained profile data in the memory.
그리고, 프로세서는, 상기 응용 어플리케이션의 프로파일 데이터에 기초하여 상기 응용 어플리케이션이 공통적으로 상기 임계 횟수를 초과하여 실행한 클래스를 식별하고, 상기 식별된 클래스에 기초하여 상기 응용 어플리케이션에 대응되는 제2 프리로드 클래스 목록을 생성할 수 있다.Then, the processor identifies a class that the application application commonly executes exceeding the threshold number based on the profile data of the application application, and a second preload corresponding to the application application based on the identified class You can create a list of classes.
또한, 프로세서는, 상기 식별된 클래스 중 상기 제1 프리로드 클래스 목록에 포함된 클래스를 제외한 나머지 클래스에 기초하여 상기 응용 어플리케이션에 대응되는 제2 프리로드 클래스 목록을 생성할 수 있다.Also, the processor may generate a second preload class list corresponding to the application application based on the remaining classes except for the classes included in the first preload class list among the identified classes.
그리고, 프로세서는, 상기 전자 장치를 부팅하기 위한 사용자 명령이 입력되면, 상기 전자 장치를 부팅하는 동안 자이고트를 생성하고, 상기 자이고트를 통해 상기 제1 프로세스인 시스템 서버가 생성되면, 상기 시스템 서버에 대응되는 제2 프리로드 클래스 목록을 프리로드할 수 있다.In addition, when a user command for booting the electronic device is input, the processor generates a zygote while booting the electronic device, and when the system server, which is the first process, is generated through the gygote, the system server A second preload class list corresponding to may be preloaded.
또한, 상기 프로세서는, 상기 시스템 서버에 의해 제1 응용 어플리케이션 실행 요청 신호가 상기 자이고트에 입력되면, 상기 자이고트를 통해 상기 제1 응용 어플리케이션 실행을 위한 프로세스를 생성하고, 상기 응용 어플리케이션에 대응되는 제2 프리로드 클래스 목록을 프리로드할 수 있다.In addition, when a first application execution request signal is input to the zygote by the system server, the processor generates a process for executing the first application through the zygote, A second preload class list may be preloaded.
그리고, 상기 프로세서는, 기 정의된 기준에 따라 그룹핑된 복수의 응용 어플리케이션이 공통적으로 상기 임계 횟수를 초과하여 실행한 클래스를 식별하고, 상기 식별된 클래스 중 상기 제1 프리로드 클래스 목록을 제외한 나머지를 이용하여 상기 그룹핑된 복수의 어플리케이션에 대응되는 제3 프리로드 클래스 목록을 생성할 수 있다.In addition, the processor identifies a class in which a plurality of application applications grouped according to a predefined criterion commonly executes exceeding the threshold number of times, and selects the rest of the identified classes except for the first preload class list. A third preload class list corresponding to the grouped plurality of applications may be generated by using the .
또한, 상기 프로세서는, 상기 시스템 서버가 상기 그룹핑된 복수의 어플리케이션 중 제2 응용 어플리케이션에 대한 실행 요청을 자이고트에 입력하면, 상기 자이고트를 통해 상기 제2 응용 어플리케이션 실행을 위한 프로세스를 생성하고, 상기 제3 프리로드 클래스 목록을 프리로드할 수 있다.In addition, the processor, when the system server inputs an execution request for a second application among the plurality of grouped applications to the zygote, generates a process for executing the second application through the zygote, The third preload class list may be preloaded.
그리고, 상기 프로세서는, 외부 서버로부터 제1 프리로드 클래스 목록을 상기 통신 모듈을 통해 수신하여 상기 메모리에 저장하고, 상기 시스템 서버 및 상기 응용 어플리케이션은 상기 제1 프리로드 클래스 목록을 공유할 수 있다.The processor may receive a first preload class list from an external server through the communication module and store it in the memory, and the system server and the application application may share the first preload class list.
본 개시의 또 다른 실시예로, 전자 장치의 제어 방법에 있어서, 복수의 프로세스 별로 임계 횟수를 초과하여 실행된 클래스에 대한 정보가 포함된 프로파일 데이터를 획득하여 저장하는 단계, 상기 저장된 복수의 프로세스 별 프로파일 데이터에 기초하여 상기 복수의 프로세스 각각에 대응되는 제2 프리로드 클래스 목록을 생성하는 단계 및 상기 전자 장치가 부팅되는 동안 상기 복수의 프로세스 중 제1 프로세스가 생성되면, 상기 제1 프로세스에 대응되는 제2 프리로드 클래스 목록을 프리로드할 수 있다.As another embodiment of the present disclosure, in a method of controlling an electronic device, acquiring and storing profile data including information on a class executed exceeding a threshold number of times for each of a plurality of processes, and storing the obtained profile data for each of the plurality of stored processes generating a second preload class list corresponding to each of the plurality of processes based on the profile data; and when a first process among the plurality of processes is generated while the electronic device is booting, the process corresponding to the first process is generated. A second preload class list may be preloaded.
그리고, 상기 복수의 프로세스는, 시스템 서버 및 응용 어플리케이션이 포함되고, 상기 프로파일 데이터를 획득하여 저장하는 단계는, 상기 시스템 서버 및 상기 응용 어플리케이션 각각의 프로파일 데이터를 획득하여 저장하는 단계를 포함할 수 있다.In addition, the plurality of processes may include a system server and an application application, and obtaining and storing the profile data may include obtaining and storing profile data of each of the system server and the application application. .
또한, 상기 생성하는 단계는, 상기 응용 어플리케이션의 프로파일 데이터에 기초하여 상기 응용 어플리케이션이 공통적으로 실행한 클래스를 식별하는 단계 및 상기 식별된 클래스에 기초하여 상기 응용 어플리케이션에 대응되는 제2 프리로드 클래스 목록을 생성하는 단계를 포함할 수 있다.In addition, the generating includes: identifying a class commonly executed by the application application based on the profile data of the application application; and a second preload class list corresponding to the application application based on the identified class It may include the step of generating
그리고, 상기 생성하는 단계는, 상기 식별된 클래스 중 상기 제1 프리로드 클래스 목록에 포함된 클래스를 제외한 나머지 클래스에 기초하여 상기 응용 어플리케이션에 대응되는 제2 프리로드 클래스 목록을 생성하는 단계를 포함할 수 있다.And, the generating may include generating a second preload class list corresponding to the application application based on the remaining classes except for the classes included in the first preload class list among the identified classes. can
또한, 상기 프리로드하는 단계는, 상기 전자 장치를 부팅하기 위한 사용자 명령이 입력되면, 상기 전자 장치를 부팅하는 동안 자이고트를 생성하는 단계 및 상기 자이고트를 통해 상기 제1 프로세스인 시스템 서버가 생성되면, 상기 시스템 서버에 대응되는 제2 프리로드 클래스 목록을 프리로드하는 단계를 포함할 수 있다.In addition, the preloading may include, when a user command for booting the electronic device is input, generating a gygot while booting the electronic device, and generating a system server, which is the first process, through the gygot. If so, the method may include preloading a second preload class list corresponding to the system server.
그리고, 상기 프리로드하는 단계는, 상기 시스템 서버에 의해 제1 응용 어플리케이션 실행 요청 신호가 상기 자이고트에 입력되면, 상기 자이고트를 통해 상기 제1 응용 어플리케이션 실행을 위한 프로세스를 생성하는 단계 및 상기 응용 어플리케이션에 대응되는 제2 프리로드 클래스 목록을 프리로드할 수 있다.In addition, the preloading includes, when a first application execution request signal is input to the gygot by the system server, creating a process for executing the first application through the gygote and the application A second preload class list corresponding to the application may be preloaded.
또한, 상기 제어 방법은 기 정의된 기준에 따라 그룹핑된 복수의 응용 어플리케이션이 공통적으로 상기 임계 횟수를 초과하여 실행한 클래스를 식별하는 단계 및 상기 식별된 클래스 중 상기 제1 프리로드 클래스 목록을 제외한 나머지를 이용하여 상기 그룹핑된 복수의 어플리케이션에 대응되는 제3 프리로드 클래스 목록을 생성하는 단계를 더 포함할 수 있다.In addition, the control method includes: identifying a class that is commonly executed by a plurality of application applications grouped according to a predefined criterion exceeding the threshold number of times; The method may further include generating a third preload class list corresponding to the grouped plurality of applications using .
그리고, 상기 제어 방법은 상기 시스템 서버가 상기 그룹핑된 복수의 어플리케이션 중 제2 응용 어플리케이션에 대한 실행 요청이 자이고트에 입력하면, 상기 자이고트를 통해 상기 제2 응용 어플리케이션 실행을 위한 프로세스를 생성하는 단계 및 상기 제3 프리로드 클래스 목록을 프리로드할 수 있다.In the control method, when an execution request for a second application among the plurality of grouped applications is input to the zygot by the system server, generating a process for executing the second application through the zygot and the third preload class list may be preloaded.
또한, 상기 제어 방법은 외부 서버로부터 제1 프리로드 클래스 목록을 수신하여 저장하는 단계를 더 포함하고, 상기 시스템 서버 및 상기 응용 어플리케이션은 상기 제1 프리로드 클래스 목록을 공유할 수 있다.The control method may further include receiving and storing a first preload class list from an external server, and the system server and the application application may share the first preload class list.
도 1은 본 개시의 일 실시예에 따른, 전자 장치의 구성을 간략히 도시한 블록도,1 is a block diagram schematically illustrating a configuration of an electronic device according to an embodiment of the present disclosure;
도 2는 본 개시의 일 실시예에 따른, 전자 장치가 포함된 네트워크 환경을 설명하기 위한 도면,2 is a diagram for explaining a network environment including an electronic device according to an embodiment of the present disclosure;
도 3은 본 개시의 일 실시예에 따른, 전자 장치의 제어 방법을 설명하기 위한 순서도,3 is a flowchart illustrating a method of controlling an electronic device according to an embodiment of the present disclosure;
도 4는 본 개시의 일 실시예에 따른, 전자 장치가 프로세스 별 클래스 목록을 프리로드하는 방법을 설명하기 위한 순서도,4 is a flowchart illustrating a method for an electronic device to preload a class list for each process according to an embodiment of the present disclosure;
도 5는 본 개시의 일 실시예에 따른, 전자 장치가 그룹핑된 어플리케이션에 대응되는 프리로드 클래스 목록을 생성 및 프리로드하는 방법을 설명하기 위한 순서도이다.5 is a flowchart illustrating a method of generating and preloading a preload class list corresponding to a grouped application by an electronic device according to an embodiment of the present disclosure;
본 명세서에서 사용되는 용어에 대해 간략히 설명하고, 본 개시에 대해 구체적으로 설명하기로 한다. 본 개시의 실시 예에서 사용되는 용어는 본 개시에서의 기능을 고려하면서 가능한 현재 널리 사용되는 일반적인 용어들을 선택하였으나, 이는 당 분야에 종사하는 기술자의 의도 또는 판례, 새로운 기술의 출현 등에 따라 달라질 수 있다. 또한, 특정한 경우는 출원인이 임의로 선정한 용어도 있으며, 이 경우 해당되는 개시의 설명 부분에서 상세히 그 의미를 기재할 것이다. 따라서 본 명세서에서 사용되는 용어는 단순한 용어의 명칭이 아닌, 그 용어가 가지는 의미와 본 개시의 전반에 걸친 내용을 토대로 정의되어야 한다.Terms used in this specification will be briefly described, and the present disclosure will be described in detail. Terms used in the embodiments of the present disclosure have been selected as currently widely used general terms as possible while considering the functions in the present disclosure, but this may vary depending on the intention or precedent of a person skilled in the art, the emergence of new technology, etc. . In addition, in specific cases, there are also terms arbitrarily selected by the applicant, and in this case, the meaning will be described in detail in the description of the corresponding disclosure. Therefore, the terms used in this specification should be defined based on the meaning of the terms and the contents of the present disclosure, rather than the names of simple terms.
본 개시의 실시 예들은 다양한 변환을 가할 수 있고 여러 가지 실시 예를 가질 수 있는 바, 특정 실시 예들을 도면에 예시하고 상세한 설명에 상세하게 설명하고자 한다. 그러나 이는 특정한 실시 형태에 대해 범위를 한정하려는 것이 아니며, 개시된 사상 및 기술 범위에 포함되는 모든 변환, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 실시 예들을 설명함에 있어서 관련된 공지 기술에 대한 구체적인 설명이 요지를 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다.Embodiments of the present disclosure may apply various transformations and may have various embodiments, and specific embodiments will be illustrated in the drawings and described in detail in the detailed description. However, this is not intended to limit the scope of the specific embodiments, and it should be understood to include all transformations, equivalents and substitutions included in the spirit and scope of the disclosure. In describing the embodiments, if it is determined that a detailed description of a related known technology may obscure the subject matter, the detailed description thereof will be omitted.
제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 구성요소들은 용어들에 의해 한정되어서는 안 된다. 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다.Terms such as first, second, etc. may be used to describe various elements, but the elements should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from another.
본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term “module” used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logic block, component, or circuit. can be used as A module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions. For example, according to an embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).
본 명세서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.The electronic device according to various embodiments disclosed herein may have various types of devices. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device. The electronic device according to the embodiment of the present document is not limited to the above-described devices.
단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서, "포함하다" 또는 "구성되다" 등의 용어는 명세서 상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The singular expression includes the plural expression unless the context clearly dictates otherwise. In this specification, terms such as "comprises" or "consisting of" are intended to designate that the features, numbers, steps, operations, components, parts, or combinations thereof described in the specification exist, and one or more other It is to be understood that this does not preclude the possibility of addition or presence of features or numbers, steps, operations, components, parts, or combinations thereof.
아래에서는 첨부한 도면을 참고하여 본 개시의 실시 예에 대하여 본 개시가 속하는 기술 분야에서 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 상세히 설명한다. 그러나 본 개시는 여러 가지 상이한 형태로 구현될 수 있으며 여기에서 설명하는 실시 예에 한정되지 않는다. 그리고 도면에서 본 개시를 명확하게 설명하기 위해서 설명과 관계없는 부분은 생략하였으며, 명세서 전체를 통하여 유사한 부분에 대해서는 유사한 도면 부호를 붙였다.Hereinafter, with reference to the accompanying drawings, embodiments of the present disclosure will be described in detail so that those of ordinary skill in the art to which the present disclosure pertains can easily implement them. However, the present disclosure may be implemented in several different forms and is not limited to the embodiments described herein. And in order to clearly explain the present disclosure in the drawings, parts irrelevant to the description are omitted, and similar reference numerals are attached to similar parts throughout the specification.
도 1은 본 개시의 일 실시예에 따른, 전자 장치(100)의 구성은 간략히 도시한 블록도이다. 도 1에 도시된 바와 같이, 전자 장치(100)는 메모리(110), 통신부(120) 및 프로세서(130)가 포함될 수 있다. 다만, 도 1에 도시된 구성은 본 개시의 실시 예들을 구현하기 위한 예시도이며, 통상의 기술자에게 자명한 수준의 적절한 하드웨어 및 소프트웨어 구성들이 전자 장치(100)에 추가로 포함될 수 있다.1 is a block diagram schematically illustrating a configuration of an electronic device 100 according to an embodiment of the present disclosure. 1 , the electronic device 100 may include a memory 110 , a communication unit 120 , and a processor 130 . However, the configuration shown in FIG. 1 is an exemplary diagram for implementing embodiments of the present disclosure, and appropriate hardware and software configurations at a level obvious to those skilled in the art may be additionally included in the electronic device 100 .
메모리(110)는 전자 장치(100)의 적어도 하나의 다른 구성요소에 관계된 명령 또는 데이터를 저장할 수 있다. 그리고, 메모리(110)는 프로세서(130)에 의해 액세스되며, 프로세서(130)에 의한 데이터의 독취/기록/수정/삭제/갱신 등이 수행될 수 있다.The memory 110 may store commands or data related to at least one other component of the electronic device 100 . In addition, the memory 110 is accessed by the processor 130 , and reading/writing/modification/deletion/update of data by the processor 130 may be performed.
본 개시에서 메모리라는 용어는 메모리(110), 프로세서(130) 내 롬(미도시), 램(미도시) 또는 전자 장치(100)에 장착되는 메모리 카드(미도시)(예를 들어, micro SD 카드, 메모리 스틱)를 포함할 수 있다. 또한, 메모리(110)에는 디스플레이의 디스플레이 영역에 표시될 각종 화면을 구성하기 위한 프로그램 및 데이터 등이 저장될 수 있다. 메모리(110)의 구성은 도 2를 참조하여 더욱 구체적으로 설명하도록 한다.In the present disclosure, the term "memory" refers to a memory 110, a ROM (not shown) in the processor 130, a RAM (not shown), or a memory card (not shown) mounted in the electronic device 100 (eg, micro SD). card, memory stick). In addition, the memory 110 may store programs and data for configuring various screens to be displayed in the display area of the display. The configuration of the memory 110 will be described in more detail with reference to FIG. 2 .
통신 모듈(120)은 회로를 포함하며, 외부 장치와 통신을 수행할 수 있다. 여기서, 외부 장치는 도2의 전자 장치(102), 전자 장치(104) 및 서버(108)를 의미할 수 있다. 통신 모듈(120)이 외부 장치와 통신 연결되는 것은 제3 기기(예로, 중계기, 허브, 엑세스 포인트, 서버 또는 게이트웨이 등)를 거쳐서 통신하는 것을 포함할 수 있다. 통신 모듈(120)의 구성은 도 2를 참조하여 구체적으로 설명하도록 한다The communication module 120 includes a circuit and may communicate with an external device. Here, the external device may refer to the electronic device 102 , the electronic device 104 , and the server 108 of FIG. 2 . Communication of the communication module 120 with an external device may include communication through a third device (eg, a repeater, a hub, an access point, a server, or a gateway). The configuration of the communication module 120 will be described in detail with reference to FIG. 2 .
프로세서(130)는 메모리(110)와 전기적으로 연결되어 전자 장치(100)의 전반적인 기능 및 동작을 제어할 수 있다.The processor 130 may be electrically connected to the memory 110 to control overall functions and operations of the electronic device 100 .
프로세서(130)는 외부 서버로부터 제1 프리로드 클래스 목록을 통신 모듈(120)을 통해 수신하여 메모리(110)에 저장할 수 있다. 이 때, 외부 서버는 도 2에 도시된 서버(108)를 의미할 수 있으며, Google TM 등에서 오픈 소스 등을 관리 또는 제공하는 서버를 의미할 수 있다.The processor 130 may receive the first preload class list from the external server through the communication module 120 and store it in the memory 110 . In this case, the external server may refer to the server 108 shown in FIG. 2 , and may refer to a server that manages or provides an open source, etc. by Google TM or the like.
제1 프리로드 클래스 목록은 외부 서버에서 제공하는 기 정의된 적어도 하나의 프리로드 클래스 목록을 의미하며, The first preload class list means a list of at least one predefined preload class provided by an external server,
즉, 자이고트에 의해 생성된 시스템 서버 및 응용 어플리케이션은 제1 프리로드 클래스 목록을 공유할 수 있다. 여기서, 자이고트는 안드로이드 운영체제 환경에서 각종 프로세스를 실행시키기 위해 기 설정된 명령을 실행하는 소프트웨어 모듈을 의미한다.That is, the system server and the application application generated by Zygot may share the first preload class list. Here, the zygot refers to a software module that executes a preset command to execute various processes in the Android operating system environment.
전자 장치(100)를 부팅하기 위한 사용자 명령이 입력되면, 프로세서(130)는 자이고트를 생성할 수 있다. 프로세서(130)는 자이고트를 통해 기 저장된 제1 프리로드 클래스 목록을 프리로드 할 수 있다. 프리로드는 로딩(loading)으로 표현될 수 있으며, 로딩은 메모리 중 스토리지 기능을 수행하는 메모리에서 메인 메모리 기능을 수행하는 메모리로 로드(load)하여 프로세서(130)가 액세스할 수 있게 하는 동작을 의미한다. 즉, 프로세서(130)는 스토리지 기능을 수행하는 메모리에 저장된 제1 프리로드 클래스 목록을 메인 메모리 기능을 수행하는 메모리로 로드 할 수 있다.When a user command for booting the electronic device 100 is input, the processor 130 may generate a gygote. The processor 130 may preload the pre-stored first preload class list through zygote. The preload may be expressed as loading, and the loading refers to an operation of allowing the processor 130 to access the memory by loading it from a memory performing a storage function to a memory performing a main memory function. do. That is, the processor 130 may load the first preload class list stored in the memory performing the storage function into the memory performing the main memory function.
프로세서(130)는 복수의 프로세스별로 임계 횟수를 초과하여 실행된 클래스에 대한 정보가 포함된 프로파일(profile) 데이터를 획득할 수 있다. 즉, 프로세서(130)는 복수의 프로세스 각각이 실행될 때 임계 횟수를 초과하여 실행된 클래스에 대한 정보를 식별함으로써 프로세스 별 프로파일 데이터를 획득할 수 있다.The processor 130 may acquire profile data including information on a class executed by exceeding a threshold number of times for each of the plurality of processes. That is, the processor 130 may acquire profile data for each process by identifying information about a class executed exceeding a threshold number of times when each of the plurality of processes is executed.
여기서, 복수의 프로세스는 시스템 서버 및 응용 어플리케이션이 포함될 수 있다. 시스템 서버는 응용 어플리케이션의 실행 등과 같이 프레임 워크(framework) 전반의 동작 및 관리 등을 담당하는 서비스 모듈의 집합체를 의미한다.Here, the plurality of processes may include a system server and an application application. The system server refers to a collection of service modules responsible for the overall operation and management of the framework, such as the execution of application applications.
예를 들어, 안드로이드 운영체제는 사용자의 사용 패턴에 맞게 최적화 작업을 수행하기 위하여 각 프로세스 별로 임계 횟수 이상 사용된 클래스와 메소드(method)에 대한 정보를 기록 및 저장하고 있다. 프로세서(130)는 안드로이드 운영체제가 기록한 정보에 액세스하여 복수의 프로세스 별로 임계 횟수를 초과하여 실행된 클래스 및 메소드(method)에 대한 정보가 포함된 프로파일 데이터를 획득할 수 있다. 예로, 프로세서(130)는 시스템 서버 및 응용 어플리케이션 각각의 프로파일 데이터를 획득할 수 있다.For example, the Android operating system records and stores information about classes and methods used a threshold number of times or more for each process in order to perform optimization work according to a user's usage pattern. The processor 130 may access information recorded by the Android operating system to obtain profile data including information on classes and methods executed exceeding a threshold number of times for each of a plurality of processes. For example, the processor 130 may obtain profile data of each of the system server and the application application.
한편, 임계 횟수는 연구 또는 실험 등에 의해 기 설정된 값(예로, 5000회)일 수 있으나, 이에 국한되는 것은 아니며, 사용자의 사용 패턴 중 적어도 일부에 기초하여 변경될 수 있다. 또한, 사용자가 임계 횟수를 임의로 변경할 수 있음은 물론이다.Meanwhile, the threshold number may be a preset value (eg, 5000 times) by research or experimentation, but is not limited thereto, and may be changed based on at least a part of a user's usage pattern. Also, it goes without saying that the user can arbitrarily change the threshold number.
프로세서(130)는 복수의 프로세스 별 프로파일 데이터에 기초하여 복수의 프로세스 별 제2 프리로드 클래스 목록을 생성할 수 있다. 구체적으로, 프로세서(130)는 응용 어플리케이션의 프로파일 데이터에 기초하여 응용 어플리케이션이 공통적으로 임계 횟수를 초과하여 실행한 클래스를 식별할 수 있다. The processor 130 may generate a second preload class list for each of the plurality of processes based on the profile data for each of the plurality of processes. Specifically, the processor 130 may identify a class that the application application commonly executes exceeding a threshold number of times based on the profile data of the application application.
프로세서(130)는 식별된 클래스에 기초하여 응용 어플리케이션에 대응되는 제2 프리로드 클래스 목록을 생성할 수 있다. 프로세서(130)는 생성된 프로세스 별 제2 프리로드 클래스 목록을 메모리(110)에 저장할 수 있다. 이 때, 프로세스 별 제2 프리로드 클래스 목록은 텍스트 파일 형태로 저장될 수 있으나, 이에 국한된 것은 아니며, 다양한 파일 형태로 저장될 수 있다.The processor 130 may generate a second preload class list corresponding to the application based on the identified class. The processor 130 may store the generated second preload class list for each process in the memory 110 . In this case, the second preload class list for each process may be stored in the form of a text file, but is not limited thereto, and may be stored in various file types.
한편, 프로세서(130)는 응용 어플리케이션이 실행한 클래스 중 공통적으로 임계 횟수를 초과하여 실행한 클래스를 식별하고, 식별된 클래스 중 제1 프리로드 클래스 목록에 포함된 클래스를 제외한 나머지 클래스를 이용하여 응용 어플리케이션에 대응되는 제2 프리로드 클래스 목록을 생성할 수 있다.On the other hand, the processor 130 identifies a class that is commonly executed exceeding a threshold number of classes among the classes executed by the application application, and uses the remaining classes except for the class included in the first preload class list among the identified classes. A second preload class list corresponding to the application may be generated.
그리고, 프로세서(130)는 시스템 서버의 프로파일 데이터에 기초하여 시스템 서버가 실행될 때 임계 횟수를 초과하여 실행된 클래스를 식별하고, 식별된 클래스에 기초하여 시스템 서버에 대응되는 제2 프리로드 클래스 목록을 생성할 수 있다. 그리고, 프로세서(130)는 시스템 서버가 실행될 때 임계 횟수를 초과하여 실행된 클래스 중 제1 프리로드 클래스 목록에 포함된 클래스를 제외한 나머지 클래스를 이용하여 시스템 서버에 대응되는 제2 프리로드 클래스 목록을 생성할 수 있다.Then, the processor 130 identifies a class executed exceeding a threshold number of times when the system server is executed based on the profile data of the system server, and a second preload class list corresponding to the system server based on the identified class can create Then, the processor 130 generates a second preload class list corresponding to the system server using the remaining classes except for the classes included in the first preload class list among the classes executed exceeding a threshold number of times when the system server is executed. can create
전자 장치(100)를 부팅하기 위한 사용자 명령이 입력됨에 따라 전자 장치(100)가 부팅되는 동안 또는 부팅된 후, 복수의 프로세스 중 제1 프로세스가 생성되면, 프로세서(130)는 제1 프로세스에 대응되는 제2 프리로드 클래스 목록을 프리로드할 수 있다. 즉, 프로세서(130)는 생성되는 프로세스에 대응되는 제2 프리로드 클래스 목록을 프리로드할 수 있다.When a first process among a plurality of processes is generated while or after the electronic device 100 is booted as a user command for booting the electronic device 100 is input, the processor 130 corresponds to the first process. It is possible to preload the list of the second preload class to be. That is, the processor 130 may preload the second preload class list corresponding to the generated process.
예를 들어, 전자 장치가 부팅되는 동안, 프로세서(130)는 자이고트를 생성할 수 있다. 자이고트가 포크(fork) 함수를 호출하여 시스템 서버를 생성하면, 프로세서(130)는 시스템 서버에 대응되는 제2 프리로드 클래스 목록을 프리로드할 수 있다. 구체적으로, 프로세서(130)는 시스템 서버가 초기화를 진행하기 전에 시스템 서버에 대응되는 제2 프리로드 클래스 목록을 프리로드할 수 있다. 그 후, 시스템 서버는 초기화를 진행하고 안드로이드 운영체제 환경 상에서 전자 장치(100)를 구동하기 위한 어플리케이션을 실행시킬 수 있다. 시스템 서버가 특정 어플리케이션을 실행시킨다는 것은 시스템 서버가 자이고트에 특정 어플리케이션의 포크(fork)를 요청하는 신호를 전송(또는, 입력)한다는 것을 의미할 수 있다.For example, while the electronic device is booting, the processor 130 may generate a gygoth. When the gygote calls a fork function to create a system server, the processor 130 may preload a second list of preload classes corresponding to the system server. Specifically, the processor 130 may preload the second preload class list corresponding to the system server before the system server performs initialization. Thereafter, the system server may initialize and execute an application for driving the electronic device 100 in the Android operating system environment. When the system server executes a specific application, it may mean that the system server transmits (or inputs) a signal requesting a fork of the specific application to Zygot.
시스템 서버에 의해 제1 응용 어플리케이션 실행 요청 신호(예로, 제1 응용 어플리케이션의 포크를 요청하는 신호)이 자이고트에 입력되면, 프로세서(130)는 자이고트를 통해 제1 응용 어플리케이션 실행을 위한 프로세스를 생성하고, 응용 어플리케이션에 대응되는 제2 프리로드 클래스 목록을 프리로드할 수 있다. When a first application execution request signal (eg, a signal for requesting a fork of the first application) is input by the system server to Zygot, the processor 130 performs a process for executing the first application through Zygot. and preload the second preload class list corresponding to the application application.
예로, 프로세서(130)는 자이고트를 통해 포크 함수를 호출하여 제1 응용 어플리케이션을 실행하기 위한 프로세스를 생성할 수 있다. 이 때, 생성된 프로세스는 프리로드된 제1 프리로드 클래스 목록을 시스템 서버와 공유할 수 있다. 프로세서(130)는 생성된 프로세스가 제1 응용 어플리케이션으로 특수화(specialization)되기 전 응용 어플리케이션에 대응되는 제2 프리로드 클래스 목록을 프리로드 할 수 있다. 그리고, 프로세서(130)는 생성된 프로세스를 제1 응용 어플리케이션으로 특수화되도록 제어할 수 있다.For example, the processor 130 may create a process for executing the first application by calling the fork function through the gygot. In this case, the generated process may share the list of preloaded first preload classes with the system server. The processor 130 may preload the second preload class list corresponding to the application before the generated process is specialized to the first application. In addition, the processor 130 may control the generated process to be specialized as a first application application.
본 개시의 또 다른 실시예로, 프로세서(130)는 기 정의된 기준에 따라 그룹핑(grouping)된 복수의 응용 어플리케이션이 공통적으로 임계 횟수를 초과하여 실행한 클래스에 기초하여 제3 프리로드 클래스 목록을 생성할 수 있다. 그리고, 그룹핑된 복수의 응용 어플리케이션 중 제2 응용 어플리케이션을 위한 프로세스가 생성되면, 프로세서(130)는 제3 프리로드 클래스 목록을 프리로드할 수 있다. 이와 관련된 실시예는 도 5를 참조하여 구체적으로 설명하도록 한다.In another embodiment of the present disclosure, the processor 130 generates a third preload class list based on a class in which a plurality of application applications grouped according to a predefined criterion commonly execute exceeding a threshold number of times. can create In addition, when a process for a second application is generated among a plurality of grouped application applications, the processor 130 may preload the third preload class list. An embodiment related thereto will be described in detail with reference to FIG. 5 .
상술한 바와 같이 본 개시의 다양한 실시예에 의해, 시스템 서버와 응용 어플리케이션 별로 사용빈도가 높은 클래스에 대한 프리로드 클래스 목록이 생성되고, 생성되는 프로세스 별로 클래스 목록이 프리로드될 수 있다. As described above, according to various embodiments of the present disclosure, a preload class list for a class with high frequency of use may be generated for each system server and each application, and the class list may be preloaded for each generated process.
이에 따라, 시스템 서버와 응용 어플리케이션 별로 사용빈도가 높은 클래스에 대한 클래스 초기화 동작을 수행하지 않아도 되므로 프로세스 별로 동작상 성능이 향상될 수 있다. 또한, 프로세스 별로 필요한 클래스 목록만을 프리로드함으로써 메모리의 불필요한 소모를 줄일 수 있다.Accordingly, since it is not necessary to perform a class initialization operation for a class with high frequency of use for each system server and application application, operational performance for each process can be improved. In addition, unnecessary memory consumption can be reduced by preloading only a list of classes required for each process.
도 2는 본 개시의 다양한 실시 예에 따른, 네트워크 환경을 설명하기 위한 도면이다. 2 is a diagram for describing a network environment, according to various embodiments of the present disclosure.
도 2에 도시된 바와 같이, 네트워크 환경에서 전자 장치(100)는 제1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108) 중 적어도 하나와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(100)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 2 , in a network environment, the electronic device 100 communicates with the electronic device 102 through a first network 198 (eg, a short-range wireless communication network), or a second network 199 ( For example, it is possible to communicate with at least one of the electronic device 104 or the server 108 through a long-distance wireless communication network. According to an embodiment, the electronic device 100 may communicate with the electronic device 104 through the server 108 .
도 2에 도시된 바와 같이, 전자 장치(100)에는 메모리(110), 통신 모듈(120), 프로세서(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 가입자 식별 모듈(196), 또는 안테나 모듈(197)이 포함될 수 있다. 또 다른 실시예로, 전자 장치(100)는 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.2 , the electronic device 100 includes a memory 110 , a communication module 120 , a processor 130 , an input module 150 , a sound output module 155 , a display module 160 , and audio Module 170, sensor module 176, interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, subscriber identification module ( 196), or an antenna module 197 may be included. As another embodiment, in the electronic device 100 , at least one (eg, the connection terminal 178 ) among these components may be omitted or one or more other components may be added. In some embodiments, some of these components (eg, sensor module 176 , camera module 180 , or antenna module 197 ) are integrated into one component (eg, display module 160 ). can be
프로세서(130)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(130)에 연결된 전자 장치(100)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일 실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(130)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(120))로부터 수신된 명령 또는 데이터를 휘발성 메모리(112)에 저장하고, 휘발성 메모리(112)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(114)에 저장할 수 있다. The processor 130, for example, executes software (eg, the program 140 ) to execute at least one other component (eg, a hardware or software component) of the electronic device 100 connected to the processor 130 . It can control and perform various data processing or operations. According to one embodiment, as at least part of data processing or computation, the processor 130 converts commands or data received from other components (eg, the sensor module 176 or the communication module 120 ) to the volatile memory 112 . may be stored in the volatile memory 112 , and may process commands or data stored in the volatile memory 112 , and store the result data in the non-volatile memory 114 .
또 다른 실시예에 따르면, 프로세서(130)는 메인 프로세서(131)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(133)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. According to another embodiment, the processor 130 may include a main processor 131 (eg, a central processing unit or an application processor) or a secondary processor 133 (eg, a graphic processing unit or a neural network processing unit) that can operate independently or together with the main processor 131 . (NPU: neural processing unit), image signal processor, sensor hub processor, or communication processor).
예를 들어, 전자 장치(100)가 메인 프로세서(131) 및 보조 프로세서(133)를 포함하는 경우, 보조 프로세서(133)는 메인 프로세서(131)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(133)는 메인 프로세서(131)와 별개로, 또는 그 일부로서 구현될 수 있다.For example, when the electronic device 100 includes the main processor 131 and the sub-processor 133 , the sub-processor 133 uses less power than the main processor 131 or is set to be specialized for a specified function. can The auxiliary processor 133 may be implemented separately from or as a part of the main processor 131 .
보조 프로세서(133)는, 예를 들면, 메인 프로세서(131)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(131)를 대신하여, 또는 메인 프로세서(131)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(131)와 함께, 전자 장치(100)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(120))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. The auxiliary processor 133, for example, on behalf of the main processor 131 while the main processor 131 is in an inactive (eg, sleep) state, or the main processor 131 is active (eg, executing an application) ), together with the main processor 131, at least one of the components of the electronic device 100 (eg, the display module 160, the sensor module 176, or the communication module 120) It is possible to control at least some of the related functions or states.
일 실시예에 따르면, 보조 프로세서(133)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(120))의 일부로서 구현될 수 있다. According to an embodiment, the coprocessor 133 (eg, an image signal processor or a communication processor) may be implemented as part of another functionally related component (eg, the camera module 180 or the communication module 120). have.
또 다른 실시예에 따르면, 보조 프로세서(133)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(100) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. According to another embodiment, the auxiliary processor 133 (eg, a neural network processing unit) may include a hardware structure specialized for processing an artificial intelligence model. Artificial intelligence models can be created through machine learning. Such learning may be performed, for example, in the electronic device 100 itself on which the artificial intelligence model is performed, or may be performed through a separate server (eg, the server 108).
학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다.The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but in the above example not limited The artificial intelligence model may include a plurality of artificial neural network layers. Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the above example. The artificial intelligence model may include, in addition to, or alternatively, a software structure in addition to the hardware structure.
메모리(110)는, 전자 장치(100)의 적어도 하나의 구성요소(예: 프로세서(130) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(130)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(110)는, 휘발성 메모리(112) 또는 비휘발성 메모리(114)를 포함할 수 있다. The memory 110 may store various data used by at least one component (eg, the processor 130 or the sensor module 176 ) of the electronic device 100 . The data may include, for example, input data or output data for software (eg, the program 130 ) and instructions related thereto. The memory 110 may include a volatile memory 112 or a non-volatile memory 114 .
프로그램(130)은 메모리(110)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. The program 130 may be stored as software in the memory 110 , and may include, for example, an operating system 142 , middleware 144 , or an application 146 .
입력 모듈(150)은, 전자 장치(100)의 구성요소(예: 프로세서(130))에 사용될 명령 또는 데이터를 전자 장치(100)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The input module 150 may receive a command or data to be used in a component (eg, the processor 130 ) of the electronic device 100 from the outside (eg, a user) of the electronic device 100 . The input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a stylus pen).
음향 출력 모듈(155)은 음향 신호를 전자 장치(100)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output module 155 may output a sound signal to the outside of the electronic device 100 . The sound output module 155 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as multimedia playback or recording playback. The receiver can be used to receive incoming calls. According to one embodiment, the receiver may be implemented separately from or as part of the speaker.
디스플레이 모듈(160)은 전자 장치(100)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. The display module 160 may visually provide information to the outside (eg, a user) of the electronic device 100 . The display module 160 may include, for example, a control circuit for controlling a display, a hologram device, or a projector and a corresponding device. According to an embodiment, the display module 160 may include a touch sensor configured to sense a touch or a pressure sensor configured to measure the intensity of a force generated by the touch.
오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(100)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 170 may convert a sound into an electric signal or, conversely, convert an electric signal into a sound. According to an embodiment, the audio module 170 acquires a sound through the input module 150 , or an external electronic device (eg, a sound output module 155 ) connected directly or wirelessly with the electronic device 100 . The electronic device 102) (eg, a speaker or headphones) may output a sound.
센서 모듈(176)은 전자 장치(100)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 100 or an external environmental state (eg, a user state), and generates an electrical signal or data value corresponding to the sensed state. can do. According to an embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.
인터페이스(177)는 전자 장치(100)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support one or more specified protocols that may be used by the electronic device 100 to directly or wirelessly connect with an external electronic device (eg, 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, an SD card interface, or an audio interface.
연결 단자(178)는, 그를 통해서 전자 장치(100)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 178 may include a connector through which the electronic device 100 can be physically connected to an external electronic device (eg, the electronic device 102 ). According to an embodiment, the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).
햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 179 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic sense. According to an embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 180 may capture still images and moving images. According to an embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.
전력 관리 모듈(188)은 전자 장치(100)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 188 may manage power supplied to the electronic device 100 . 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).
배터리(189)는 전자 장치(100)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 189 may supply power to at least one component of the electronic device 100 . According to one embodiment, battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
통신 모듈(120)은 전자 장치(100)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. The communication module 120 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 100 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). It can support establishment and communication performance through the established communication channel.
통신 모듈(120)은 프로세서(130)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(120)은 무선 통신 모듈(122)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(124)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. The communication module 120 may include one or more communication processors that operate independently of the processor 130 (eg, an application processor) and support direct (eg, wired) communication or wireless communication. According to one embodiment, the communication module 120 is a wireless communication module 122 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 124 (eg, : It may include a local area network (LAN) communication module, or a power line communication module). A corresponding communication module among these communication modules is a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (eg, a telecommunication network such as a LAN or a WAN).
이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(122)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제1 네트워크(198) 또는 제2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(100)를 확인 또는 인증할 수 있다. These various types of communication modules may be integrated into one component (eg, a single chip) or may be implemented as a plurality of components (eg, multiple chips) separate from each other. The wireless communication module 122 uses subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199 . The electronic device 100 may be identified or authenticated.
무선 통신 모듈(122)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(122)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(122)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. The wireless communication module 122 may support a 5G network after a 4G network and a next-generation communication technology, for example, a new radio access technology (NR). NR access technology includes high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency) -latency communications)). The wireless communication module 122 may support a high frequency band (eg, mmWave band) in order to achieve a high data rate, for example. The wireless communication module 122 uses various techniques for securing performance in a high-frequency band, for example, beamforming, massive multiple-input and multiple-output (MIMO), all-dimensional multiplexing. It may support technologies such as full dimensional MIMO (FD-MIMO), an array antenna, analog beam-forming, or a large scale antenna.
무선 통신 모듈(122)은 전자 장치(100), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일실시예에 따르면, 무선 통신 모듈(122)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The wireless communication module 122 may support various requirements specified in the electronic device 100 , an external electronic device (eg, the electronic device 104 ), or a network system (eg, the second network 199 ). According to an embodiment, the wireless communication module 122 may include a peak data rate (eg, 20 Gbps or more) for realizing eMBB, loss coverage (eg, 164 dB or less) for realizing mMTC, or U-plane latency for realizing URLLC ( Example: Downlink (DL) and uplink (UL) each 0.5 ms or less, or round trip 1 ms or less) can be supported.
안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제1 네트워크(198) 또는 제2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(120)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(120)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다. The antenna module 197 may transmit or receive a signal or power to the outside (eg, an external electronic device). According to an embodiment, the antenna module 197 may include an antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern. According to an embodiment, the antenna module 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is connected from the plurality of antennas by, for example, the communication module 120 . can be selected. A signal or power may be transmitted or received between the communication module 120 and an external electronic device through the selected at least one antenna. According to some embodiments, other components (eg, a radio frequency integrated circuit (RFIC)) other than the radiator may be additionally formed as a part of the antenna module 197 .
다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 197 may form a mmWave antenna module. According to one embodiment, the mmWave antenna module comprises a printed circuit board, an RFIC disposed on or adjacent to a first side (eg, bottom side) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, an array antenna) disposed on or adjacent to a second side (eg, top or side) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.
상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and a signal ( e.g. commands or data) can be exchanged with each other.
일실시예에 따르면, 명령 또는 데이터는 제2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(100)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(100)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(100)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. According to an embodiment, the command or data may be transmitted or received between the electronic device 100 and the external electronic device 104 through the server 108 connected to the second network 199 . Each of the external electronic devices 102 or 104 may be the same as or different from the electronic device 100 . According to an embodiment, all or a part of operations executed in the electronic device 100 may be executed in one or more external electronic devices 102 , 104 , or 108 .
예를 들면, 전자 장치(100)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(100)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(100)로 전달할 수 있다. For example, when the electronic device 100 needs to perform a function or service automatically or in response to a request from a user or another device, the electronic device 100 may perform the function or service by itself instead of executing the function or service itself. Alternatively or additionally, one or more external electronic devices may be requested to perform at least a part of the function or the service. One or more external electronic devices that have received the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 100 .
전자 장치(100)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(100)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제2 네트워크(199) 내에 포함될 수 있다. 전자 장치(100)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다. The electronic device 100 may process the result as it is or additionally and provide it as at least a part of a response to the request. For this purpose, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used. The electronic device 100 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device 104 may include an Internet of things (IoT) device. The server 108 may be an intelligent server using machine learning and/or neural networks. According to an embodiment, the external electronic device 104 or the server 108 may be included in the second network 199 . The electronic device 100 may be applied to an intelligent service (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.
도 3은 본 개시의 일 실시예에 따른, 전자 장치의 제어 방법을 설명하기 위한 순서도이다.3 is a flowchart illustrating a method of controlling an electronic device according to an embodiment of the present disclosure.
전자 장치(100)는 외부 서버로부터 제1 프리로드 클래스 목록을 수신하고 저장할 수 있다(S310). 예로, 제1 프리로드 클래스 목록은 Google TM의 AOSP에서 제공된 프리로드 클래스 목록이 포함될 수 있다. 자이고트에 의해 생성된 시스템 서버 및 응용 어플리케이션은 제1 프리로드 클래스 목록을 공유할 수 있다.The electronic device 100 may receive and store the first preload class list from the external server (S310). For example, the first preload class list may include a preload class list provided by AOSP of Google TM . The system server and application application generated by Zygot may share the first preload class list.
전자 장치(100)는 복수의 프로세스 별로 임계 횟수를 초과하여 실행된 클래스에 대한 정보가 포함된 프로파일 데이터를 획득할 수 있다(S320). The electronic device 100 may obtain profile data including information about a class executed by exceeding a threshold number of times for each of the plurality of processes ( S320 ).
일 실시 예로, 안드로이드 운영체제는 사용자의 사용 패턴을 프로파일링(profiling)하여 어플리케이션 별로 임계 횟수를 초과하여 사용된 클래스 및 메소드에 대한 정보를 기록할 수 있다. 전자 장치(100)는 안드로이드 운영체제가 기록한 정보를 액세스하여 복수의 프로세스 별로 임계 횟수를 초과하여 실행된 클래스 및 메소드에 대한 정보가 포함된 프로파일 데이터를 획득할 수 있다. 즉, 전자 장치(100)는 시스템 서버 및 응용 어플리케이션 각각의 프로파일 데이터를 획득하여 저장할 수 있다.As an embodiment, the Android operating system may record information on classes and methods used exceeding a threshold number of times for each application by profiling a user's usage pattern. The electronic device 100 may access information recorded by the Android operating system to obtain profile data including information on classes and methods executed exceeding a threshold number of times for each of a plurality of processes. That is, the electronic device 100 may obtain and store profile data of each of the system server and the application application.
전자 장치(100)는 복수의 프로세스 별 프로파일 데이터에 기초하여 복수의 프로세스 각각에 대응되는 제2 프리로드 클래스 목록을 생성할 수 있다(S330).The electronic device 100 may generate a second preload class list corresponding to each of the plurality of processes based on the profile data for each of the plurality of processes ( S330 ).
일 실시예로, 전자 장치(100)는 응용 어플리케이션의 프로파일 데이터에 기초하여 복수의 응용 어플리케이션 별로 공통적으로 임계 횟수를 초과하여 실행된 클래스를 식별할 수 있다. 전자 장치(100)는 식별된 클래스 중 제1 프리로드 클래스 목록에 포함된 클래스를 제외한 나머지 클래스를 이용하여 일반 어플리케이션에 대응되는 제2 프리로드 클래스 목록을 생성할 수 있다.As an embodiment, the electronic device 100 may identify a class that is commonly executed exceeding a threshold number of times for a plurality of application applications based on profile data of the application application. The electronic device 100 may generate the second preload class list corresponding to the general application by using the remaining classes except for the class included in the first preload class list among the identified classes.
또 다른 실시예로, 시스템 서버의 프로파일 데이터에 기초하여 시스템 서버를 실행할 때 임계 횟수를 초과하여 실행된 클래스를 식별할 수 있다. 전자 장치(100)는 식별된 클래스 중 제1 프리로드 클래스 목록에 포함된 클래스를 제외한 나머지 클래스를 이용하여 시스템 서버에 대응되는 제2 프리로드 클래스 목록을 생성할 수 있다.In another embodiment, based on the profile data of the system server, it is possible to identify a class that is executed exceeding a threshold number of times when the system server is executed. The electronic device 100 may generate a second preload class list corresponding to the system server by using the remaining classes except for the class included in the first preload class list among the identified classes.
전자 장치(100)가 부팅되는 동안 복수의 프로세스 중 제1 프로세스가 생성되면, 전자 장치(100)는 제1 프로세스에 대응되는 제2 프리로드 클래스 목록을 프리로드할 수 있다(S340). 즉, 특정 프로세스가 생성되면, 전자 장치(100)는 생성된 프로세스에 대응되는 클래스 목록을 프리로드할 수 있다. 이와 관련된 실시예는 도 4를 참조하여 구체적으로 설명하도록 한다.When a first process among a plurality of processes is generated while the electronic device 100 is booting, the electronic device 100 may preload a second preload class list corresponding to the first process ( S340 ). That is, when a specific process is generated, the electronic device 100 may preload a class list corresponding to the generated process. An embodiment related thereto will be described in detail with reference to FIG. 4 .
도 4는 본 개시의 일 실시예에 따른, 전자 장치(100)가 프로세스 별 클래스 목록을 프리로드하는 방법을 설명하기 위한 순서도이다. 즉, 도 4는, 제2 프리로드 클래스 목록이 생성된 후, 전자 장치(100)가 생성된 클래스 목록을 프로세스 별로 프리로드하는 과정을 설명하기 위한 순서도이다.4 is a flowchart illustrating a method for the electronic device 100 to preload a class list for each process according to an embodiment of the present disclosure. That is, FIG. 4 is a flowchart illustrating a process in which the electronic device 100 preloads the generated class list for each process after the second preload class list is generated.
전자 장치(100)는 전자 장치(100)를 부팅하기 위한 사용자 명령을 입력 받을 수 있다(S410). 예를 들어, 전자 장치(100)는, 전자 장치(100)가 파워 오프(power-off)인 상태에서, 턴 온하기 위한 사용자 명령을 입력 받거나 충전기가 연결될 수 있다. 또한, 전자 장치(100)는, 전자 장치(100)가 파워 온(power-on) 인 상태에서, 재부팅하라는 사용자 명령을 입력 받을 수 있다.The electronic device 100 may receive a user command for booting the electronic device 100 ( S410 ). For example, the electronic device 100 may receive a user command to turn on the electronic device 100 in a power-off state, or a charger may be connected. Also, the electronic device 100 may receive a user command to reboot while the electronic device 100 is in a power-on state.
전자 장치(100)는 부팅하는 과정에서 자이고트를 생성하고 초기화할 수 있다(S420). 자이고트는 생성되고 초기화되는 동안 외부 서버로부터 수신된 제1 프리로드 클래스 목록을 프리로드할 수 있다.The electronic device 100 may create and initialize a gygoth during the booting process ( S420 ). Zygot may preload a first list of preload classes received from an external server while being created and initialized.
자이고트의 초기화가 완료되면, 전자 장치(100)는 자이고트를 통해 시스템 서버를 생성할 수 있다(S430). 자이고트는 포크 함수를 이용하여 시스템 서버를 생성할 수 있다. 그리고, 시스템 서버는 자이고트에 의해 프리로드된 제1 프리로드 클래스 목록을 이용할 수 있다. 시스템 서버는 추후 자이고트에 의해 생성될 응용 어플리케이션 실행을 위한 프로세스와 제1 프리로드 클래스 목록을 공유할 수 있다.When the initialization of the zygote is completed, the electronic device 100 may create a system server through the zygote (S430). Zygot can create system servers using fork functions. And, the system server may use the first preload class list preloaded by Zygot. The system server may share a list of the first preload class with a process for executing an application to be generated by Zygot later.
전자 장치(100)는 시스템 서버에 대응되는 제2 프리로드 클래스 목록을 프리로드할 수 있다(S440). 생성된 시스템 서버가 초기화되기 전, 전자 장치(100)는 시스템 서버에 대응되는 제2 프리로드 클래스 목록을 프리로드할 수 있다. 이 후, 시스템 서버는 초기화 동작을 수행할 수 있으며, 자이고트는 시스템 서버로부터 특정 어플리케이션 실행 요청이 전송되는지 여부를 모니터링할 수 있다.The electronic device 100 may preload the second preload class list corresponding to the system server (S440). Before the generated system server is initialized, the electronic device 100 may preload a second preload class list corresponding to the system server. Thereafter, the system server may perform an initialization operation, and Zygot may monitor whether a specific application execution request is transmitted from the system server.
전자 장치(100)는 시스템 서버에 의해 제1 응용 어플리케이션 실행 요청이 자이고트에 입력되는지 여부를 식별할 수 있다(S450). 시스템 서버는 안드로이드 운영체제 환경 상에서 전자 장치(100)가 구동되기 위한 어플리케이션이 실행되도록 동작할 수 있다. 전자 장치(100)는 시스템 서버가 복수의 응용 어플리케이션 중 제1 응용 어플리케이션의 포크(fork)를 요청하는 신호를 자이고트에 전송하는지 여부를 식별할 수 있다.The electronic device 100 may identify whether the first application execution request is input to the gygot by the system server (S450). The system server may operate to execute an application for driving the electronic device 100 in the Android operating system environment. The electronic device 100 may identify whether the system server transmits a signal requesting a fork of the first application among the plurality of application applications to the gygot.
제1 응용 어플리케이션 실행 요청이 자이코트에 입력된 경우, 전자 장치(100)는 자이고트를 통해 제1 응용 어플리케이션 실행을 위한 프로세스 생성할 수 있다(S460). 자이고트는 포크 함수를 호출하여 제1 응용 어플리케이션을 위한 프로세스를 생성할 수 있다. 생성된 제1 응용 어플리케이션을 위한 프로세스는 자이고트에 의해 프리로드된 제1 프리로드 클래스 목록을 시스템 서버와 공유할 수 있다.When the first application execution request is input to Xykot, the electronic device 100 may generate a process for executing the first application through Xygot (S460). Zygot may call the fork function to create a process for the first application. The process for the generated first application may share the list of the first preload classes preloaded by Zygot with the system server.
전자 장치(100)는 응용 어플리케이션에 대응되는 제2 프리로드 클래스 목록을 프리로드할 수 있다(S470). 전자 장치(100)는, 생성된 프로세스가 제1 응용 어플리케이션으로 특수화(specialization)되기 전, 응용 어플리케이션에 대응되는 제2 프리로드 클래스 목록을 프리로드할 수 있다. 그리고, 전자 장치(100)는 생성된 프로세스를 제1 응용 어플리케이션으로 특수화하여 실행할 수 있다.The electronic device 100 may preload the second preload class list corresponding to the application (S470). The electronic device 100 may preload the second preload class list corresponding to the application application before the generated process is specialized to the first application application. In addition, the electronic device 100 may execute the generated process by specializing it as a first application application.
도 5는 본 개시의 일 실시예에 따른, 전자 장치가 그룹핑된 어플리케이션에 대응되는 프리로드 클래스 목록을 생성 및 프리로드하는 방법을 설명하기 위한 순서도이다.5 is a flowchart illustrating a method of generating and preloading a preload class list corresponding to a grouped application by an electronic device according to an embodiment of the present disclosure;
전자 장치(100)는 기 정의된 기준에 따라 그룹핑(grouping)된 복수의 응용 어플리케이션 별로 실행된 클래스 중 공통적으로 임계 횟수를 초과하여 실행된 클래스를 식별할 수 있다(S510). The electronic device 100 may identify a class executed by exceeding a threshold number of times among classes executed by a plurality of application applications grouped according to a predefined criterion ( S510 ).
예로, 전자 장치(100)는 안드로이드 운영체제에서 제공하는 기능을 이용하여 그룹핑된 복수의 어플리케이션 별로 임계 횟수를 초과하여 실행(또는, 사용)한 클래스에 대한 정보를 획득할 수 있다. 전자 장치(100)는 안드로이드 운영체제를 통해 획득된 정보에 기초하여 그룹핑된 복수의 어플리케이션이 공통적으로 임계 횟수를 초과하여 실행한 클래스를 식별할 수 있다.For example, the electronic device 100 may obtain information about a class executed (or used) exceeding a threshold number of times for a plurality of grouped applications by using a function provided by the Android operating system. The electronic device 100 may identify a class in which a plurality of grouped applications are commonly executed exceeding a threshold number based on information obtained through the Android operating system.
이 때, 복수의 어플리케이션은 다양한 기준에 따라 그룹핑될 수 있다. 예를 들어, 어플리케이션 스토어를 통해 온라인으로 배포된 어플리케이션 중 다운로드 수가 기 설정된 값 이상인 적어도 하나의 어플리케이션이 그룹핑될 수 있다. 또 다른 예로, 전자 장치(100)에 설치된 어플리케이션 중 기 설정된 횟수를 초과하여 실행한 어플리케이션이 그룹핑될 수 있다. 다만, 이는 일 실시예에 불과하며, 기 정의된 기준은 다양하게 설정될 수 있으며, 사용자에 의해 변경될 수 있음은 물론이다.In this case, the plurality of applications may be grouped according to various criteria. For example, among applications distributed online through an application store, at least one application in which the number of downloads is equal to or greater than a preset value may be grouped. As another example, among applications installed in the electronic device 100 , applications that have been executed exceeding a preset number of times may be grouped. However, this is only an example, and the predefined criteria may be set in various ways and may be changed by a user, of course.
전자 장치(100)는 그룹핑된 복수의 응용 어플리케이션이 공통적으로 임계 횟수를 초과하여 실행한 클래스 중 제1 프리로드 클래스 목록을 제외한 나머지 클래스를 이용하여 그룹핑된 복수의 어플리케이션에 대응되는 제3 프리로드 클래스 목록을 생성하고 저장할 수 있다(S520). 제3 프리로드 클래스 목록은 텍스트 파일 형태로 전자 장치(100)에 저장될 수 있으나, 이에 국한되는 것은 아니며 다른 파일 형태로 저장될 수 있음은 물론이다.The electronic device 100 sets the third preload class corresponding to the grouped plurality of applications by using the remaining classes except for the first preload class list among the classes in which the grouped plurality of application applications are commonly executed exceeding the threshold number of times. A list may be created and stored (S520). The third preload class list may be stored in the electronic device 100 in the form of a text file, but is not limited thereto and may be stored in the form of another file.
이후, 전자 장치(100)를 부팅하기 위한 사용자 명령이 입력되면, 전자 장치(100)는 부팅하는 동안 자이고트를 생성하고 초기화할 수 있다. 그리고, 전자 장치(100)는 자이고트를 통해 시스템 서버를 생성하고, 시스템 서버에 대응되는 제2 프리로드 클래스 목록을 프리로드할 수 있다. 이와 관련된 실시예는 도 4의 S410 내지 S440를 참조하여 설명하였으므로 중복되는 설명은 생략하도록 한다.Thereafter, when a user command for booting the electronic device 100 is input, the electronic device 100 may create and initialize a gygoth during booting. In addition, the electronic device 100 may create a system server through zygote and preload a second preload class list corresponding to the system server. Since the embodiment related to this has been described with reference to S410 to S440 of FIG. 4 , a redundant description will be omitted.
전자 장치(100)는 시스템 서버가 그룹핑된 복수의 어플리케이션 중 제2 응용 어플리케이션에 대한 실행 요청이 자이고트에 입력되는지 여부를 식별할 수 있다(S530). 시스템 서버에 의해 그룹핑된 복수의 어플리케이션 중 제2 응용 어플리케이션의 포크(fork) 요청이 자이고트에 입력된 경우, 전자 장치(100)는 자이고트를 통해 제2 응용 어플리케이션 실행을 위한 프로세스를 생성할 수 있다(S540). 전자 장치(100)는, 생성된 프로세스가 제2 응용 어플리케이션으로 특소화되기 전, 그룹핑된 복수의 응용 어플리케이션에 대응되는 제3 프리로드 클래스 목록을 프리로드할 수 있다(S550).The electronic device 100 may identify whether the execution request for the second application among the plurality of grouped applications is input to the gygot by the system server ( S530 ). When a fork request of a second application among a plurality of applications grouped by the system server is input to Zygot, the electronic device 100 may generate a process for executing the second application through Zygot. There is (S540). The electronic device 100 may preload the third preload class list corresponding to the grouped plurality of application applications before the generated process is specialized to the second application application ( S550 ).
한편, 상술한 본 개시의 다양한 실시 예들에 따른 방법들은, 기존 전자 장치에 설치 가능한 어플리케이션 형태로 구현될 수 있다. 또한, 상술한 본 개시의 다양한 실시 예들에 따른 방법들은, 기존 전자 장치에 대한 소프트웨어 업그레이드, 또는 하드웨어 업그레이드 만으로도 구현될 수 있다. Meanwhile, the above-described methods according to various embodiments of the present disclosure may be implemented in the form of an application that can be installed in an existing electronic device. In addition, the above-described methods according to various embodiments of the present disclosure may be implemented only by software upgrade or hardware upgrade of an existing electronic device.
또한, 상술한 본 개시의 다양한 실시 예들은 전자 장치에 구비된 임베디드 서버, 또는 전자 장치 및 디스플레이 장치 중 적어도 하나의 외부 서버를 통해 수행되는 것도 가능하다. In addition, various embodiments of the present disclosure described above may be performed through an embedded server provided in an electronic device, or an external server of at least one of an electronic device and a display device.
한편, 본 개시의 일시 예에 따르면, 이상에서 설명된 다양한 실시 예들은 기기(machine)(예: 컴퓨터)로 읽을 수 있는 저장 매체(machine-readable storage media)에 저장된 명령어를 포함하는 소프트웨어로 구현될 수 있다. 기기는, 저장 매체로부터 저장된 명령어를 호출하고, 호출된 명령어에 따라 동작이 가능한 장치로서, 개시된 실시 예들에 따른 전자 장치를 포함할 수 있다. 명령이 프로세서에 의해 실행될 경우, 프로세서가 직접, 또는 프로세서의 제어 하에 다른 구성요소들을 이용하여 명령에 해당하는 기능을 수행할 수 있다. 명령은 컴파일러 또는 인터프리터에 의해 생성 또는 실행되는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, '비일시적 저장 매체'는 신호(signal)를 포함하지 않으며 실재(tangible)한다는 것을 의미할 뿐 데이터가 저장 매체에 반영구적 또는 임시적으로 저장됨을 구분하지 않는다. 예로, '비일시적 저장매체'는 데이터가 임시적으로 저장되는 버퍼를 포함할 수 있다.Meanwhile, according to a temporary example of the present disclosure, the various embodiments described above may be implemented as software including instructions stored in a machine-readable storage media readable by a machine (eg, a computer). can A device is a device capable of calling a stored command from a storage medium and operating according to the called command, and may include the electronic device according to the disclosed embodiments. When the instruction is executed by the processor, the processor may perform a function corresponding to the instruction by using other components directly or under the control of the processor. Instructions may include code generated or executed by a compiler or interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, the 'non-transitory storage medium' does not include a signal and only means that it is tangible and does not distinguish that data is semi-permanently or temporarily stored in the storage medium. For example, the 'non-transitory storage medium' may include a buffer in which data is temporarily stored.
또한, 일 실시 예에 따르면, 본 개시에 개시된 다양한 실시 예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory (CD-ROM))의 형태로, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 온라인으로 배포될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품(예로, 다운로더블 앱(downloadable app))의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.Also, according to an embodiment, the method according to various embodiments disclosed in the present disclosure may be provided by being included in a computer program product. Computer program products may be traded between sellers and buyers as commodities. The computer program product may be distributed in the form of a machine-readable storage medium (eg, compact disc read only memory (CD-ROM)) or online through an application store (eg, Play Store™). In the case of online distribution, at least a portion of the computer program product (eg, a downloadable app) is at least temporarily stored in a storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server, or temporarily can be created with
또한, 상술한 다양한 실시 예들에 따른 구성 요소(예: 모듈 또는 프로그램) 각각은 단수 또는 복수의 개체로 구성될 수 있으며, 전술한 해당 서브 구성 요소들 중 일부 서브 구성 요소가 생략되거나, 또는 다른 서브 구성 요소가 다양한 실시 예에 더 포함될 수 있다. 대체적으로 또는 추가적으로, 일부 구성 요소들(예: 모듈 또는 프로그램)은 하나의 개체로 통합되어, 통합되기 이전의 각각의 해당 구성 요소에 의해 수행되는 기능을 동일 또는 유사하게 수행할 수 있다. 다양한 실시 예들에 따른, 모듈, 프로그램 또는 다른 구성 요소에 의해 수행되는 동작들은 순차적, 병렬적, 반복적 또는 휴리스틱하게 실행되거나, 적어도 일부 동작이 다른 순서로 실행되거나, 생략되거나, 또는 다른 동작이 추가될 수 있다.In addition, each of the components (eg, a module or a program) according to the above-described various embodiments may be composed of a single or a plurality of entities, and some sub-components of the aforementioned sub-components may be omitted, or other sub-components may be omitted. Components may be further included in various embodiments. Alternatively or additionally, some components (eg, a module or a program) may be integrated into a single entity to perform the same or similar functions performed by each corresponding component prior to integration. According to various embodiments, operations performed by a module, program, or other component may be sequentially, parallel, repetitively or heuristically executed, or at least some operations may be executed in a different order, omitted, or other operations may be added. can
이상에서는 본 개시의 바람직한 실시 예에 대하여 도시하고 설명하였지만, 본 개시는 상술한 특정의 실시 예에 한정되지 아니하며, 청구범위에서 청구하는 본 개시의 요지를 벗어남이 없이 당해 개시에 속하는 기술분야에서 통상의 지식을 가진 자에 의해 다양한 변형 실시가 가능한 것은 물론이고, 이러한 변형실시들은 본 개시의 기술적 사상이나 전망으로부터 개별적으로 이해되어져서는 안 될 것이다.In the above, preferred embodiments of the present disclosure have been illustrated and described, but the present disclosure is not limited to the specific embodiments described above, and is commonly used in the technical field pertaining to the present disclosure without departing from the gist of the present disclosure as claimed in the claims. Various modifications may be made by those having the knowledge of

Claims (15)

  1. 전자 장치에 있어서,In an electronic device,
    회로를 포함하는 통신 모듈;a communication module including circuitry;
    메모리; 및Memory; and
    복수의 프로세스 별로 임계 횟수를 초과하여 실행된 클래스(class)에 대한 정보가 포함된 프로파일(profile) 데이터를 획득하여 상기 메모리에 저장하고,Obtaining profile data including information on a class executed by exceeding the threshold number of times for each process and storing it in the memory,
    상기 저장된 복수의 프로세스 별 프로파일 데이터에 기초하여 상기 복수의 프로세스 각각에 대응되는 제2 프리로드 클래스 목록을 생성하는 프로세서;를 포함하고,A processor for generating a second preload class list corresponding to each of the plurality of processes based on the stored profile data for each of the plurality of processes;
    상기 프로세서는,The processor is
    상기 전자 장치가 부팅되는 동안 상기 복수의 프로세스 중 제1 프로세스가 생성되면, 상기 제1 프로세스에 대응되는 제2 프리로드 클래스 목록을 프리로드하는 전자 장치.When a first process among the plurality of processes is generated while the electronic device is booting, a second preload class list corresponding to the first process is preloaded.
  2. 제1항에 있어서,According to claim 1,
    상기 복수의 프로세스는,The plurality of processes are
    시스템 서버(system_server) 및 응용 어플리케이션이 포함되고,The system server (system_server) and application applications are included,
    상기 프로세서는,The processor is
    상기 시스템 서버 및 상기 응용 어플리케이션 각각의 프로파일 데이터를 획득하여 상기 메모리에 저장하는 전자 장치.An electronic device for acquiring profile data of each of the system server and the application application and storing the profile data in the memory.
  3. 제2항에 있어서,3. The method of claim 2,
    상기 프로세서는,The processor is
    상기 응용 어플리케이션의 프로파일 데이터에 기초하여 상기 응용 어플리케이션이 공통적으로 상기 임계 횟수를 초과하여 실행한 클래스를 식별하고,Based on the profile data of the application, the application commonly identifies a class that exceeds the threshold number of times,
    상기 식별된 클래스에 기초하여 상기 응용 어플리케이션에 대응되는 제2 프리로드 클래스 목록을 생성하는 전자 장치.An electronic device generating a second preload class list corresponding to the application application based on the identified class.
  4. 제3항에 있어서,4. The method of claim 3,
    상기 프로세서는,The processor is
    상기 식별된 클래스 중 제1 프리로드 클래스 목록에 포함된 클래스를 제외한 나머지 클래스에 기초하여 상기 응용 어플리케이션에 대응되는 제2 프리로드 클래스 목록을 생성하는 전자 장치.The electronic device generates a second preload class list corresponding to the application application based on the remaining classes except for the classes included in the first preload class list among the identified classes.
  5. 제2항에 있어서,3. The method of claim 2,
    상기 프로세서는,The processor is
    상기 전자 장치를 부팅하기 위한 사용자 명령이 입력되면, 상기 전자 장치를 부팅하는 동안 자이고트(zygote)를 생성하고,When a user command for booting the electronic device is input, a zygote is generated while the electronic device is booted,
    상기 자이고트를 통해 상기 제1 프로세스인 시스템 서버(system_server)가 생성되면, 상기 시스템 서버에 대응되는 제2 프리로드 클래스 목록을 프리로드하는 전자 장치.When a system server (system_server), which is the first process, is generated through the gygot, the electronic device preloads a second preload class list corresponding to the system server.
  6. 제5항에 있어서,6. The method of claim 5,
    상기 프로세서는,The processor is
    상기 시스템 서버에 의해 제1 응용 어플리케이션 실행 요청 신호가 상기 자이고트에 입력되면, 상기 자이고트를 통해 상기 제1 응용 어플리케이션 실행을 위한 프로세스를 생성하고,When a first application execution request signal is input to the zygote by the system server, a process for executing the first application application is generated through the zygote,
    상기 응용 어플리케이션에 대응되는 제2 프리로드 클래스 목록을 프리로드하는 전자 장치.An electronic device preloading a second preload class list corresponding to the application application.
  7. 제2항에 있어서,3. The method of claim 2,
    상기 프로세서는,The processor is
    기 정의된 기준에 따라 그룹핑된 복수의 응용 어플리케이션이 공통적으로 상기 임계 횟수를 초과하여 실행한 클래스를 식별하고,Identifies a class in which a plurality of application applications grouped according to a predefined criterion are commonly executed exceeding the threshold number,
    상기 식별된 클래스 중 제1 프리로드 클래스 목록을 제외한 나머지를 이용하여 상기 그룹핑된 복수의 어플리케이션에 대응되는 제3 프리로드 클래스 목록을 생성하는 전자 장치.The electronic device generates a third preload class list corresponding to the grouped plurality of applications by using the remainder of the identified classes except for the first preload class list.
  8. 제7항에 있어서,8. The method of claim 7,
    상기 프로세서는,The processor is
    상기 시스템 서버가 상기 그룹핑된 복수의 어플리케이션 중 제2 응용 어플리케이션에 대한 실행 요청을 자이고트에 입력하면, 상기 자이고트를 통해 상기 제2 응용 어플리케이션 실행을 위한 프로세스를 생성하고,When the system server inputs an execution request for a second application from among the grouped plurality of applications to the zygote, a process for executing the second application is generated through the zygote,
    상기 제3 프리로드 클래스 목록을 프리로드하는 전자 장치.An electronic device preloading the third preload class list.
  9. 제2항에 있어서,3. The method of claim 2,
    상기 프로세서는,The processor is
    외부 서버로부터 제1 프리로드 클래스 목록을 상기 통신 모듈을 통해 수신하여 상기 메모리에 저장하고,Receive a first preload class list from an external server through the communication module and store it in the memory,
    상기 시스템 서버 및 상기 응용 어플리케이션은 상기 제1 프리로드 클래스 목록을 공유하는 것을 특징으로 하는 전자 장치.The electronic device, characterized in that the system server and the application application share the list of the first preload class.
  10. 전자 장치의 제어 방법에 있어서,A method for controlling an electronic device, comprising:
    복수의 프로세스 별로 임계 횟수를 초과하여 실행된 클래스에 대한 정보가 포함된 프로파일 데이터를 획득하여 저장하는 단계:Acquiring and storing profile data including information on classes executed exceeding a threshold number of times for each process:
    상기 저장된 복수의 프로세스 별 프로파일 데이터에 기초하여 상기 복수의 프로세스 각각에 대응되는 제2 프리로드 클래스 목록을 생성하는 단계; 및generating a second preload class list corresponding to each of the plurality of processes based on the stored profile data for each of the plurality of processes; and
    상기 전자 장치가 부팅되는 동안 상기 복수의 프로세스 중 제1 프로세스가 생성되면, 상기 제1 프로세스에 대응되는 제2 프리로드 클래스 목록을 프리로드하는 단계;를 포함하는 제어 방법.and preloading a second preload class list corresponding to the first process when a first process among the plurality of processes is generated while the electronic device is booting.
  11. 제10항에 있어서,11. The method of claim 10,
    상기 복수의 프로세스는,The plurality of processes are
    시스템 서버(system_server) 및 응용 어플리케이션이 포함되고,The system server (system_server) and application applications are included,
    상기 프로파일 데이터를 획득하여 저장하는 단계는,The step of acquiring and storing the profile data includes:
    상기 시스템 서버 및 상기 응용 어플리케이션 각각의 프로파일 데이터를 획득하여 저장하는 단계;를 포함하는 제어 방법.Control method comprising a; acquiring and storing the profile data of each of the system server and the application application.
  12. 제11항에 있어서,12. The method of claim 11,
    상기 생성하는 단계는,The generating step is
    상기 응용 어플리케이션의 프로파일 데이터에 기초하여 상기 응용 어플리케이션이 공통적으로 상기 임계 횟수를 초과하여 실행된 클래스를 식별하는 단계; 및identifying a class in which the application application is commonly executed exceeding the threshold number based on the profile data of the application application; and
    상기 식별된 클래스에 기초하여 상기 응용 어플리케이션에 대응되는 제2 프리로드 클래스 목록을 생성하는 단계;를 포함하는 제어 방법.A control method comprising a; generating a second preload class list corresponding to the application based on the identified class.
  13. 제12항에 있어서,13. The method of claim 12,
    상기 생성하는 단계는,The generating step is
    상기 식별된 클래스 중 제1 프리로드 클래스 목록에 포함된 클래스를 제외한 나머지 클래스에 기초하여 상기 응용 어플리케이션에 대응되는 제2 프리로드 클래스 목록을 생성하는 단계;를 포함하는 제어 방법.and generating a second preload class list corresponding to the application application based on the remaining classes except for the classes included in the first preload class list among the identified classes.
  14. 제11항에 있어서,12. The method of claim 11,
    상기 프리로드하는 단계는,The preloading step is
    상기 전자 장치를 부팅하기 위한 사용자 명령이 입력되면, 상기 전자 장치를 부팅하는 동안 자이고트를 생성하는 단계; 및generating a gygote while booting the electronic device when a user command for booting the electronic device is input; and
    상기 자이고트를 통해 상기 제1 프로세스인 시스템 서버가 생성되면, 상기 시스템 서버에 대응되는 제2 프리로드 클래스 목록을 프리로드하는 단계;를 포함하는 제어 방법.and preloading a second preload class list corresponding to the system server when the system server, which is the first process, is generated through the zygote.
  15. 제14항에 있어서,15. The method of claim 14,
    상기 프리로드하는 단계는,The preloading step is
    상기 시스템 서버에 의해 제1 응용 어플리케이션 실행 요청 신호가 상기 자이고트에 입력되면, 상기 자이고트를 통해 상기 제1 응용 어플리케이션 실행을 위한 프로세스를 생성하는 단계; 및generating a process for executing the first application through the gygot when a first application execution request signal is input to the gygot by the system server; and
    상기 응용 어플리케이션에 대응되는 제2 프리로드 클래스 목록을 프리로드하는 단계;를 포함하는 제어 방법.and preloading a second preload class list corresponding to the application application.
PCT/KR2021/003940 2021-01-28 2021-03-30 Electronic device and control method therefor WO2022163907A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR10-2021-0012358 2021-01-28
KR1020210012358A KR20220109093A (en) 2021-01-28 2021-01-28 Electronic device and method for controlling thereof

Publications (1)

Publication Number Publication Date
WO2022163907A1 true WO2022163907A1 (en) 2022-08-04

Family

ID=82654707

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2021/003940 WO2022163907A1 (en) 2021-01-28 2021-03-30 Electronic device and control method therefor

Country Status (2)

Country Link
KR (1) KR20220109093A (en)
WO (1) WO2022163907A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003316584A (en) * 2002-04-24 2003-11-07 Matsushita Electric Ind Co Ltd Device and method for generating/updating preload class
JP2006350489A (en) * 2005-06-14 2006-12-28 Renesas Technology Corp Program control method
US20080229299A1 (en) * 2004-08-19 2008-09-18 International Business Machines Corporation Adaptive class loading
KR20170030515A (en) * 2014-07-10 2017-03-17 하만인터내셔날인더스트리스인코포레이티드 Operating system startup acceleration
KR20190021726A (en) * 2017-08-23 2019-03-06 삼성전자주식회사 Operation method of operating system and electronic device supporting the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003316584A (en) * 2002-04-24 2003-11-07 Matsushita Electric Ind Co Ltd Device and method for generating/updating preload class
US20080229299A1 (en) * 2004-08-19 2008-09-18 International Business Machines Corporation Adaptive class loading
JP2006350489A (en) * 2005-06-14 2006-12-28 Renesas Technology Corp Program control method
KR20170030515A (en) * 2014-07-10 2017-03-17 하만인터내셔날인더스트리스인코포레이티드 Operating system startup acceleration
KR20190021726A (en) * 2017-08-23 2019-03-06 삼성전자주식회사 Operation method of operating system and electronic device supporting the same

Also Published As

Publication number Publication date
KR20220109093A (en) 2022-08-04

Similar Documents

Publication Publication Date Title
WO2021075786A1 (en) Electronic device and method of processing pop-up window using multi-window thereof
WO2021075905A1 (en) Application optimization method and electronic device supporting the same
WO2022255652A1 (en) Method for updating application and electronic device therefor
WO2022149771A1 (en) Electronic device and memory management method using same
WO2022163907A1 (en) Electronic device and control method therefor
WO2022030890A1 (en) Multi-window image capturing method and electronic device therefor
WO2022149970A1 (en) Service operation method and electronic device supporting same
WO2022191378A1 (en) Electronic device for providing service and method for operating same
WO2022025505A1 (en) Electronic device for providing data moving service, and method therefor
WO2024063516A1 (en) Customizing software provision device and method
WO2022114648A1 (en) Electronic device for setting background screen and operating method therefor
WO2022234984A1 (en) Electronic device and method for operating electronic device
WO2023287057A1 (en) Electronic device for quickly updating screen when input is received from peripheral device
WO2022220551A1 (en) Electronic device providing multi-connection control method using usb type-c connection terminal, and method for operating same
WO2022071665A1 (en) Electronic device for synchronizing call waiting function in network environment, and method related thereto
WO2022191455A1 (en) Electronic device for performing file redaction, and operation method thereof
WO2022154271A1 (en) Electronic device for performing test for detecting fault of electronic device, and method by which electronic device performs test for detecting fault of electronic device
WO2022154383A1 (en) Electronic device and method for loading kernel module of electronic device
WO2022098004A1 (en) Electronic device for transmitting data through communication connection, and operation method thereof
WO2022154163A1 (en) Electronic device and method for managing memory of electronic device
WO2023075153A1 (en) Electronic device and method for controlling antenna device by using configuration pin for identifying communication module
WO2023080625A1 (en) Electronic device for adjusting driving voltage of volatile memory, and operating method therefor
WO2023068734A1 (en) Electronic device for communicating with wearable device, and control method therefor
WO2022075621A1 (en) Electronic device, and electronic device operation method
WO2022203271A1 (en) Electronic device and customized temperature compensation method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21923339

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21923339

Country of ref document: EP

Kind code of ref document: A1