WO2023167438A1 - 시스템의 성능 병목 현상을 처리하는 전자 장치 및 그 동작 방법 - Google Patents

시스템의 성능 병목 현상을 처리하는 전자 장치 및 그 동작 방법 Download PDF

Info

Publication number
WO2023167438A1
WO2023167438A1 PCT/KR2023/001552 KR2023001552W WO2023167438A1 WO 2023167438 A1 WO2023167438 A1 WO 2023167438A1 KR 2023001552 W KR2023001552 W KR 2023001552W WO 2023167438 A1 WO2023167438 A1 WO 2023167438A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
task
predetermined task
threshold time
processor
Prior art date
Application number
PCT/KR2023/001552
Other languages
English (en)
French (fr)
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
Priority claimed from KR1020220044056A external-priority patent/KR20230130493A/ko
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to US18/178,910 priority Critical patent/US20230281036A1/en
Publication of WO2023167438A1 publication Critical patent/WO2023167438A1/ko

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • 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/30Arrangements for executing machine instructions, e.g. instruction decode
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]

Definitions

  • Various embodiments of the present disclosure relate to an electronic device and an operating method thereof for handling a performance bottleneck of a system.
  • a performance bottleneck in a multiprocessor computing system is that several threads in the system compete for limited resources such as memory, I/O (input/output) devices, and networks, causing a delay in a specific thread, which degrades system performance. may be a phenomenon.
  • the thread where the delay occurs is a thread related to UI (user interface)
  • UI user interface
  • the causes of system performance bottlenecks can be diverse, such as lack of resources, contention for shared resources, resource monopolization, misconfiguration of resources, or misbehavior of resources.
  • An aspect of the present disclosure is to address at least the aforementioned problems and/or disadvantages and provide at least the advantages described below. According to one aspect disclosed in this document, it is possible to provide a technique for effectively removing the bottleneck by detecting the bottleneck in real time before the performance bottleneck of the system is terminated and dynamically controlling resources.
  • An electronic device includes at least one processor and a memory including at least one instruction executable by the processor.
  • the processor determines with a timer whether or not a predetermined threshold time arrives for the predetermined task from the time corresponding to the start of the predetermined task, and the predetermined task is performed before the critical time arrives. In response to this termination, it is possible to stop determining whether a threshold time has arrived, and to control one or more resources for performing a task in response to a case where a threshold time has arrived before a predetermined task ends. .
  • the operation method includes an operation of determining with a timer whether a predetermined threshold time arrives in a predetermined task from a time point corresponding to the start of a predetermined task, in response to a case in which the predetermined task is terminated before the threshold time arrives, It may include an operation of stopping determining whether the predetermined task has arrived and an operation of controlling one or more resources for performing the predetermined task in response to a case in which a threshold time has arrived before the predetermined task ends.
  • a timer in a software module that is distinct from one or more threads in which the operation of an actual electronic device is performed repeatedly expires a reference time of a predetermined length regardless of the start or end of a task, thereby operating as a performance bottleneck. It is possible to detect a bottleneck section in real time before the phenomenon ends and preemptively allocate necessary resources to minimize a delay experienced by a user and improve the performance of an electronic device. Through this, even when the performance bottleneck occurs continuously or instantaneously, it is possible to quickly and effectively improve the performance bottleneck.
  • the bottleneck state can be quickly identified in the on-device and system resources can be dynamically allocated, thereby improving the system bottleneck state.
  • FIG. 1 shows a block diagram of an electronic device in a network environment according to an embodiment of the present disclosure.
  • FIG. 2 is a block diagram 200 illustrating a program 140 according to one embodiment of the present disclosure.
  • FIG. 3 is a diagram for explaining an operation of determining a delay according to an embodiment of the present disclosure.
  • FIG. 4 is a sequence diagram illustrating a delay determination operation according to an embodiment of the present disclosure.
  • FIG. 5 is a diagram for explaining an operation of transmitting an event to a software module according to an embodiment of the present disclosure.
  • FIG. 6 is a diagram illustrating an operating method of an electronic device according to an embodiment of the present disclosure.
  • FIG. 7 is a diagram illustrating an electronic device according to an embodiment of the present disclosure.
  • FIG. 1 shows a block diagram of an electronic device in a network environment according to an embodiment of the present disclosure.
  • an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or through a second network 199. It may communicate with at least one of the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to one embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 .
  • the electronic device 101 includes a processor 120, a memory 130, an input module 150, an audio output module 155, a display module 160, an audio module 170, a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or the antenna module 197 may be included.
  • at least one of these components eg, the connection terminal 178) may be omitted or one or more other components may be added.
  • some of these components eg, sensor module 176, camera module 180, or antenna module 197) are integrated into a single component (eg, display module 160). It can be.
  • the processor 120 for example, executes software (eg, the program 140) to cause at least one other component (eg, hardware or software component) of the electronic device 101 connected to the processor 120. It can control and perform various data processing or calculations. According to one embodiment, as at least part of data processing or operation, the processor 120 transfers instructions or data received from other components (e.g., sensor module 176 or communication module 190) to volatile memory 132. , processing commands or data stored in the volatile memory 132 , and storing resultant data in the non-volatile memory 134 .
  • software eg, the program 140
  • the processor 120 transfers instructions or data received from other components (e.g., sensor module 176 or communication module 190) to volatile memory 132. , processing commands or data stored in the volatile memory 132 , and storing resultant data in the non-volatile memory 134 .
  • the processor 120 may include a main processor 121 (eg, a central processing unit or an application processor) or a secondary processor 123 (eg, a graphics processing unit (GPU) that may operate independently of or in conjunction with the main processor 121). unit), a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor).
  • a main processor 121 eg, a central processing unit or an application processor
  • a secondary processor 123 eg, a graphics processing unit (GPU) that may operate independently of or in conjunction with the main processor 121). unit), a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor.
  • the auxiliary processor 123 may use less power than the main processor 121 or be set to be specialized for a designated function.
  • the secondary processor 123 may be implemented separately from or as part of the main processor 121 .
  • the secondary processor 123 may, for example, take the place of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or the main processor 121 is active (eg, running an application). ) state, together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display module 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states.
  • the auxiliary processor 123 eg, image signal processor or communication processor
  • the auxiliary processor 123 may include a hardware structure specialized for processing an artificial intelligence model.
  • AI models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself where 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 foregoing, but is not limited to the foregoing examples.
  • the artificial intelligence model may include, in addition or alternatively, software structures in addition to hardware structures.
  • the memory 130 may store various data used by at least one component (eg, the processor 120 or the sensor module 176) of the electronic device 101 .
  • the data may include, for example, input data or output data for software (eg, program 140) and commands related thereto.
  • the memory 130 may include volatile memory 132 or non-volatile memory 134 .
  • the program 140 may be stored as software in the memory 130 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 by a component (eg, the processor 120) of the electronic device 101 from the outside of the electronic device 101 (eg, a user).
  • 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 sound signals to the outside of the electronic device 101 .
  • 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.
  • a receiver may be used to receive an incoming call. According to one embodiment, the receiver may be implemented separately from the speaker or as part of it.
  • the display module 160 may visually provide information to the outside of the electronic device 101 (eg, a user).
  • the display module 160 may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the device.
  • the display module 160 may include a touch sensor set to detect a touch or a pressure sensor set to measure the intensity of force generated by the touch.
  • the audio module 170 may convert sound into an electrical signal or vice versa. According to one embodiment, the audio module 170 acquires sound through the input module 150, the sound output module 155, or an external electronic device connected directly or wirelessly to the electronic device 101 (eg: Sound may be output through the electronic device 102 (eg, a speaker or a headphone).
  • the audio module 170 acquires sound through the input module 150, the sound output module 155, or an external electronic device connected directly or wirelessly to the electronic device 101 (eg: Sound may be output through the electronic device 102 (eg, a speaker or a headphone).
  • the sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, a user state), and generates an electrical signal or data value corresponding to the detected state. can do.
  • the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a bio sensor, It may include a temperature sensor, humidity sensor, or light sensor.
  • the interface 177 may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device 101 to 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.
  • HDMI high definition multimedia interface
  • USB universal serial bus
  • SD card interface Secure Digital Card interface
  • audio interface audio interface
  • connection terminal 178 may include a connector through which the electronic device 101 may 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 electrical signals into mechanical stimuli (eg, vibration or motion) or electrical stimuli that a user may perceive through tactile or kinesthetic senses.
  • 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 one 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 101 .
  • the power management module 188 may be implemented as at least part of a power management integrated circuit (PMIC), for example.
  • PMIC power management integrated circuit
  • the battery 189 may supply power to at least one component of the electronic device 101 .
  • the battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
  • the communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). Establishment and communication through the established communication channel may be supported.
  • the communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication.
  • the communication module 190 is a wireless communication module 192 (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 194 (eg, : a local area network (LAN) communication module or a power line communication module).
  • a wireless communication module 192 eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module
  • GNSS global navigation satellite system
  • wired communication module 194 eg, : a local area network (LAN) communication module or a power line communication module.
  • a corresponding communication module 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 fifth generation (5G) network, a next-generation communication network, the Internet, or a telecommunication network such as a computer network (eg, LAN or WAN).
  • 5G fifth generation
  • next-generation communication network eg, the Internet
  • a telecommunication network such as a computer network (eg, LAN or WAN).
  • These various types of communication modules may be integrated as one component (eg, a single chip) or implemented as a plurality of separate components (eg, multiple chips).
  • the wireless communication module 192 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 101 may be identified or authenticated.
  • the wireless communication module 192 may support a 5G network after a fourth generation (4G) network and a next-generation communication technology, for example, a new radio access technology (NR access technology).
  • NR access technologies include high-speed transmission of high-capacity data (enhanced mobile broadband (eMBB)), minimization of terminal power and access of multiple terminals (massive machine type communications (mMTC)), or high reliability and low latency (ultra-reliable and low latency (URLLC)). -latency communications)) can be supported.
  • the wireless communication module 192 may support a high frequency band (eg, a millimeter wave (mmWave) band) in order to achieve a high data rate, for example.
  • mmWave millimeter wave
  • the wireless communication module 192 uses various technologies for securing performance in a high frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), and full-dimensional multiplexing. Technologies such as input/output (FD-MIMO: full dimensional MIMO), array antenna, analog beam-forming, or large scale antenna may be supported.
  • the wireless communication module 192 may support various requirements defined for the electronic device 101, an external electronic device (eg, the electronic device 104), or a network system (eg, the second network 199).
  • the wireless communication module 192 is a peak data rate for eMBB realization (eg, 20 Gbps or more), a loss coverage for mMTC realization (eg, 164 dB or less), or a U-plane latency for URLLC realization (eg, Example: downlink (DL) and uplink (UL) each of 0.5 ms or less, or round trip 1 ms or less) may be supported.
  • eMBB peak data rate for eMBB realization
  • a loss coverage for mMTC realization eg, 164 dB or less
  • U-plane latency for URLLC realization eg, Example: downlink (DL) and uplink (UL) each of 0.5 ms or less, or round trip 1 ms or less
  • the antenna module 197 may transmit or receive signals or power to the outside (eg, an external electronic device).
  • the antenna module 197 may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (eg, PCB).
  • 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 selected from the plurality of antennas by the communication module 190, for example. can be chosen A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna.
  • other components eg, a radio frequency integrated circuit (RFIC) may be additionally formed as a part of the antenna module 197 in addition to the radiator.
  • RFIC radio frequency integrated circuit
  • the antenna module 197 may form a mmWave antenna module.
  • the mmWave antenna module includes a printed circuit board, an RFIC disposed on or adjacent to a first surface (eg, a lower surface) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, array antennas) disposed on or adjacent to a second surface (eg, a top surface or a side surface) 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)
  • signal e.g. commands or data
  • commands or data may be transmitted or received between the electronic device 101 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 101 .
  • all or part of operations executed in the electronic device 101 may be executed in one or more external electronic devices among the external electronic devices 102 , 104 , or 108 .
  • the electronic device 101 when the electronic device 101 needs to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device 101 instead of executing the function or service by itself.
  • one or more external electronic devices may be requested to perform the function or at least part of the service.
  • One or more external electronic devices receiving 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 deliver the execution result to the electronic device 101 .
  • the electronic device 101 may provide the result as at least part of a response to the request as it is or additionally processed.
  • cloud computing distributed computing, mobile edge computing (MEC), or client-server computing technology may be used.
  • the electronic device 101 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.
  • Server 108 may be an intelligent server using machine learning and/or neural networks. According to one embodiment, the external electronic device 104 or server 108 may be included in the second network 199 .
  • the electronic device 101 may be applied to intelligent services (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.
  • FIG. 2 is a block diagram illustrating a program according to one embodiment of the present disclosure.
  • a program 140 includes an operating system 142, middleware 144, or an application 146 executable in the operating system 142 for controlling one or more resources of an electronic device 101.
  • the operating system 142 may include, for example, Android TM , iOS TM , Windows TM , Symbian TM , Tizen TM , or Bada TM .
  • At least some of the programs 140 are, for example, preloaded in the electronic device 101 at the time of manufacture, or when used by a user, an external electronic device (eg, the electronic device 102 or 104), or a server ( 108)) can be downloaded or updated.
  • the operating system 142 may control management (eg, allocation or reclamation) of one or more system resources (eg, process, memory, or power) of the electronic device 101 .
  • Operating system 142 may additionally or alternatively include other hardware devices of electronic device 101 , such as input module 150 , sound output module 155 , display module 160 , audio module 170 . , sensor module 176, interface 177, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196, or It may include one or more driver programs for driving the antenna module 197.
  • the middleware 144 may provide various functions to the application 146 so that the function or information provided from one or more resources of the electronic device 101 may be used by the application 146 .
  • the middleware 144 includes, for example, the application manager 201, the window manager 203, the multimedia manager 205, the resource manager 207, the power manager 209, the database manager 211, and the package manager 213. ), connectivity manager 215, notification manager 217, location manager 219, graphics manager 221, security manager 223, call manager 225, or voice recognition manager 227. can
  • the application manager 201 may manage the life cycle of the application 146 , for example.
  • the window manager 203 may manage one or more GUI resources used in a screen, for example.
  • the multimedia manager 205 identifies, for example, one or more formats necessary for reproducing media files, and encodes or decodes a corresponding media file among the media files using a codec suitable for the selected format. can be done
  • the resource manager 207 may manage a source code of the application 146 or a memory space of the memory 130 .
  • the power manager 209 may manage, for example, the capacity, temperature, or power of the battery 189, and determine or provide related information necessary for the operation of the electronic device 101 by using corresponding information among them. . According to an embodiment, the power manager 209 may interoperate with a basic input/output system (BIOS) (not shown) of the electronic device 101 .
  • BIOS basic input/output system
  • the database manager 211 may create, search, or change a database to be used by the application 146, for example.
  • the package manager 213 may manage installation or update of applications distributed in the form of package files, for example.
  • the connectivity manager 215 may manage, for example, a wireless connection or a direct connection between the electronic device 101 and an external electronic device.
  • the notification manager 217 may provide a function for notifying a user of occurrence of a designated event (eg, an incoming call, message, or alarm), for example.
  • the location manager 219 may manage location information of the electronic device 101, for example.
  • the graphic manager 221 may manage, for example, one or more graphic effects to be provided to a user or a user interface related thereto.
  • Security manager 223 may provide system security or user authentication, for example.
  • the telephony manager 225 may manage, for example, a voice call function or a video call function provided by the electronic device 101 .
  • the voice recognition manager 227 transmits, for example, the user's voice data to the server 108, and at least partially based on the voice data, a command corresponding to a function to be performed in the electronic device 101; Alternatively, text data converted at least partially based on the voice data may be received from the server 108 .
  • the middleware 144 may dynamically delete some existing components or add new components.
  • at least part of the middleware 144 may be included as part of the operating system 142 or may be implemented as separate software different from the operating system 142 .
  • the application 146 includes, for example, a home 251, a dialer 253, an SMS/MMS 255, an instant message (IM) 257, a browser 259, a camera 261, and an alarm 263. , Contacts (265), Voice Recognition (267), Email (269), Calendar (271), Media Player (273), Albums (275), Watch (277), Health (279) (e.g. exercise or blood sugar) measurement of biometric information) or environmental information 281 (eg, measurement of atmospheric pressure, humidity, or temperature information). According to an embodiment, the application 146 may further include an information exchange application (not shown) capable of supporting information exchange between the electronic device 101 and an external electronic device.
  • an information exchange application not shown
  • the information exchange application may include, for example, a notification relay application configured to transmit designated information (eg, a call, message, or alarm) to an external electronic device, or a device management application configured to manage an external electronic device.
  • the notification relay application for example, transmits notification information corresponding to a designated event (eg, mail reception) generated in another application (eg, the email application 269) of the electronic device 101 to an external electronic device.
  • the notification relay application may receive notification information from an external electronic device and provide the notification information to the user of the electronic device 101 .
  • the device management application is, for example, a power source (eg, turn-on or turn-off) of an external electronic device that communicates with the electronic device 101 or some component thereof (eg, a display module or a camera module of the external electronic device). ) or functions (eg brightness, resolution, or focus).
  • the device management application may additionally or alternatively support installation, deletion, or update of an application operating in an external electronic device.
  • Electronic devices may be devices of various types.
  • 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.
  • 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 camera e.g., a camera
  • a wearable device e.g., a smart bracelet
  • first, second, or first or secondary may simply be used to distinguish a given component from other corresponding components, and may be used to refer to a given component in another aspect (eg, importance or order) is not limited.
  • a (e.g., first) component is said to be “coupled” or “connected” to another (e.g., second) component, with or without the terms “functionally” or “communicatively.”
  • the certain component may be connected to the other component directly (eg by wire), wirelessly, or through a third component.
  • 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, logical blocks, parts, or circuits.
  • a module may be an integrally constructed component or a minimal unit of components or a portion thereof 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
  • a storage medium eg, internal memory 136 or external memory 138
  • a machine eg, electronic device 101
  • a processor eg, the processor 120
  • a device eg, the electronic device 101
  • the one or more instructions may include code generated by a compiler or code executable by an interpreter.
  • the device-readable storage medium may be provided in the form of a non-transitory storage medium.
  • the storage medium is a tangible device and does not contain a signal (e.g. electromagnetic wave), and this term refers to the case where data is stored semi-permanently in the storage medium. It does not discriminate when it is temporarily stored.
  • a signal e.g. electromagnetic wave
  • the method according to various embodiments disclosed in this document may be included and provided in a computer program product.
  • Computer program products may be traded between sellers and buyers as commodities.
  • a computer program product is distributed in the form of a device-readable storage medium (e.g. compact disc read only memory (CD-ROM)), or through an application store (e.g. Play Store TM ) or on two user devices (e.g. It can be distributed (eg downloaded or uploaded) online, directly between smart phones.
  • a computer program product is distributed online, at least a part of the computer program product is at least temporarily stored in a device-readable storage medium, such as a manufacturer's server, an application store server, or a relay server's memory, or is temporarily created. It can be.
  • each component (eg, module or program) of the above-described components may include a single object or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. there is.
  • one or more components or operations among the aforementioned corresponding components may be omitted, or one or more other components or operations may be added.
  • a plurality of components eg modules or programs
  • the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by a corresponding component of the plurality of components prior to the integration. .
  • the actions performed by a module, program, or other component are executed sequentially, in parallel, iteratively, or heuristically, or one or more of the actions are executed in a different order, or omitted. or one or more other actions may be added.
  • FIG. 3 is a diagram for explaining an operation of determining a delay according to an embodiment of the present disclosure.
  • Electronic devices include various computing devices such as mobile phones, smart phones, tablets, laptops, personal computers, or e-book devices, various wearable devices such as smart watches, smart glasses, head-mounted displays (HMDs), or smart clothing, and smart speakers. , various home appliances such as a smart TV, or a smart refrigerator, a smart car, a smart kiosk, an internet of things (IoT) device, a walking assist device (WAD), a drone, or a robot.
  • IoT internet of things
  • WAD walking assist device
  • Delays may occur in electronic devices for various reasons, and performance bottlenecks can be improved by determining whether such delays occur in real time and preemptively allocating necessary resources.
  • 3 exemplarily assumes a delay that occurs when the plurality of threads 310 and 320 use the same lock, and describes in detail an operation of determining whether or not a delay occurs in real time.
  • a critical section included in each of the plurality of threads 310 and 320 exemplarily shown in FIG. 3 can be felt by a user using a corresponding electronic device when a delay occurs among tasks performed in each thread. It may be relevant to the work.
  • a critical section can be used for tasks that use the same locks as other threads, tasks that use variables shared with other threads, tasks that share memory with other threads, tasks that share I/O with other threads, and electronic devices. It may include one or more of a job responsible for outputting to the screen of the user or a job according to a request input from the user. In the case of an operation that uses the same lock as another thread, if another thread uses the lock first, access to the data required by that thread is denied, so the operation cannot be performed any more, and the operation must be stopped until the lock is released. Therefore, it can be set as a critical section.
  • a job of updating the screen at regular time intervals needs to be performed. If a delay occurs at this time, the user may be more sensitive, so it may be set as a critical section.
  • the result is provided to the user after the action according to the user's request is performed, and if a delay occurs at this time, the user can react to the delay more sensitively It can be set as a section. Examples of such tasks may include a task according to a touch gesture input from a user, a message queue processing task of a looper operating in a system server, and a lock task operating in a system server. It is not limited to the above example.
  • unnecessary delay can be effectively suppressed by determining whether a timer 331-based delay, which will be described below, has occurred, and performing resource control according to the determination result.
  • the start event of the corresponding task is transferred to the software module 330, and the software module 330 responds to the start of the corresponding task. It may be determined by the timer 331 whether a predetermined threshold time for the task arrives (341). The time corresponding to the start of the corresponding task may correspond to, for example, one of the time when the start event is received by the software module 330 and the time when the corresponding task actually starts, but is not limited to the above example. Since the execution time without delay may be different for each task, the threshold time may also be set differently depending on the task.
  • the software module 330 may include a timer 331 for determining whether a delay occurs.
  • the timer 331 may operate by repeatedly expiring a reference time of a predetermined length. For example, when the reference time set in the timer 331 is 100 ms and the threshold time is 500 ms, whether or not the threshold time arrives may be determined based on whether or not the reference time has expired 5 times.
  • the timer 331 may operate by repeatedly expiring a reference time of a predetermined length regardless of the start or end of tasks executed in the plurality of threads 310 and 320 .
  • the preset threshold time for the corresponding task may be 500 ms, and at this time, the software module 330 may determine whether the reference time expired in the timer 331 expires 5 times.
  • the end event 343 of the corresponding task is delivered to the software module 330, and the software module 330 responds to the arrival of the critical time You can stop judging whether or not. At this time, it is determined that the work has been normally performed without any delay, and no separate resource control is performed.
  • the critical section 311 of the first thread 310 and the critical section 323 of the second thread 320 occur using the same lock.
  • the critical section 311 of the first thread 310 starts before the critical section 323 of the second thread 320 and uses a lock
  • the critical section 323 has access to data required by the lock. If rejected, the operation may wait until the corresponding lock is released.
  • This waiting section may be referred to as a bottleneck section 350 . Since the critical section 323 of the second thread 320 is no longer being executed and has already started even if it is waiting, the corresponding start event 345 is delivered to the software module 330, and the software module 330 performs the corresponding task.
  • the timer 331 It may be determined by the timer 331 whether a predetermined threshold time for the corresponding task arrives from the time point corresponding to the start of.
  • the preset threshold time for the corresponding task may be 500 ms, and at this time, the software module 330 may determine whether the reference time expired in the timer 331 expires 5 times.
  • a critical time may arrive before the critical section 323 is terminated by the bottleneck section 350 (347).
  • the software module 330 may detect that a delay has occurred.
  • one or more resources may be controlled for operation of the critical section 323 .
  • One or more resources capable of accelerating the operation of the critical section 323 may be allocated to the critical section 323 .
  • Control of one or more resources may include at least one of operation clock control of components included in the electronic device, available memory control, and BG processor control.
  • Control of the operating clock of components is control of the operating clock of a processor (eg, CPU, GPU) and a bus included in an electronic device, and includes, for example, boost and release of limits through HyperHAL. It can induce rapid action.
  • the available memory control induces operation acceleration by allocating more memory to the corresponding task, for example, memory reclaim operation when memory is insufficient or lmkd (low memory killer daemon) that automatically kills the task. Through deriving techniques, available memory can be secured preemptively.
  • BG processor control is a technique for controlling a computer process running in an invisible background without user intervention, and for example, a foreground task can be accelerated by limiting a processor running in the background.
  • it may be a technique to reduce resource race conditions as much as possible by stopping background processes other than the entering application (ie, top application).
  • the software module 330 collects information about the delay time that has occurred. This delay information may be used for preparing for a later delay, but is not limited to the above example.
  • the timer 331 repeatedly expires a reference time of a predetermined length regardless of the start or end of a task.
  • the bottleneck section 350 can be detected in real time before the performance bottleneck ends, and required resources are preemptively allocated to minimize the delay experienced by the user and improve the performance of the electronic device. Through this, even when the performance bottleneck occurs continuously or instantaneously, it is possible to quickly and effectively improve the performance bottleneck.
  • FIG. 4 is a sequence diagram illustrating a delay determination operation according to an embodiment of the present disclosure.
  • a start event and an end of a critical section (eg, critical sections 321 and 323 of FIG. 3 ) in a thread (eg, the second thread 320 of FIG. 3 ) that is a target of a delay determination operation.
  • An operation of a software module (eg, the software module 330 of FIG. 3 ) according to the occurrence of an event is illustratively shown as a sequence diagram.
  • an event handler 410 is generated in an initialization operation performed when a software module is created, and a timer 420 (eg: The timer 331 of FIG. 3 may be created.
  • the created timer 420 may operate by repeatedly expiring a reference time of a predetermined length regardless of the start or end of the critical section.
  • the event handler 410 may determine whether an ID for the corresponding critical section is registered. Determining whether the ID is registered may be to check whether it is currently determining whether a critical time corresponding to a corresponding critical section arrives. If it is not a situation in which it is determined whether the critical time has already arrived due to the start event of the corresponding critical section, it may be determined that the ID is not registered (440-1). In this case, ID registration and threshold time setting (register id and set threshold time) 440-2 may be requested with the timer 420. The timer 420 may start determining whether a predetermined threshold time arrives in the corresponding critical section based on the corresponding request.
  • the event handler 410 sets the expiration 450-2 of the reference time for the threshold time 450-1 until the next event (eg, end event) of the corresponding critical section is received. timer) (450-3) can be repeated.
  • the end event of the critical section is received before the arrival of the critical time and the ID of the corresponding critical section is registered (460-1), it may mean that the current timer 420 is determining whether or not the corresponding critical time has arrived. .
  • the event handler 410 may unregister the ID with the timer 420 and request an unregister id and cancel threshold time 460-2.
  • the timer 420 may stop determining whether a threshold time has arrived or not according to a corresponding request.
  • the bottleneck information 470 is transmitted to the resource control module, so that the bottleneck delay within the critical path is determined. can be effectively reduced.
  • FIG. 5 is a diagram for explaining an operation of transmitting an event to a software module according to an embodiment of the present disclosure.
  • FIG. 5 an example in which an event is transmitted from an event plug-in 510 to a software module 520 (eg, the software module 330 of FIG. 3 ) is shown.
  • a software module 520 eg, the software module 330 of FIG. 3
  • the event plug-in 510 is provided to the system process in the form of a class and a JNI library (Java Native Interface library), generates an event from the status of the system process, and converts the event into a software module 520. can be conveyed
  • the software module 520 in the event processor may determine whether a threshold time corresponding to the event has arrived. The software module 520 may determine that a delay due to a bottleneck has occurred if an end event is not received until a predetermined number of reference times expire and a threshold time arrives.
  • the software module 520 efficiently reduces the bottleneck delay in the critical path by transferring bottleneck information (eg, bottleneck information 470 of FIG. 4 ) to the resource control module 530 so that necessary system resources can be utilized. can be reduced to
  • the bottleneck condition is quickly identified on the on device and System resources can be dynamically allocated, and system bottlenecks can be improved.
  • it is possible to take immediate action by dynamically determining whether a bottleneck occurs on the entire device even in a system load situation caused by complex causes.
  • a busy state of a device can be dynamically identified in real time, and necessary resources can be provided at the right time and place, so that limited resources can be efficiently used to effectively improve performance.
  • FIG. 6 is a diagram illustrating an operating method of an electronic device according to an embodiment of the present disclosure.
  • each operation may be performed sequentially, but not necessarily sequentially. For example, the order of each operation may be changed, or at least two operations may be performed in parallel.
  • Operations 610 to 640 may be performed by at least one component (eg, processor 120 of FIG. 1 ) of an electronic device (eg, electronic device 101 of FIG. 1 ).
  • the electronic device determines whether a preset threshold time for a task arrives from a time point corresponding to the start of a predetermined task (eg, timer 331 of FIG. 3 and timer 331 of FIG. 4 ). (420)).
  • the electronic device may determine whether the task ends before the threshold time arrives. Operation 630 may then be performed in response if the task is determined to be finished before the threshold time arrives. Conversely, operation 640 may be subsequently performed in response to a case where it is determined that the threshold time has arrived before the task is terminated.
  • the electronic device may stop determining whether the threshold time has arrived.
  • the electronic device may determine that no delay has occurred and stop an operation of determining whether a threshold time has arrived.
  • the electronic device may control one or more resources for performing a task.
  • the electronic device may determine that a delay has occurred and control one or more resources to resolve the bottleneck.
  • a method of operating an electronic device includes an operation of determining with a timer whether a preset threshold time for a task arrives from a time point corresponding to the start of a predetermined task, and a response when the task ends before the threshold time arrives.
  • it may include an operation of stopping determining whether a threshold time has arrived and an operation of controlling one or more resources for performing a task in response to a case in which the threshold time has arrived before the task is terminated.
  • the timer may operate by repeatedly expiring a reference time of a predetermined length regardless of the start or end of a task.
  • whether the threshold time arrives in the operating method of the electronic device may be determined based on how many times the reference time has expired from the time corresponding to the start of the task.
  • the timer operates in a software module (eg, the software module 330 of FIG. 3 and the software module 520 of FIG. 5) that is distinguished for a thread in which a task is performed, and determines The operation may start determining whether a threshold time has arrived in response to a start event corresponding to the start of a task being transferred from a thread to a software module.
  • a software module eg, the software module 330 of FIG. 3 and the software module 520 of FIG. 5
  • determining whether a threshold time has reached by a timer may be stopped in response to a corresponding termination event being transmitted from a thread to a software module.
  • a predetermined task in an operating method of an electronic device may be a task that may cause a delay that a user using the electronic device may experience.
  • predetermined tasks in the operating method of the electronic device include a task using the same lock as another thread, a task using a variable shared with other threads, a task sharing I/O with other threads, and another thread. It may include one or more of a task of sharing a memory with a user, a task of outputting on a screen of an electronic device, or a task according to a request input from a user.
  • the threshold time may be determined according to the starting task.
  • an operation controlled by an electronic device operation method is an operation clock of components included in an electronic device related to a task, available memory, or BG (background) in response to a case in which a threshold time arrives before a task is terminated. ) can control one or more of the processors.
  • FIG. 7 is a diagram illustrating an electronic device according to an embodiment of the present disclosure.
  • an electronic device 700 (eg, the electronic device 101 of FIG. 1 ) according to an embodiment includes a memory 710 (eg, the memory 130 of FIG. 1 ) and a processor 720 ( Example: processor 120 of FIG. 1).
  • the electronic device 700 may be implemented as a user terminal.
  • the user terminal may include various computing devices such as mobile phones, smart phones, tablets, laptops, personal computers, or e-book devices, various wearable devices such as smart watches, smart glasses, HMDs, or smart clothes, smart speakers, and smart devices. It may include various home appliances such as TVs or smart refrigerators, smart cars, smart kiosks, IoT devices, WADs, drones, or robots.
  • the memory 710 may include computer readable instructions.
  • the processor 720 may perform the aforementioned operations as instructions stored in the memory 710 are executed by the processor 720 .
  • Memory 710 may be volatile memory or non-volatile memory.
  • the processor 720 may be a device that executes instructions or programs or controls the electronic device 700 .
  • the processor 720 determines with a timer whether a preset threshold time arrives for the task from the time corresponding to the start of the predetermined task, and in response to a case where the task ends before the threshold time arrives, determines whether the threshold time has arrived or not. It can stop judging and control one or more resources for performing a task in response to when a threshold amount of time has arrived before the task ends.
  • the electronic device 700 may process the above-described operation.
  • the electronic device 700 includes a processor 720 and a memory 710 including at least one instruction executable by the processor 720 .
  • the processor 720 determines with a timer whether or not a predetermined threshold time arrives for the predetermined task from the time corresponding to the start of the predetermined task, and before the threshold time arrives.
  • One or more resources for performing the predetermined task in response to when the predetermined task ends, to stop determining whether the threshold time has arrived, and in response to the case where the threshold time arrives before the predetermined task ends. can control them.
  • the timer in the electronic device 700 may operate by repeatedly expiring a reference time of a predetermined length regardless of the start or end of a predetermined task.
  • whether a threshold time arrives in the electronic device 700 may be determined based on how many times a reference time has expired from a point corresponding to the start of a predetermined task.
  • the timer operates in a software module (eg, the software module 330 of FIG. 3 and the software module 520 of FIG. 5) that is distinct to a thread in which a predetermined task is performed, and , a start event corresponding to the start of a predetermined task is transmitted from the thread to a software module, and the software module may start determining whether a threshold time has arrived in response to receiving the start event with a timer.
  • a software module eg, the software module 330 of FIG. 3 and the software module 520 of FIG. 5
  • a corresponding end event is transmitted from a thread to a software module, and the software module determines whether a threshold time has arrived in response to receiving the end event as a timer. You can stop judging.
  • the predetermined task in the electronic device 700 may be a task capable of generating a delay that a user using the electronic device can experience.
  • the predetermined tasks in the electronic device 700 include a task using the same lock as another thread, a task using a variable shared with other threads, a task sharing I/O with other threads, and another thread. It may include one or more of a task of sharing the memory 710 with the user, a task of outputting on the screen of the electronic device 700, or a task according to a request input from the user.
  • the critical time in the electronic device 700 may be determined according to a task to start.
  • the processor 720 responds to a case in which a critical time arrives before a predetermined task ends, and operates clocks of components included in the electronic device related to the predetermined task, in advance. It may control one or more of available memory and background (BG) processors related to a given task.
  • BG background

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)

Abstract

시스템의 성능 병목 현상을 처리하는 전자 장치 및 그 동작 방법이 개시된다. 개시된 전자 장치는 프로세서 및 프로세서에 의해 실행 가능한 적어도 하나의 명령어를 포함하는 메모리를 포함하고, 적어도 하나의 명령어가 프로세서에서 실행되면, 프로세서는 미리 정해진 작업의 시작에 대응하는 시점부터 작업에 미리 설정된 임계 시간이 도래하는지를 타이머로 판단하고, 임계 시간이 도래하기 전에 작업이 종료되는 경우에 응답하여, 임계 시간의 도래 여부를 판단하는 것을 중단하고, 작업이 종료되기 전에 임계 시간이 도래한 경우에 응답하여, 작업을 수행하기 위한 하나 이상의 리소스들을 제어할 수 있다.

Description

시스템의 성능 병목 현상을 처리하는 전자 장치 및 그 동작 방법
본 개시의 다양한 실시예들은 시스템의 성능 병목 현상을 처리하는 전자 장치 및 그 동작 방법에 관한 것이다.
최근 대용량의 고품질 데이터를 처리하는 고성능 컴퓨팅에 대한 요구가 증가하고 있으며, 듀얼, 쿼드, 옥타 코어 프로세서와 같은 멀티프로세서 컴퓨터 아키텍처에 대한 여러 연구가 진행되고 있다. 이러한 멀티프로세서 시스템들은 프로그램 코드를 동시에 병렬로 처리할 수 있는 시스템으로 발전되었다. 다시 말해, 여러 프로세서들이나 스레드들을 동시에 실행할 수 있는 환경이 만들어졌다.
상술한 정보는 본 개시의 이해를 돕기 위한 배경 정로로만 제공된다. 상술한 내용 중 어느 것이 본 개시와 관련하여 선행기술로 적용될 수 있는 여부에 대해 어떠한 결정도 이루어지지 않았으며 어떠한 주장도 이루어지지 않는다.
멀티프로세서 컴퓨팅 시스템에서 성능 병목은 시스템 내의 여러 스레드들이 메모리, I/O(input/output) 디바이스, 네트워크와 같은 제한된 리소스들에 대해 경쟁하면서 특정 스레드에 딜레이가 발생하며, 이로 인해 시스템의 성능이 저하되는 현상일 수 있다. 특히 딜레이가 발생하는 스레드가 UI(user interface)와 관련된 스레드의 경우에는 시스템을 사용하는 사용자가 체감적으로 느낄 수 있는 성능 이슈를 만들 수 있다. 시스템 성능 병목의 원인은 리소스 부족, 공유 리소스 경합, 리소스 독점, 리소스의 잘못된 구성 또는 리소스의 잘못된 동작과 같이 다양할 수 있다.
본 개시의 측면은 적어도 앞서 언급한 문제 및/또는 단점을 해결하고 적어도 아래에서 설명하는 이점을 제공하는 것이다. 본 문서에 개시되는 일 측면에 따르면, 시스템의 성능 병목 현상이 종료되기 전에 실시간으로 병목 현상을 감지하고, 동적으로 리소스 제어를 수행하여 병목 현상을 효과적으로 제거하는 기법을 제공할 수 있다.
추가적인 측면은 다음의 설명에서 부분적으로 설명될 것이고, 부분적으로는 설명으로부터 명백해 지거나 제시된 실시예의 실행에 의해 학습될 수 있다.
본 개시의 일 측면에 따라 전자 장치가 제공된다. 전자 장치는 적어도 하나의 프로세서 및 프로세서에 의해 실행 가능한 적어도 하나의 명령어를 포함하는 메모리를 포함한다. 적어도 하나의 명령어가 적어도 하나의 프로세서에서 실행되면, 프로세서는 미리 정해진 작업의 시작에 대응하는 시점부터 미리 정해진 작업에 미리 설정된 임계 시간이 도래하는지를 타이머로 판단하고, 임계 시간이 도래하기 전에 미리 정해진 작업이 종료되는 경우에 응답하여, 임계 시간의 도래 여부를 판단하는 것을 중단하고, 미리 정해진 작업이 종료되기 전에 임계 시간이 도래한 경우에 응답하여, 작업을 수행하기 위한 하나 이상의 리소스들을 제어할 수 있다.
본 개시의 다른 측면에 따른 전자 장치의 동작 방법이 제공된다. 동작 방법은 미리 정해진 작업의 시작에 대응하는 시점부터 미리 정해진 작업에 미리 설정된 임계 시간이 도래하는지를 타이머로 판단하는 동작, 임계 시간이 도래하기 전에 미리 정해진 작업이 종료되는 경우에 응답하여, 임계 시간의 도래 여부를 판단하는 것을 중단하는 동작 및 미리 정해진 작업이 종료되기 전에 임계 시간이 도래한 경우에 응답하여, 미리 정해진 작업을 수행하기 위한 하나 이상의 리소스들을 제어하는 동작을 포함할 수 있다.
다양한 실시예에 따르면, 실제 전자 장치의 동작이 수행되는 하나 이상의 스레드들과 구별되는 소프트웨어 모듈에서 타이머가 작업의 시작이나 종료에 무관하게 미리 정해진 길이의 기준 시간이 반복적으로 만료되어 동작함으로써, 성능 병목 현상이 종료되기 전에 실시간으로 병목 구간을 감지하고, 필요한 리소스를 선제적으로 할당하여 사용자가 체감하는 딜레이를 최소화하고, 전자 장치의 성능을 향상시킬 수 있다. 이를 통해, 성능 병목 현상이 연속해서 발생하는 경우나 순간적으로 발생하는 경우에도 신속하고 효과적으로 성능 병목 현상을 개선할 수 있다.
또한, 다양한 실시예에 따르면, 별도의 타이머를 통해 딜레이가 발생하였는지를 실시간으로 감시함으로써, 온 디바이스에서 병목 상태를 빠르게 파악하여 동적으로 시스템 리소스를 할당할 수 있어, 시스템 병목 상태를 개선할 수 있다.
또한, 다양한 실시예에 따르면, 복합적인 원인으로 발생하는 시스템 부하 상황에서도 온 디바이스에서 동적으로 병목 현상 발생 여부를 판단하여 즉각적인 조치를 할 수 있다.
본 개시의 다른 측면, 이점 및 세일리언트 특징(salient features)은 첨부된 도면과 함께 본 개시의 다양한 실시예들을 개시하는 다음의 상세한 설명으로부터 본 개시가 속하는 기술 분야에서 통상의 지식을 가진 자에게 명백해질 것이다.
도 1은 본 개시의 일 실시예에 따른 네트워크 환경 내의 전자 장치의 블록도를 나타낸다.
도 2은 본 개시의 일 실시예에 따른 프로그램(140)을 예시하는 블록도(200)이다.
도 3은 본 개시의 일 실시예에 따른 딜레이를 판단하는 동작을 설명하기 위한 도면이다.
도 4는 본 개시의 일 실시예에 따른 딜레이 판단 동작을 시퀀스 다이어그램으로 나타낸 도면이다.
도 5는 본 개시의 일 실시예에 따른 소프트웨어 모듈로 이벤트가 전달되는 동작을 설명하기 위한 도면이다.
도 6은 본 개시의 일 실시예에 따른 전자 장치의 동작 방법을 나타낸 도면이다.
도 7은 본 개시의 일 실시예에 따른 전자 장치를 나타낸 도면이다.
도면 전체에 걸쳐 동일한 참조번호는 동일한 부품, 구성요소 및 구조를 지칭하는 것으로 이해될 것이다.
첨부된 도면을 참조하는 다음의 설명은 청구범위 및 그 등가물에 의해 정의되는 본 개시의 다양한 실시예들의 포괄적인 이해를 돕기 위해 제공된다. 이해를 돕기 위해 다양한 특정 세부사항들을 포함하지만, 이는 단지 예시로 간주되어야 한다. 따라서, 본 개시가 속하는 기술 분야에서 통상의 지식을 가진 자는 여기에 기술된 다양한 실시예의 다양한 변경 및 수정이 본 개시의 범위 및 사상을 벗어나지 않고 이루어질 수 있다는 것을 인식할 것이다. 또한, 공지 기능 및 구조에 대한 설명은 명확성과 간결성을 위해 생략될 수 있다.
다음의 설명 및 청구범위에 사용된 용어 및 단어는 서지적 의미(bibliographical meanings)로 제한되지 않으며, 발명자가 본 개시를 명확하고 일관되게 이해하기 위해 사용된 것일 뿐이다. 따라서, 본 개시의 다양한 실시예에 대한 다음의 설명은 첨부된 청구범위 및 그 등가물에 의해 정의된 바와 같이 본 개시를 제한할 목적이 아니라 예시적인 목적으로만 제공된다는 것이 본 개시가 속한 기술 분야에서 통상의 지식을 가진 자에게 명백해야 한다.
단수 형태 "a", "an" 및 "the"는 문맥상 명백하게 달리 지시하지 않는 한 복수의 지시대상을 포함하는 것으로 이해되어야 한다. 따라서, 예를 들어, "컴포넌트 표면"에 대한 언급은 이러한 표면들 중 하나 이상에 대한 언급을 포함한다.
도 1은 본 개시의 일 실시예에 따른 네트워크 환경 내의 전자 장치의 블록도를 나타낸다.
도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108) 중 적어도 하나와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.
프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치(GPU; graphics processing unit), 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.
보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(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) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다.
메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다.
프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다.
입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다.
음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.
디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다.
오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.
센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다.
인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.
연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.
햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.
카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래쉬들을 포함할 수 있다.
전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.
배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.
통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G(fifth generation) 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다.
무선 통신 모듈(192)은 4G(fourth generation) 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave(millimeter wave) 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제 2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.
안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.
다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.
상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.
일실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제 2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다.
도 2은 본 개시의 일 실시예에 따른 프로그램을 예시하는 블록도이다.
도 2를 참조하면, 프로그램(140)은 전자 장치(101)의 하나 이상의 리소스들을 제어하기 위한 운영 체제(142), 미들웨어(144), 또는 상기 운영 체제(142)에서 실행 가능한 어플리케이션(146)을 포함할 수 있다. 운영 체제(142)는, 예를 들면, AndroidTM, iOSTM, WindowsTM, SymbianTM, TizenTM, 또는 BadaTM를 포함할 수 있다. 프로그램(140) 중 적어도 일부 프로그램은, 예를 들면, 제조 시에 전자 장치(101)에 프리로드되거나, 또는 사용자에 의해 사용 시 외부 전자 장치(예: 전자 장치(102 또는 104), 또는 서버(108))로부터 다운로드되거나 갱신 될 수 있다.
운영 체제(142)는 전자 장치(101)의 하나 이상의 시스템 리소스들(예: 프로세스, 메모리, 또는 전원)의 관리(예: 할당 또는 회수)를 제어할 수 있다. 운영 체제(142)는, 추가적으로 또는 대체적으로, 전자 장치(101)의 다른 하드웨어 디바이스, 예를 들면, 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 구동하기 위한 하나 이상의 드라이버 프로그램들을 포함할 수 있다.
미들웨어(144)는 전자 장치(101)의 하나 이상의 리소스들로부터 제공되는 기능 또는 정보가 어플리케이션(146)에 의해 사용될 수 있도록 다양한 기능들을 어플리케이션(146)으로 제공할 수 있다. 미들웨어(144)는, 예를 들면, 어플리케이션 매니저(201), 윈도우 매니저(203), 멀티미디어 매니저(205), 리소스 매니저(207), 파워 매니저(209), 데이터베이스 매니저(211), 패키지 매니저(213), 커넥티비티 매니저(215), 노티피케이션 매니저(217), 로케이션 매니저(219), 그래픽 매니저(221), 시큐리티 매니저(223), 통화 매니저(225), 또는 음성 인식 매니저(227)를 포함할 수 있다.
어플리케이션 매니저(201)는, 예를 들면, 어플리케이션(146)의 생명 주기를 관리할 수 있다. 윈도우 매니저(203)는, 예를 들면, 화면에서 사용되는 하나 이상의 GUI 자원들을 관리할 수 있다. 멀티미디어 매니저(205)는, 예를 들면, 미디어 파일들의 재생에 필요한 하나 이상의 포맷들을 파악하고, 그 중 선택된 해당하는 포맷에 맞는 코덱을 이용하여 상기 미디어 파일들 중 해당하는 미디어 파일의 인코딩 또는 디코딩을 수행할 수 있다. 리소스 매니저(207)는, 예를 들면, 어플리케이션(146)의 소스 코드 또는 메모리(130)의 메모리의 공간을 관리할 수 있다. 파워 매니저(209)는, 예를 들면, 배터리(189)의 용량, 온도 또는 전원을 관리하고, 이 중 해당 정보를 이용하여 전자 장치(101)의 동작에 필요한 관련 정보를 결정 또는 제공할 수 있다. 일실시예에 따르면, 파워 매니저(209)는 전자 장치(101)의 바이오스(BIOS: basic input/output system)(미도시)와 연동할 수 있다.
데이터베이스 매니저(211)는, 예를 들면, 어플리케이션(146)에 의해 사용될 데이터베이스를 생성, 검색, 또는 변경할 수 있다. 패키지 매니저(213)는, 예를 들면, 패키지 파일의 형태로 배포되는 어플리케이션의 설치 또는 갱신을 관리할 수 있다. 커넥티비티 매니저(215)는, 예를 들면, 전자 장치(101)와 외부 전자 장치 간의 무선 연결 또는 직접 연결을 관리할 수 있다. 노티피케이션 매니저(217)는, 예를 들면, 지정된 이벤트(예: 착신 통화, 메시지, 또는 알람)의 발생을 사용자에게 알리기 위한 기능을 제공할 수 있다. 로케이션 매니저(219)는, 예를 들면, 전자 장치(101)의 위치 정보를 관리할 수 있다. 그래픽 매니저(221)는, 예를 들면, 사용자에게 제공될 하나 이상의 그래픽 효과들 또는 이와 관련된 사용자 인터페이스를 관리할 수 있다.
시큐리티 매니저(223)는, 예를 들면, 시스템 보안 또는 사용자 인증을 제공할 수 있다. 통화(telephony) 매니저(225)는, 예를 들면, 전자 장치(101)에 의해 제공되는 음성 통화 기능 또는 영상 통화 기능을 관리할 수 있다. 음성 인식 매니저(227)는, 예를 들면, 사용자의 음성 데이터를 서버(108)로 전송하고, 그 음성 데이터에 적어도 일부 기반하여 전자 장치(101)에서 수행될 기능에 대응하는 명령어(command), 또는 그 음성 데이터에 적어도 일부 기반하여 변환된 문자 데이터를 서버(108)로부터 수신할 수 있다. 일 실시예에 따르면, 미들웨어(144)는 동적으로 기존의 구성요소를 일부 삭제하거나 새로운 구성요소들을 추가할 수 있다. 일 실시예에 따르면, 미들웨어(144)의 적어도 일부는 운영 체제(142)의 일부로 포함되거나, 또는 운영 체제(142)와는 다른 별도의 소프트웨어로 구현될 수 있다.
어플리케이션(146)은, 예를 들면, 홈(251), 다이얼러(253), SMS/MMS(255), IM(instant message)(257), 브라우저(259), 카메라(261), 알람(263), 컨택트(265), 음성 인식(267), 이메일(269), 달력(271), 미디어 플레이어(273), 앨범(275), 와치(277), 헬스(279)(예: 운동량 또는 혈당과 같은 생체 정보를 측정), 또는 환경 정보(281)(예: 기압, 습도, 또는 온도 정보 측정) 어플리케이션을 포함할 수 있다. 일실시예에 따르면, 어플리케이션(146)은 전자 장치(101)와 외부 전자 장치 사이의 정보 교환을 지원할 수 있는 정보 교환 어플리케이션(미도시)을 더 포함할 수 있다. 정보 교환 어플리케이션은, 예를 들면, 외부 전자 장치로 지정된 정보 (예: 통화, 메시지, 또는 알람)를 전달하도록 설정된 노티피케이션 릴레이 어플리케이션, 또는 외부 전자 장치를 관리하도록 설정된 장치 관리 어플리케이션을 포함할 수 있다. 노티피케이션 릴레이 어플리케이션은, 예를 들면, 전자 장치(101)의 다른 어플리케이션(예: 이메일 어플리케이션(269))에서 발생된 지정된 이벤트(예: 메일 수신)에 대응하는 알림 정보를 외부 전자 장치로 전달할 수 있다. 추가적으로 또는 대체적으로, 노티피케이션 릴레이 어플리케이션은 외부 전자 장치로부터 알림 정보를 수신하여 전자 장치(101)의 사용자에게 제공할 수 있다.
장치 관리 어플리케이션은, 예를 들면, 전자 장치(101)와 통신하는 외부 전자 장치 또는 그 일부 구성 요소(예: 외부 전자장치의 디스플레이 모듈 또는 카메라 모듈)의 전원(예: 턴-온 또는 턴-오프) 또는 기능(예: 밝기, 해상도, 또는 포커스)을 제어할 수 있다. 장치 관리 어플리케이션은, 추가적으로 또는 대체적으로, 외부 전자 장치에서 동작하는 어플리케이션의 설치, 삭제, 또는 갱신을 지원할 수 있다.
본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.
본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.
본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다.
본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.
일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 컴퓨터 프로그램 제품이 온라인으로 배포되는 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.
다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.
도 3은 본 개시의 일 실시예에 따른 딜레이를 판단하는 동작을 설명하기 위한 도면이다.
도 3을 참조하면, 일 실시예에 따른 전자 장치(예: 도 1의 전자 장치(101)) 내 프로세서(예: 도 1의 프로세서(120))에서 실행되는 복수의 스레드들(plurality of threads)(310, 320)과 소프트웨어 모듈(330)이 예시적으로 도시된다. 전자 장치는 휴대폰, 스마트 폰, 태블릿, 랩탑, 퍼스널 컴퓨터, 또는 전자북 장치와 같은 다양한 컴퓨팅 장치, 스마트 시계, 스마트 안경, HMD(head-mounted display), 또는 스마트 의류와 같은 다양한 웨어러블 기기, 스마트 스피커, 스마트 TV, 또는 스마트 냉장고와 같은 다양한 가전장치, 스마트 자동차, 스마트 키오스크, IoT(internet of things) 기기, WAD(walking assist device), 드론, 또는 로봇을 포함할 수 있다.
전자 장치에는 여러 이유로 딜레이가 발생할 수 있는데, 이러한 딜레이 발생 여부를 실시간으로 파악해서 필요한 리소스를 선제적으로 할당함으로써 성능 병목 현상을 개선할 수 있다. 도 3에서는 복수의 스레드들(310, 320)이 동일한 락(lock)을 사용하는 경우에 발생하는 딜레이를 예시적으로 가정하여, 딜레이 발생 여부를 실시간으로 판단하는 동작에 대해 자세히 설명한다.
도 3에 예시적으로 도시된 복수의 스레드들(310, 320) 각각에 포함된 크리티컬 섹션(critical section)은 각 스레드에서 수행되는 작업들 중 딜레이 발생 시 해당 전자 장치를 사용하는 사용자가 체감할 수 있는 작업에 해당할 수 있다.
예를 들어, 크리티컬 섹션은 다른 스레드와 동일한 락을 사용하는 작업, 다른 스레드와 공유하는 변수를 사용하는 작업, 다른 스레드와 메모리를 공유하는 작업, 다른 스레드와 I/O를 공유하는 작업, 전자 장치의 화면에 출력을 담당하는 작업 또는 사용자로부터 입력된 요청에 따른 작업 중 하나 이상을 포함할 수 있다. 다른 스레드와 동일한 락을 사용하는 작업의 경우, 다른 스레드에서 먼저 락을 사용한다면 해당 스레드에서 필요한 데이터로의 액세스가 거부되므로 더 이상 작업을 수행할 수 없고, 해당 락이 해제될 때까지 동작을 중단해야 하기 때문에 크리티컬 섹션으로 설정될 수 있다. 또한, 다른 스레드와 공유하는 변수를 사용하는 작업의 경우도 마찬가지로, 다른 스레드에서 먼저 해당 변수를 액세스하여 읽거나 수정한다면 해당 스레드에서 해당 변수로의 액세스가 거부되므로 더 이상 작업을 수행할 수 없고, 다른 스레드에서 해당 변수에 대한 액세스가 종료될 때까지 동작을 중단해야 하기 때문에 크리티컬 섹션으로 설정될 수 있다. 또한, 다른 스레드와 메모리 혹은 I/O를 공유하는 작업의 경우, 다른 스레드에서 해당 메모리 혹은 I/O를 많이 사용한다면 해당 스레드에서 사용 가능한 메모리 혹은 I/O의 크기가 작아져서 동작을 완료하는 데 더 많은 시간이 소요될 수 있으므로, 크리티컬 섹션으로 설정될 수 있다. 또한, 전자 장치의 화면에 출력을 담당하는 작업의 경우 일정한 시간 간격으로 화면을 갱신하는 작업을 수행해야 하는데 이때 딜레이가 발생한다면 사용자가 보다 민감할 수 있기 때문에 크리티컬 섹션으로 설정될 수 있다. 또한, 사용자로 입력된 요청에 따른 작업의 경우, 사용자의 요청에 따른 동작이 수행된 후 그 결과를 사용자에게 제공하는 데, 이때 딜레이가 발생한다면 사용자가 보다 민감하게 딜레이에 반응할 수 있기 때문에 크리티컬 섹션으로 설정될 수 있다. 이러한 작업들에 대한 예시들로는, 사용자로부터 입력된 터치 제스처에 따른 작업, 시스템 서버에서 동작하는 루퍼(looper)의 메시지 큐(message queue) 처리 작업, 시스템 서버에서 동작하는 락 작업을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 이러한 크리티컬 섹션에 대해서는 아래에서 설명할 타이머(331) 기반 딜레이 발생 여부를 판단하고, 판단 결과에 따라 리소스 제어를 수행함으로써, 불필요한 딜레이 발생을 효과적으로 억제할 수 있다.
제2 스레드(320)에서, 크리티컬 섹션(321)이 발생하는 것에 응답하여 해당 작업의 시작 이벤트가 소프트웨어 모듈(330)로 전달되고, 소프트웨어 모듈(330)은 해당 작업의 시작에 대응하는 시점부터 해당 작업에 미리 설정된 임계 시간이 도래하는지를 타이머(331)로 판단할 수 있다(341). 해당 작업의 시작에 대응하는 시점은, 예를 들어, 시작 이벤트가 소프트웨어 모듈(330)에 수신된 시점, 해당 작업이 실제 시작한 시점 중 하나에 해당할 수 있으나, 전술한 예에 한정되지는 않는다. 작업마다 딜레이 없는 상태에서 실행되는 시간이 다를 수 있으므로, 임계 시간도 작업에 따라 다르게 설정될 수 있다.
소프트웨어 모듈(330)은 딜레이 발생 여부를 판단하기 위한 타이머(331)를 포함할 수 있다. 타이머(331)는 미리 정해진 길이의 기준 시간이 반복적으로 만료됨으로써 동작할 수 있다. 예를 들어, 타이머(331)에 설정된 기준 시간이 100ms이고, 임계 시간이 500ms인 경우, 해당 임계 시간의 도래 여부는 기준 시간의 5번 만료 여부에 기초하여 판단될 수 있다. 타이머(331)는 복수의 스레드들(310, 320)에서 실행되는 작업들의 시작이나 종료에 무관하게 미리 정해진 길이의 기준 시간이 반복적으로 만료됨으로써 동작할 수 있다. 이처럼, 기준 시간이 반복적으로 만료되는 타이머(331)를 이용하여 몇 번의 기준 시간이 만료되었는지를 기준으로 시간을 측정함으로써, 크리티컬 섹션에 해당하는 작업이 매번 실행되고 종료될 때마다 새로 타이머를 생성하고, 삭제해서 시스템에 부하를 주는 동작을 회피하면서 효과적으로 시간을 측정할 수 있다.
예를 들어, 해당 작업에 미리 설정된 임계 시간은 500ms일 수 있으며, 이때 소프트웨어 모듈(330)은 타이머(331)에서 만료되는 기준 시간이 5번 만료되는지 여부를 판단할 수 있다.
임계 시간이 도래하기 전에 제2 스레드(320)에서 크리티컬 섹션(321)이 종료되면, 해당 작업의 종료 이벤트(343)가 소프트웨어 모듈(330)로 전달되고, 소프트웨어 모듈(330)은 임계 시간의 도래 여부를 판단하는 것을 중단할 수 있다. 이때는 딜레이 발생 없이 작업이 정상적으로 수행된 것으로 판단하고, 별도의 리소스 제어는 수행되지 않는다.
동일 락을 사용하는 제1 스레드(310)의 크리티컬 섹션(311)과 제2 스레드(320)의 크리티컬 섹션(323)이 발생한 경우를 가정한다. 제1 스레드(310)의 크리티컬 섹션(311)이 제2 스레드(320)의 크리티컬 섹션(323)보다 먼저 시작하여 락을 사용할 경우, 크리티컬 섹션(323)은 해당 락에 의해 필요한 데이터로의 액세스가 거부되어 해당 락이 해제될 때까지 동작을 수행하지 못하고 대기할 수 있다. 이러한 대기 구간을 병목 구간(350)으로 지칭할 수 있다. 제2 스레드(320)의 크리티컬 섹션(323)이 더 이상 수행되지 못하고 대기하고 있더라도 이미 시작되었으므로, 대응하는 시작 이벤트(345)가 소프트웨어 모듈(330)로 전달되고, 소프트웨어 모듈(330)은 해당 작업의 시작에 대응하는 시점부터 해당 작업에 미리 설정된 임계 시간이 도래하는지를 타이머(331)로 판단할 수 있다. 예를 들어, 해당 작업에 미리 설정된 임계 시간은 500ms일 수 있으며, 이때 소프트웨어 모듈(330)은 타이머(331)에서 만료되는 기준 시간이 5번 만료되는지 여부를 판단할 수 있다.
병목 구간(350)에 의해 크리티컬 섹션(323)이 종료되기 전에 임계 시간이 도래할 수 있다(347). 임계 시간이 도래하면, 소프트웨어 모듈(330)이 딜레이가 발생한 것을 감지할 수 있다. 딜레이가 검출되면, 크리티컬 섹션(323)의 동작을 위해 하나 이상의 리소스들이 제어될 수 있다. 크리티컬 섹션(323)의 동작을 가속할 수 있는 하나 이상의 리소스들이 크리티컬 섹션(323)에 할당될 수 있다.
하나 이상의 리소스들에 대한 제어는 전자 장치에 포함된 컴포넌트들의 동작 클럭 제어, 가용 메모리 제어 또는 BG 프로세서 제어 중 하나 이상을 포함할 수 있다. 컴포넌트들의 동작 클럭 제어는 전자 장치에 포함된 프로세서(예: CPU, GPU), 버스의 동작 클럭에 대한 제어로서, 예를 들어, HyperHAL을 통한 부스트 및 제한해제를 포함하며, 동작 클럭을 높임으로써 보다 빠른 동작을 유도할 수 있다. 또한, 가용 메모리 제어는 해당 작업에 더 많은 메모리를 할당함으로써 동작 가속을 유도하는 것으로, 예를 들어, 메모리 부족 시 메모리 리클레임(memory reclaim) 동작 혹은 자동으로 작업을 죽이는 lmkd(low memory killer daemon) 기법을 유도하는 것을 통해 가용 메모리가 선제적으로 확보될 수 있다. 또한, BG 프로세서 제어는 사용자 간섭 없이 보이지 않는 백그라운드에서 실행 중인 컴퓨터 프로세스를 제어하는 기법으로, 예를 들어, 백그라운드에서 실행 중인 프로세서를 제한함으로써 포그라운드 작업을 가속시킬 수 있다. 다시 말해서 현재 실행 중인 어플리케이션의 실행 속도를 향상시키기 위해서, 진입하는 어플리케이션(다시 말해, 탑 어플리케이션(top application)) 외의 백그라운드 프로세스를 정지시켜 리소스 경쟁 조건(resource race condition)을 최대한 줄이는 기법일 수 있다. 해당 기법을 이용하면, 어플리케이션 진입 외에도 병목 상황을 감지하여 현재 사용자 인터렉션(user interaction)이 있는 어플리케이션을 탑 어플리케이션으로 정하고, 백그라운드 프로세스와의 리소스 경쟁 조건을 최대한 줄임으로써 어플리케이션의 동작을 최대한 보장할 수 있다.
크리티컬 섹션(323)이 종료되는 종료 이벤트(349)가 소프트웨어 모듈(330)로 전달되면, 소프트웨어 모듈(330)은 발생한 딜레이 시간에 대한 정보를 취합한다. 이러한 딜레이 정보는 추후 딜레이를 대비하는 작업에 활용될 수 있으나, 전술한 예에 한정되지는 않는다.
실제 전자 장치의 동작이 수행되는 복수의 스레드들(310, 320)과 구별되는 소프트웨어 모듈(330)에서 타이머(331)가 작업의 시작이나 종료에 무관하게 미리 정해진 길이의 기준 시간이 반복적으로 만료되어 동작함으로써, 성능 병목 현상이 종료되기 전에 실시간으로 병목 구간(350)을 감지하고, 필요한 리소스를 선제적으로 할당하여 사용자가 체감하는 딜레이를 최소화하고, 전자 장치의 성능을 향상시킬 수 있다. 이를 통해, 성능 병목 현상이 연속해서 발생하는 경우나 순간적으로 발생하는 경우에도 신속하고 효과적으로 성능 병목 현상을 개선할 수 있다.
도 3에서는 설명의 편의를 위하여 딜레이 판단 동작의 대상이 제2 스레드(320)인 경우를 기준으로 설명하였으나, 실시예가 이에 한정되지 않으며, 본 명세서에서 설명한 사항들이 제1 스레드(310)나 도 3에 도시되지 않은 다른 스레드에 대해서도 마찬가지로 적용될 수 있다.
도 4는 본 개시의 일 실시예에 따른 딜레이 판단 동작을 시퀀스 다이어그램으로 나타낸 도면이다.
도 4를 참조하면, 딜레이 판단 동작의 대상이 되는 스레드(예: 도 3의 제2 스레드(320))에서 크리티컬 섹션(예: 도 3의 크리티컬 섹션들(321, 323))의 시작 이벤트 및 종료 이벤트 발생에 따른 소프트웨어 모듈(예: 도 3의 소프트웨어 모듈(330))의 동작이 시퀀스 다이어그램으로 예시적으로 도시된다.
도 4를 참조하면, 소프트웨어 모듈이 생성될 때 수행되는 초기화(initialize) 동작에서 이벤트 핸들러(EventHandler)(410)가 생성되고, 타이머 생성(create timer)(430) 동작으로 타이머(420)(예: 도 3의 타이머(331))가 생성될 수 있다. 생성된 타이머(420)는 크리티컬 섹션의 시작이나 종료에 무관하게 미리 정해진 길이의 기준 시간이 반복적으로 만료됨으로써 동작할 수 있다.
크리티컬 섹션의 시작 이벤트가 발생하면, 이벤트 핸들러(410)는 해당 크리티컬 섹션에 대한 아이디가 등록되었는지를 판단할 수 있다. 아이디가 등록되었는지 여부를 판단하는 것은 현재 해당 크리티컬 섹션에 대응하는 임계 시간이 도래하는지 여부를 판단하고 있는 것인지를 확인하기 위한 것일 수 있다. 만약 해당 크리티컬 섹션의 시작 이벤트에 의해 이미 임계 시간이 도래하는지 여부가 판단하고 있는 상황이 아니라면, 아이디가 등록되지 않은 것(id is not registered)(440-1)으로 판단될 수 있다. 이 경우, 타이머(420)로 아이디 등록 및 임계 시간 설정(register id and set threshold time)(440-2)을 요청할 수 있다. 타이머(420)는 해당 요청에 기초하여 해당 크리티컬 섹션에 미리 정해진 임계 시간의 도래 여부를 판단하는 것을 시작할 수 있다.
이벤트 핸들러(410)는 해당 크리티컬 섹션의 다음 이벤트(예: 종료 이벤트)가 수신될 때까지 임계 시간(450-1) 동안 기준 시간의 만료(expires)(450-2)와 기준 시간의 설정(set timer)(450-3)을 반복할 수 있다.
크리티컬 섹션의 종료 이벤트가 임계 시간 도래 전에 수신되고, 해당 크리티컬 섹션의 아이디가 등록된 것이라면(460-1), 현재 타이머(420)에서 대응하는 임계 시간의 도래 여부가 판단되고 있다는 것을 의미할 수 있다. 이벤트 핸들러(410)는 타이머(420)로 해당 아이디를 등록 취소하고, 임계 시간 취소(unregister id and cancel threshold time)(460-2)를 요청할 수 있다. 타이머(420)는 해당 요청에 따라 임계 시간의 도래 여부를 판단하는 것을 중단할 수 있다.
반대로, 크리티컬 섹션의 종료 이벤트가 임계 시간 도래 전에 수신되지 않으면, 병목 현상에 따른 딜레이가 발생한 것으로 판단하고, 병목 정보(470)가 리소스 제어 모듈로 전달되어, 크리티컬 경로(critical path) 내 병목 딜레이가 효과적으로 감소될 수 있다.
도 5는 본 개시의 일 실시예에 따른 소프트웨어 모듈로 이벤트가 전달되는 동작을 설명하기 위한 도면이다.
도 5를 참조하면, 이벤트 플러그-인(event plug-in)(510)에서 소프트웨어 모듈(520)(예: 도 3의 소프트웨어 모듈(330))로 이벤트가 전달되는 예시가 도시된다.
도 5를 참조하면, 이벤트 플러그-인(510)은 시스템 프로세스에 클래스(class)와 JNI 라이브러리(Java Native Interface library) 형태로 제공되고, 시스템 프로세스의 상황을 이벤트로 생성해서 소프트웨어 모듈(520)로 전달할 수 있다. 이벤트 프로세서 내 소프트웨어 모듈(520)은 이벤트 플러그-인(510)으로부터 이벤트를 수신하면, 해당 이벤트에 대응하는 임계 시간의 도래 여부를 판단할 수 있다. 소프트웨어 모듈(520)은 미리 정해진 개수의 기준 시간이 만료되어 임계 시간이 도래할 때까지 종료 이벤트가 수신되지 않으면, 병목 현상에 따른 딜레이가 발생한 것으로 판단할 수 있다. 소프트웨어 모듈(520)은 딜레이가 발생한 것으로 판단되면 필요한 시스템 리소스를 활용할 수 있도록 리소스 제어 모듈(530)로 병목 정보(예: 도 4의 병목 정보(470))를 전달하여 크리티컬 경로 내 병목 딜레이를 효율적으로 감소시킬 수 있다.
앞서 설명한 것처럼, 별도의 타이머(예: 도 3의 타이머(331) 및 도 4의 타이머(420))를 통해 딜레이가 발생하였는지를 실시간으로 감시함으로써, 온 디바이스(on device)에서 병목 상태를 빠르게 파악하여 동적으로 시스템 리소스를 할당할 수 있어, 시스템 병목 상태를 개선할 수 있다. 또한, 복합적인 원인으로 발생하는 시스템 부하 상황에서도 온 디바이스에서 동적으로 병목 현상 발생 여부를 판단하여 즉각적인 조치를 할 수 있다. 또한, 디바이스의 바쁜(busy) 상태를 실시간으로 동적으로 파악해서, 필요한 리소스를 적시적소에 지원할 수 있어, 한정된 리소스를 효율적으로 사용해서 성능을 효과적으로 향상시킬 수 있다.
도 6은 본 개시의 일 실시예에 따른 전자 장치의 동작 방법을 나타낸 도면이다.
이하 실시예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 동작(610) 내지 동작(640)은 전자 장치(예: 도 1의 전자 장치(101))의 적어도 하나의 구성요소(예: 도 1의 프로세서(120))에 의해 수행될 수 있다.
도 6을 참조하면, 동작(610)에서, 전자 장치는 미리 정해진 작업의 시작에 대응하는 시점부터 작업에 미리 설정된 임계 시간이 도래하는지를 타이머(예: 도 3의 타이머(331) 및 도 4의 타이머(420))로 판단할 수 있다.
동작(620)에서, 전자 장치는 임계 시간이 도래하기 전에 작업이 종료되는지를 판단할 수 있다. 임계 시간이 도래하기 전에 작업이 종료되는 것으로 판단된 경우에 응답하여 동작(630)이 이어서 수행될 수 있다. 반대로 작업이 종료되기 전에 임계 시간이 도래한 것으로 판단된 경우에 응답하여 동작(640)이 이어서 수행될 수 있다.
동작(630)에서, 전자 장치는 임계 시간의 도래 여부를 판단하는 것을 중단할 수 있다. 전자 장치는 딜레이가 발생하지 않은 것으로 판단하고, 임계 시간의 도래 여부를 판단하는 동작을 중단할 수 있다.
동작(640)에서, 전자 장치는 작업을 수행하기 위한 하나 이상의 리소스들을 제어할 수 있다. 전자 장치는 딜레이가 발생한 것으로 판단하고, 병목 현상 해소를 위해 하나 이상의 리소스들을 제어할 수 있다.
일 실시예에 따르면, 전자 장치의 동작 방법은 미리 정해진 작업의 시작에 대응하는 시점부터 작업에 미리 설정된 임계 시간이 도래하는지를 타이머로 판단하는 동작, 임계 시간이 도래하기 전에 작업이 종료되는 경우에 응답하여, 임계 시간의 도래 여부를 판단하는 것을 중단하는 동작 및 작업이 종료되기 전에 임계 시간이 도래한 경우에 응답하여, 작업을 수행하기 위한 하나 이상의 리소스들을 제어하는 동작을 포함할 수 있다.
일 실시예에 따르면, 전자 장치의 동작 방법에서 타이머는 작업의 시작이나 종료에 무관하게 미리 정해진 길이의 기준 시간이 반복적으로 만료됨으로써 동작할 수 있다.
일 실시예에 따르면, 전자 장치의 동작 방법에서 임계 시간이 도래하는지는 작업의 시작에 대응하는 시점부터 기준 시간이 몇 번 만료되었는지에 기반하여 판단될 수 있다.
일 실시예에 따르면, 전자 장치의 동작 방법에서 타이머는 작업이 수행되는 스레드에 구별되는 소프트웨어 모듈(예: 도 3의 소프트웨어 모듈(330) 및 도 5의 소프트웨어 모듈(520))에서 동작하고, 판단하는 동작은 작업의 시작에 대응하는 시작 이벤트가 스레드에서 소프트웨어 모듈로 전달됨에 응답해서 임계 시간의 도래 여부를 타이머로 판단하는 것을 시작할 수 있다.
일 실시예에 따르면, 전자 장치의 동작 방법에서 중단하는 동작은 작업이 종료되면, 대응하는 종료 이벤트가 스레드에서 소프트웨어 모듈로 전달됨에 응답해서 임계 시간의 도래 여부를 타이머로 판단하는 것을 중단할 수 있다.
일 실시예에 따르면, 전자 장치의 동작 방법에서 미리 정해진 작업은 전자 장치를 사용하는 사용자가 체감할 수 있는 딜레이가 발생 가능한 작업일 수 있다.
일 실시예에 따르면, 전자 장치의 동작 방법에서 미리 정해진 작업은 다른 스레드와 동일한 락을 사용하는 작업, 다른 스레드와 공유하는 변수를 사용하는 작업, 다른 스레드와 I/O를 공유하는 작업, 다른 스레드와 메모리를 공유하는 작업, 전자 장치의 화면에 출력을 담당하는 작업 또는 사용자로부터 입력된 요청에 따른 작업 중 하나 이상을 포함할 수 있다.
일 실시예에 따르면, 전자 장치의 동작 방법에서 임계 시간은 시작하는 작업에 따라 결정될 수 있다.
일 실시예에 따르면, 전자 장치의 동작 방법에서 제어하는 동작은 작업이 종료되기 전에 임계 시간이 도래한 경우에 응답하여, 작업과 관련된 전자 장치에 포함된 컴포넌트들의 동작 클럭, 가용 메모리 또는 BG(background) 프로세서 중 하나 이상을 제어할 수 있다.
도 7은 본 개시의 일 실시예에 따른 전자 장치를 나타낸 도면이다.
도 7을 참조하면, 일 실시예에 따른 전자 장치(700)(예: 도 1의 전자 장치(101))는 메모리(710)(예: 도 1의 메모리(130)) 및 프로세서(720)(예: 도 1의 프로세서(120))를 포함할 수 있다.
일 실시예에 따른 전자 장치(700)는 사용자 단말로 구현될 수 있다. 예를 들어, 사용자 단말은 휴대폰, 스마트 폰, 태블릿, 랩탑, 퍼스널 컴퓨터, 또는 전자북 장치와 같은 다양한 컴퓨팅 장치, 스마트 시계, 스마트 안경, HMD, 또는 스마트 의류와 같은 다양한 웨어러블 기기, 스마트 스피커, 스마트 TV, 또는 스마트 냉장고와 같은 다양한 가전장치, 스마트 자동차, 스마트 키오스크, IoT 기기, WAD, 드론, 또는 로봇을 포함할 수 있다.
메모리(710)는 컴퓨터에서 읽을 수 있는 명령어를 포함할 수 있다. 프로세서(720)는 메모리(710)에 저장된 명령어가 프로세서(720)에서 실행됨에 따라 앞서 언급된 동작들을 수행할 수 있다. 메모리(710)는 휘발성 메모리 또는 비휘발성 메모리일 수 있다. 프로세서(720)는 명령어들, 혹은 프로그램들을 실행하거나, 전자 장치(700)를 제어하는 장치일 수 있다.
프로세서(720)는 미리 정해진 작업의 시작에 대응하는 시점부터 작업에 미리 설정된 임계 시간이 도래하는지를 타이머로 판단하고, 임계 시간이 도래하기 전에 작업이 종료되는 경우에 응답하여, 임계 시간의 도래 여부를 판단하는 것을 중단하고, 작업이 종료되기 전에 임계 시간이 도래한 경우에 응답하여, 작업을 수행하기 위한 하나 이상의 리소스들을 제어할 수 있다.
그 밖에, 전자 장치(700)에 관해서는 상술된 동작을 처리할 수 있다.
일 실시예에 따르면, 전자 장치(700)는 프로세서(720) 및 프로세서(720)에 의해 실행 가능한 적어도 하나의 명령어를 포함하는 메모리(710)를 포함한다. 적어도 하나의 명령어가 프로세서(720)에서 실행되면, 프로세서(720)는 미리 정해진 작업의 시작에 대응하는 시점부터 미리 정해진 작업에 미리 설정된 임계 시간이 도래하는지를 타이머로 판단하고, 임계 시간이 도래하기 전에 미리 정해진 작업이 종료되는 경우에 응답하여, 임계 시간의 도래 여부를 판단하는 것을 중단하고, 미리 정해진 작업이 종료되기 전에 임계 시간이 도래한 경우에 응답하여, 미리 정해진 작업을 수행하기 위한 하나 이상의 리소스들을 제어할 수 있다.
일 실시예에 따르면, 전자 장치(700)에서 타이머는 미리 정해진 작업의 시작이나 종료에 무관하게 미리 정해진 길이의 기준 시간이 반복적으로 만료됨으로써 동작할 수 있다.
일 실시예에 따르면, 전자 장치(700)에서 임계 시간이 도래하는지는 미리 정해진 작업의 시작에 대응하는 시점부터 기준 시간이 몇 번 만료되었는지에 기반하여 판단될 수 있다.
일 실시예에 따르면, 전자 장치(700)에서 타이머는 미리 정해진 작업이 수행되는 스레드에 구별되는 소프트웨어 모듈(예: 도 3의 소프트웨어 모듈(330) 및 도 5의 소프트웨어 모듈(520))에서 동작하고, 미리 정해진 작업의 시작에 대응하는 시작 이벤트가 스레드에서 소프트웨어 모듈로 전달되고, 소프트웨어 모듈은 시작 이벤트의 수신에 응답해서 임계 시간의 도래 여부를 타이머로 판단하는 것을 시작할 수 있다.
일 실시예에 따르면, 전자 장치(700)에서 미리 정해진 작업이 종료되면, 대응하는 종료 이벤트가 스레드에서 소프트웨어 모듈로 전달되고, 소프트웨어 모듈은 종료 이벤트의 수신에 응답해서 임계 시간의 도래 여부를 타이머로 판단하는 것을 중단할 수 있다.
일 실시예에 따르면, 전자 장치(700)에서 미리 정해진 작업은 전자 장치를 사용하는 사용자가 체감할 수 있는 딜레이가 발생 가능한 작업일 수 있다.
일 실시예에 따르면, 전자 장치(700)에서 미리 정해진 작업은 다른 스레드와 동일한 락을 사용하는 작업, 다른 스레드와 공유하는 변수를 사용하는 작업, 다른 스레드와 I/O를 공유하는 작업, 다른 스레드와 메모리(710)를 공유하는 작업, 상기 전자 장치(700)의 화면에 출력을 담당하는 작업 또는 사용자로부터 입력된 요청에 따른 작업 중 하나 이상을 포함할 수 있다.
일 실시예에 따르면, 전자 장치(700)에서 임계 시간은 시작하는 작업에 따라 결정될 수 있다.
일 실시예에 따르면, 전자 장치(700)에서 프로세서(720)는 미리 정해진 작업이 종료되기 전에 임계 시간이 도래한 경우에 응답하여, 미리 정해진 작업과 관련된 전자 장치에 포함된 컴포넌트들의 동작 클럭, 미리 정해진 작업과 관련된 가용 메모리 및 BG(background) 프로세서 중 하나 이상을 제어할 수 있다.
본 개시를 다양한 실시예를 참조하여 도시하고 설명하였지만, 본 개시가 첨부된 청구범위 및 그 등가물에 의해 정의된 본 개시의 사상 및 범위를 벗어나지 않고 형태 및 세부사항의 다양한 변형이 이루어질 수 있음을 본 개시가 속하는 기술 분야에서 통상의 지식을 가진 자가 이해할 것이다.

Claims (15)

  1. 전자 장치에 있어서,
    적어도 하나의 프로세서; 및
    상기 적어도 하나의 프로세서에 의해 실행 가능한 적어도 하나의 명령어를 포함하는 메모리
    를 포함하고,
    상기 적어도 하나의 명령어가 상기 적어도 하나의 프로세서에서 실행되면, 상기 프로세서는
    미리 정해진 작업의 시작에 대응하는 시점부터 상기 작업에 미리 설정된 임계 시간이 도래하는지를 타이머로 판단하고,
    상기 임계 시간이 도래하기 전에 상기 미리 정해진 작업이 종료되는 경우에 응답하여, 상기 임계 시간의 도래 여부를 판단하는 것을 중단하고,
    상기 미리 정해진 작업이 종료되기 전에 상기 임계 시간이 도래한 경우에 응답하여, 상기 미리 정해진 작업을 수행하기 위한 하나 이상의 리소스들을 제어하는,
    전자 장치.
  2. 제1항에 있어서,
    상기 타이머는 상기 미리 정해진 작업의 시작이나 종료에 무관하게 미리 정해진 길이의 기준 시간이 반복적으로 만료됨으로써 동작하는,
    전자 장치.
  3. 제2항에 있어서,
    상기 임계 시간이 도래하는지는 상기 미리 정해진 작업의 시작에 대응하는 시점부터 상기 기준 시간이 몇 번 만료되었는지에 기반하여 판단되는,
    전자 장치.
  4. 제1항에 있어서,
    상기 타이머는 상기 미리 정해진 작업이 수행되는 스레드에 구별되는 소프트웨어 모듈에서 동작하고,
    상기 미리 정해진 작업의 시작에 대응하는 시작 이벤트가 상기 스레드에서 상기 소프트웨어 모듈로 전달되고,
    상기 소프트웨어 모듈은 상기 시작 이벤트의 수신에 응답해서 상기 임계 시간의 도래 여부를 상기 타이머로 판단하는 것을 시작하는,
    전자 장치.
  5. 제4항에 있어서,
    상기 미리 정해진 작업이 종료되면, 대응하는 종료 이벤트가 상기 스레드에서 상기 소프트웨어 모듈로 전달되고,
    상기 소프트웨어 모듈은 상기 종료 이벤트의 수신에 응답해서 상기 임계 시간의 도래 여부를 상기 타이머로 판단하는 것을 중단하는,
    전자 장치.
  6. 제1항에 있어서,
    상기 미리 정해진 작업은
    상기 전자 장치를 사용하는 사용자가 체감할 수 있는 딜레이가 발생 가능한 작업인,
    전자 장치.
  7. 제1항에 있어서,
    상기 미리 정해진 작업은
    다른 스레드와 동일한 락을 사용하는 작업;
    다른 스레드와 공유하는 변수를 사용하는 작업;
    다른 스레드와 I/O를 공유하는 작업;
    다른 스레드와 메모리를 공유하는 작업;
    상기 전자 장치의 화면에 출력을 담당하는 작업; 또는
    사용자로부터 입력된 요청에 따른 작업
    중 하나 이상을 포함하는,
    전자 장치.
  8. 제1항에 있어서,
    상기 임계 시간은 시작하는 작업에 따라 결정되는,
    전자 장치.
  9. 제1항에 있어서,
    상기 적어도 하나의 프로세서는
    상기 미리 정해진 작업이 종료되기 전에 상기 임계 시간이 도래한 경우에 응답하여,
    상기 미리 정해진 작업과 관련된 상기 전자 장치에 포함된 컴포넌트들의 동작 클럭;
    상기 미리 정해진 작업과 관련된 가용 메모리; 또는
    BG(background) 프로세서
    중 하나 이상을 제어하는,
    전자 장치.
  10. 제1항에 있어서,
    상기 적어도 하나의 프로세서는
    상기 하나 이상의 리소스들을 제어해서 상기 미리 정해진 작업이 종료되면, 상기 미리 정해진 작업에 대한 딜레이 시간을 획득하는,
    전자 장치.
  11. 전자 장치의 동작 방법에 있어서,
    미리 정해진 작업의 시작에 대응하는 시점부터 상기 미리 정해진 작업에 미리 설정된 임계 시간이 도래하는지를 타이머로 판단하는 동작;
    상기 임계 시간이 도래하기 전에 상기 미리 정해진 작업이 종료되는 경우에 응답하여, 상기 임계 시간의 도래 여부를 판단하는 것을 중단하는 동작; 및
    상기 미리 정해진 작업이 종료되기 전에 상기 임계 시간이 도래한 경우에 응답하여, 상기 미리 정해진 작업을 수행하기 위한 하나 이상의 리소스들을 제어하는 동작
    을 포함하는,
    전자 장치의 동작 방법.
  12. 제11항에 있어서,
    상기 타이머는 상기 미리 정해진 작업이 수행되는 스레드에 구별되는 소프트웨어 모듈에서 동작하고,
    상기 판단하는 동작은
    상기 미리 정해진 작업의 시작에 대응하는 시작 이벤트가 상기 스레드에서 상기 소프트웨어 모듈로 전달됨에 응답해서 상기 임계 시간의 도래 여부를 상기 타이머로 판단하는 것을 시작하고,
    상기 작업의 시작에 대응하는 상기 시점은
    상기 소프트웨어 모듈이 상기 시작 이벤트를 수신한 시점 또는 상기 미리 정해진 작업이 실제 시작한 시점 중 하나인
    전자 장치의 동작 방법.
  13. 제11항에 있어서,
    상기 제어하는 동작은
    상기 미리 정해진 작업이 종료되기 전에 상기 임계 시간이 도래한 경우에 응답하여,
    상기 미리 정해진 작업과 관련된 상기 전자 장치에 포함된 컴포넌트들의 동작 클럭;
    상기 미리 정해진 작업과 관련된 가용 메모리; 및
    BG(background) 프로세서
    중 하나 이상을 제어하고,
    상기 컴포넌트들의 동작 클럭은 프로세서의 동작 클럭 또는 상기 전자 장치에 포함된 버스의 적어도 하나를 제어하는,
    전자 장치의 동작 방법.
  14. 제11항에 있어서,
    상기 임계 시간은
    각각 상이한 작업에 따라 다르게 설정되는,
    전자 장치의 동작 방법.
  15. 프로세서에 의해 실행될 때 상기 프로세서로 하여금 전자 장치의 동작 방법을 수행하게 하는 명령어를 저장하는 비일시적 컴퓨터 판독 가능한 저장 매체로서, 상기 동작 방법은
    미리 정해진 작업의 시작에 대응하는 시점부터 상기 미리 정해진 작업에 미리 설정된 임계 시간이 도래하는지를 타이머로 판단하는 동작;
    상기 임계 시간이 도래하기 전에 상기 미리 정해진 작업이 종료되는 경우에 응답하여, 상기 임계 시간의 도래 여부를 판단하는 것을 중단하는 동작; 및
    상기 미리 정해진 작업이 종료되기 전에 상기 임계 시간이 도래한 경우에 응답하여, 상기 미리 정해진 작업을 수행하기 위한 하나 이상의 리소스들을 제어하는 동작
    을 포함하는
    저장 매체.
PCT/KR2023/001552 2022-03-03 2023-02-03 시스템의 성능 병목 현상을 처리하는 전자 장치 및 그 동작 방법 WO2023167438A1 (ko)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US18/178,910 US20230281036A1 (en) 2022-03-03 2023-03-06 Electronic device for handling bottleneck in system and operating method thereof

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
KR10-2022-0027501 2022-03-03
KR20220027501 2022-03-03
KR10-2022-0044056 2022-04-08
KR1020220044056A KR20230130493A (ko) 2022-03-03 2022-04-08 시스템의 성능 병목 현상을 처리하는 전자 장치 및 그 동작 방법

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/178,910 Continuation US20230281036A1 (en) 2022-03-03 2023-03-06 Electronic device for handling bottleneck in system and operating method thereof

Publications (1)

Publication Number Publication Date
WO2023167438A1 true WO2023167438A1 (ko) 2023-09-07

Family

ID=87883986

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2023/001552 WO2023167438A1 (ko) 2022-03-03 2023-02-03 시스템의 성능 병목 현상을 처리하는 전자 장치 및 그 동작 방법

Country Status (1)

Country Link
WO (1) WO2023167438A1 (ko)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002287987A (ja) * 2001-03-28 2002-10-04 Namiki Precision Jewel Co Ltd タスクの並行処理を実行させるためのプログラム及び並行処理する組込み制御装置及び並行処理方法並びにプログラムが記録されている記録媒体
KR100489947B1 (ko) * 2003-01-28 2005-05-17 삼성전자주식회사 시스템 타이머 및 이 타이머의 생성 및 동작 방법
KR20180013923A (ko) * 2015-05-29 2018-02-07 퀄컴 인코포레이티드 멀티스레디드 프로세서들에 대한 대역폭/자원 관리
JP2018195138A (ja) * 2017-05-18 2018-12-06 株式会社ジェイテクト タスク制御装置及びタスク制御方法
KR20200122364A (ko) * 2018-10-11 2020-10-27 후아웨이 테크놀러지 컴퍼니 리미티드 자원 스케줄링 방법 및 단말 장치

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002287987A (ja) * 2001-03-28 2002-10-04 Namiki Precision Jewel Co Ltd タスクの並行処理を実行させるためのプログラム及び並行処理する組込み制御装置及び並行処理方法並びにプログラムが記録されている記録媒体
KR100489947B1 (ko) * 2003-01-28 2005-05-17 삼성전자주식회사 시스템 타이머 및 이 타이머의 생성 및 동작 방법
KR20180013923A (ko) * 2015-05-29 2018-02-07 퀄컴 인코포레이티드 멀티스레디드 프로세서들에 대한 대역폭/자원 관리
JP2018195138A (ja) * 2017-05-18 2018-12-06 株式会社ジェイテクト タスク制御装置及びタスク制御方法
KR20200122364A (ko) * 2018-10-11 2020-10-27 후아웨이 테크놀러지 컴퍼니 리미티드 자원 스케줄링 방법 및 단말 장치

Similar Documents

Publication Publication Date Title
WO2021060836A1 (ko) 어플리케이션 실행 방법 및 장치
WO2021101246A2 (en) Method for preloading application and electronic device supporting same
WO2022055261A1 (ko) 메모리를 관리하기 위한 전자 장치, 전자 장치의 동작 방법, 및 비 일시적 저장 매체
WO2023167438A1 (ko) 시스템의 성능 병목 현상을 처리하는 전자 장치 및 그 동작 방법
WO2022154380A1 (ko) 전자 장치 및 전자 장치의 메모리 관리 방법
WO2022265190A1 (ko) 전자 장치 및 이의 동작 방법
WO2022203180A1 (ko) 뉴럴 네트워크에 대한 해시 인증을 수행하는 전자 장치 및 그 동작 방법
WO2022154264A1 (ko) 전자 장치 및 전자 장치의 동작 방법
WO2022154289A1 (ko) 메모리를 관리하는 전자 장치와 이의 동작 방법
WO2021157837A1 (en) Electronic device for scheduling based on heterogeneous multi-processor and operating method
WO2022196889A1 (ko) 멀티 프로세서를 포함하는 전자 장치 및 그 운용 방법
WO2024112075A1 (ko) 하나 이상의 메신저 데이터 세트들에 대응하는 프로세스의 기능을 제어하기 위한 전자 장치 및 그 방법
WO2024076068A1 (ko) 복수의 프로세스들의 릴리즈를 제어하기 위한 전자 장치 및 그 방법
WO2022244961A1 (ko) 제어 방법 및 그 방법을 이용하는 장치
WO2023106636A1 (ko) 전자 장치 및 전자 장치에서 백그라운드 프로세스 제어 기반의 발열 제어 방법
WO2023013866A1 (ko) 어플리케이션 최적화 방법 및 이를 지원하는 장치
WO2022177061A1 (ko) 비정상적인 앱을 백그라운드에서 미리 로딩하는 전자 장치 및 그의 동작 방법
WO2023013875A1 (ko) 가비지 컬렉션의 동작 감소를 위한 장치 및 방법
WO2022030964A1 (ko) 가상 메모리의 할당 방법 및 이를 지원하는 전자 장치
WO2022255542A1 (ko) 전자 장치 및 전자 장치의 센서 데이터 처리 방법
US20230281036A1 (en) Electronic device for handling bottleneck in system and operating method thereof
WO2022149970A1 (ko) 서비스 운용 방법 및 이를 지원하는 전자 장치
WO2023068734A1 (ko) 웨어러블 장치와 통신하는 전자 장치 및 그 제어 방법
KR20230130493A (ko) 시스템의 성능 병목 현상을 처리하는 전자 장치 및 그 동작 방법
WO2023018066A1 (ko) 패킷 전송 제어 방법 및 장치

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: 23763637

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2023763637

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2023763637

Country of ref document: EP

Effective date: 20240405