Electronic device, method, and computer-readable storage medium for executing each of plurality of threads through at least one cluster
By employing a processor with multiple frequency clusters and dynamic thread management, the electronic device optimizes thread execution and resource allocation, addressing inefficiencies in managing multiple threads and enhancing performance.
Patent Information
- Application Number
- PCT/KR2024/003754
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-25
- Filing Date
- 2024-03-26
- Publication Date
- 2024-10-03
AI Technical Summary
Current electronic devices face challenges in efficiently managing and executing multiple threads across different processor clusters due to limitations in frequency management and thread prioritization, leading to suboptimal performance and resource utilization.
The implementation of a processor with multiple clusters, each operating at distinct frequency ranges, allows for dynamic thread execution and prioritization based on identifying specific call events, enabling temporary suspension and migration of threads between clusters to optimize resource allocation and performance.
This approach enhances the electronic device's ability to quickly process threads by allocating resources effectively, reducing waiting times and improving overall performance by executing threads on the cluster with the highest available frequency.
Smart Images

Figure KR2024003754_03102024_PF_FP_ABST
Abstract
Description
Electronic device, method, and computer-readable storage medium for executing each of a plurality of threads through at least one cluster
[0001] The disclosure relates to an electronic device, a method, and a computer-readable storage medium for executing each of a plurality of threads through at least one cluster.
[0002] Recently, the proliferation of various types of portable electronic devices, such as smartphones, tablet PCs, wireless earphones, and / or smartwatches, has increased. These portable electronic devices may include a processor (e.g., a central processing unit (CPU)). The electronic devices can operate multiple clusters within the processor based on various frequencies.
[0003] In one embodiment, an electronic device may include a memory storing instructions and including one or more storage media, and a processor including a first cluster including one or more cores operating in a first frequency range and a second cluster including one or more cores having a maximum frequency less than a maximum frequency of the first frequency range. The instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to execute a first thread using the first cluster based on identifying a first thread to be executed through the first cluster among a plurality of threads executed based on the processor. The instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to identify a call event requiring execution of a second thread for execution of the first thread based on executing the first thread using the first cluster. The instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to at least temporarily suspend execution of the first thread using the first cluster based on identifying the call event for executing the second thread corresponding to the second cluster. The instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to execute the second thread corresponding to the second cluster via the first cluster.
[0004] In one embodiment, a method performed by an electronic device may include an operation of executing a first thread using a first cluster based on identifying a first thread to be executed through a first cluster among a plurality of threads executed based on a processor. The method may include an operation of identifying a call event requiring execution of a second thread for execution of the first thread based on executing the first thread using the first cluster. The method may include an operation of at least temporarily suspending execution of the first thread using the first cluster based on identifying the call event for executing the second thread corresponding to the second cluster. The method may include an operation of executing the second thread corresponding to the second cluster through the first cluster.
[0005] A computer-readable storage medium storing one or more programs according to one embodiment, wherein the one or more programs may include instructions that, when individually or collectively executed by at least one processor including a processing circuit of an electronic device, cause the electronic device to execute a first thread using a first cluster based on identifying a first thread to be executed through a first cluster among a plurality of threads executed based on the processor. The one or more programs may include instructions that, when individually or collectively executed by the at least one processor of the electronic device, cause the electronic device to identify a call event requiring execution of a second thread for execution of the first thread based on executing the first thread using the first cluster. The one or more programs may, individually or collectively, include instructions that, when executed by the at least one processor of the electronic device, cause the electronic device to at least temporarily suspend execution of the first thread using the first cluster based on identifying the call event for executing the second thread corresponding to the second cluster. The one or more programs may, individually or collectively, include instructions that, when executed by the at least one processor of the electronic device, cause the electronic device to execute the second thread corresponding to the second cluster via the first cluster.
[0006] FIG. 1 illustrates an example of an electronic device within a network environment, according to one embodiment.
[0007] FIG. 2 illustrates an example of a block diagram of an electronic device according to one embodiment.
[0008] FIG. 3 illustrates an example of components contained within a memory, according to one embodiment.
[0009] FIG. 4 illustrates an example of an operation of an electronic device according to one embodiment of the present invention to execute each of a plurality of threads using each of a plurality of clusters.
[0010] FIG. 5 illustrates an exemplary flowchart illustrating the operation of an electronic device according to one embodiment.
[0011] FIG. 6 illustrates an exemplary flowchart illustrating the operation of an electronic device according to one embodiment.
[0012] FIG. 7 illustrates an exemplary flowchart illustrating the operation of an electronic device according to one embodiment.
[0013] FIG. 8 illustrates an exemplary flowchart illustrating the operation of an electronic device according to one embodiment.
[0014] FIG. 9 illustrates an exemplary flowchart illustrating the operation of an electronic device according to one embodiment.
[0015] FIG. 10 illustrates an exemplary flowchart illustrating the operation of an electronic device according to one embodiment.
[0016] FIG. 1 illustrates an example block diagram of an electronic device within a network environment, according to one embodiment.
[0017] Referring to FIG. 1, in a network environment (100), an electronic device (101) may communicate with an electronic device (102) via a first network (198) (e.g., a short-range wireless communication network), or may communicate with at least one of an electronic device (104) or a server (108) via a second network (199) (e.g., a long-range wireless communication network). According to one embodiment, the electronic device (101) may communicate with the electronic device (104) via the server (108). According to one embodiment, the electronic device (101) may include 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), an interface (177), a connection terminal (178), a haptic module (179), a camera module (180), a power management module (188), a battery (189), a communication module (190), a subscriber identification module (196), or an antenna module (197). In some embodiments, the electronic device (101) may omit at least one of these components (e.g., the connection terminal (178)), or may have one or more other components added. In some embodiments, some of these components (e.g., the sensor module (176), the camera module (180), or the antenna module (197)) may be integrated into one component (e.g., the display module (160)).
[0018] The processor (120) may, for example, execute software (e.g., a program (140)) to control at least one other component (e.g., a hardware or software component) of the electronic device (101) connected to the processor (120) and perform various data processing or operations. According to one embodiment, as at least a part of the data processing or operations, the processor (120) may store commands or data received from other components (e.g., a sensor module (176) or a communication module (190)) in a volatile memory (132), process the commands or data stored in the volatile memory (132), and store result data in a non-volatile memory (134). According to one embodiment, the processor (120) may include a main processor (121) (e.g., a central processing unit or an application processor) or an auxiliary processor (123) (e.g., a graphics processing unit, a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor) that can operate independently or together with the main processor (121). For example, when the electronic device (101) includes the main processor (121) and the auxiliary processor (123), the auxiliary processor (123) may be configured to use less power than the main processor (121) or to be specialized for a given function. The auxiliary processor (123) may be implemented separately from the main processor (121) or as a part thereof.
[0019] The auxiliary processor (123) may control at least a portion of functions or states associated with at least one component (e.g., a display module (160), a sensor module (176), or a communication module (190)) of the electronic device (101), for example, on behalf of the main processor (121) while the main processor (121) is in an inactive (e.g., sleep) state, or together with the main processor (121) while the main processor (121) is in an active (e.g., application execution) state. In one embodiment, the auxiliary processor (123) (e.g., an image signal processor or a communication processor) may be implemented as a part of another functionally related component (e.g., a camera module (180) or a communication module (190)). In one embodiment, the auxiliary processor (123) (e.g., a neural network processing unit) may include a hardware structure specialized for processing artificial intelligence models. The artificial intelligence models may be generated through machine learning. This learning can be performed, for example, on the electronic device (101) itself where the artificial intelligence model is executed, or can be performed through a separate server (e.g., server (108)). The learning algorithm can include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but is not limited to the examples described above. The artificial intelligence model can include multiple artificial neural network layers.The artificial neural network may be one of a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), a deep Q-network, or a combination of two or more of the above, but is not limited to the examples described above. In addition to, or alternatively to, a hardware structure, an artificial intelligence model may include a software structure.
[0020] The memory (130) can store various data used by at least one component (e.g., processor (120) or sensor module (176)) of the electronic device (101). The data can include, for example, software (e.g., program (140)) and input data or output data for commands related thereto. The memory (130) can include volatile memory (132) or non-volatile memory (134).
[0021] 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).
[0022] The input module (150) can receive commands or data to be used in a component of the electronic device (101) (e.g., a processor (120)) from an external source (e.g., a user) of the electronic device (101). The input module (150) can include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus pen).
[0023] The audio output module (155) can output audio signals to the outside of the electronic device (101). The audio output module (155) can include, for example, a speaker or a receiver. The speaker can be used for general purposes, such as multimedia playback or recording playback. The receiver can be used to receive incoming calls. In one embodiment, the receiver can be implemented separately from the speaker or as part of the speaker.
[0024] The display module (160) can visually provide information to an external party (e.g., a user) of the electronic device (101). The display module (160) may include, for example, a display, a holographic device, or a projector and a control circuit for controlling the device. According to one embodiment, the display module (160) may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of a force generated by the touch.
[0025] The audio module (170) can convert sound into an electrical signal, or vice versa, convert an electrical signal into sound. According to one embodiment, the audio module (170) can acquire sound through the input module (150), output sound through the sound output module (155), or an external electronic device (e.g., electronic device (102)) (e.g., speaker or headphone) directly or wirelessly connected to the electronic device (101).
[0026] The sensor module (176) can detect the operating status (e.g., power or temperature) of the electronic device (101) or the external environmental status (e.g., user status) and generate an electrical signal or data value corresponding to the detected status. According to one embodiment, the sensor module (176) can include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illuminance sensor.
[0027] The interface (177) may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device (101) with an external electronic device (e.g., the electronic device (102)). In one embodiment, the interface (177) may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
[0028] The connection terminal (178) may include a connector through which the electronic device (101) may be physically connected to an external electronic device (e.g., electronic device (102)). According to one embodiment, the connection terminal (178) may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).
[0029] The haptic module (179) can convert electrical signals into mechanical stimuli (e.g., vibration or movement) or electrical stimuli that a user can perceive through tactile or kinesthetic sensations. According to one embodiment, the haptic module (179) can include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
[0030] The camera module (180) can capture still images and videos. According to one embodiment, the camera module (180) may include one or more lenses, image sensors, image signal processors, or flashes.
[0031] The power management module (188) can manage power supplied to the electronic device (101). According to one embodiment, the power management module (188) can be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
[0032] A battery (189) may power at least one component of the electronic device (101). In one embodiment, the battery (189) may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.
[0033] The communication module (190) may support the establishment of a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device (101) and an external electronic device (e.g., electronic device (102), electronic device (104), or server (108)), and the performance of communication through the established communication channel. The communication module (190) may operate independently from the processor (120) (e.g., application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module (190) may include a wireless communication module (192) (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module (194) (e.g., a local area network (LAN) communication module, or a power line communication module). Among these communication modules, the corresponding communication module can communicate with an external electronic device (104) via a first network (198) (e.g., a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network (199) (e.g., a long-range communication network such as a legacy cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., a LAN or WAN)). These various types of communication modules can be integrated into a single component (e.g., a single chip) or implemented as multiple separate components (e.g., multiple chips). The wireless communication module (192) can verify or authenticate the electronic device (101) within a communication network such as the first network (198) or the second network (199) by using subscriber information (e.g., an international mobile subscriber identity (IMSI)) stored in the subscriber identification module (196).
[0034] The wireless communication module (192) can support 5G networks and next-generation communication technologies following the 4G network, such as NR access technology (new radio access technology). The NR access technology can support high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and connection of multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency communications)). The wireless communication module (192) can support, for example, a high-frequency band (e.g., mmWave band) to achieve a high data transmission rate. The wireless communication module (192) can support various technologies for securing performance in a high-frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), full dimensional MIMO (FD-MIMO), array antenna, analog beam-forming, or large scale antenna. The wireless communication module (192) can support various requirements specified in the electronic device (101), an external electronic device (e.g., the electronic device (104)), or a network system (e.g., the second network (199)). According to one embodiment, the wireless communication module (192) can support a peak data rate (e.g., 20 Gbps or more) for eMBB realization, a loss coverage (e.g., 164 dB or less) for mMTC realization, or a U-plane latency (e.g., 0.5 ms or less for downlink (DL) and uplink (UL), or 1 ms or less for round trip) for URLLC realization.
[0035] The antenna module (197) can transmit or receive signals or power to or from an external device (e.g., an external electronic device). In one embodiment, the antenna module (197) may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (e.g., a PCB). In one embodiment, the antenna module (197) may include a plurality of antennas (e.g., 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), may be selected from the plurality of antennas, for example, by the communication module (190). A signal or power may be transmitted or received between the communication module (190) and an external electronic device via the at least one selected antenna. In some embodiments, in addition to the radiator, another component (e.g., a radio frequency integrated circuit (RFIC)) may be additionally formed as a part of the antenna module (197).
[0036] According to various embodiments, the antenna module (197) may form a mmWave antenna module. In one embodiment, the mmWave antenna module may include a printed circuit board, an RFIC disposed on or adjacent a first side (e.g., a bottom side) of the printed circuit board and capable of supporting a designated high-frequency band (e.g., a mmWave band), and a plurality of antennas (e.g., an array antenna) disposed on or adjacent a second side (e.g., a top side or a side side) of the printed circuit board and capable of transmitting or receiving signals in the designated high-frequency band.
[0037] At least some of the above components can be interconnected and exchange signals (e.g., commands or data) with each other via a communication method between peripheral devices (e.g., a bus, GPIO (general purpose input and output), SPI (serial peripheral interface), or MIPI (mobile industry processor interface)).
[0038] According to one embodiment, commands or data may be transmitted or received between the electronic device (101) and an external electronic device (104) via a server (108) connected to a second network (199). Each of the external electronic devices (102 or 104) may be the same or a different type of device as the electronic device (101). According to one embodiment, all or part of the operations executed in the electronic device (101) may be executed in one or more of the external electronic devices (102, 104, or 108). For example, when the electronic device (101) is to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device (101) may, instead of or in addition to executing the function or service itself, request one or more external electronic devices to perform the function or at least a part of the service. One or more external electronic devices that receive the request may execute at least a portion of the requested function or service, or an additional function or service related to the request, and transmit the result of the execution to the electronic device (101). The electronic device (101) may process the result as is or additionally and provide it as at least a portion of a response to the request. For this purpose, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used, for example. The electronic device (101) may provide an ultra-low latency service by using distributed computing or mobile edge computing, for example. In another embodiment, the external electronic device (104) may include an Internet of Things (IoT) device. The server (108) may be an intelligent server utilizing machine learning and / or a neural network. According to one embodiment, the external electronic device (104) or the server (108) may be included in the second network (199).The electronic device (101) can be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.
[0039] Electronic devices according to the various embodiments disclosed in this document may take various forms. Electronic devices may include, for example, portable communication devices (e.g., smartphones), computer devices, portable multimedia devices, portable medical devices, cameras, wearable devices, or home appliances. Electronic devices according to the embodiments of this document are not limited to the aforementioned devices.
[0040] The various embodiments of this document and the terminology used therein are not intended to limit the technical features described in this document to specific embodiments, but should be understood to include various modifications, equivalents, or substitutes of the embodiments. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of the items, unless the context clearly indicates otherwise. In this document, each of the phrases "A or B", "at least one of A and B", "at least one of A or B", "A, B, or C", "at least one of A, B, and C", and "at least one of A, B, or C" can include any one of the items listed together in the corresponding phrase among those phrases, or all possible combinations thereof. Terms such as "first," "second," or "first" or "second" may be used merely to distinguish one component from another, and do not limit the components in any other respect (e.g., importance or order). When a component (e.g., a first component) is referred to as "coupled" or "connected" to another (e.g., a second component), with or without the terms "functionally" or "communicatively," it means that the component can be connected to the other component directly (e.g., wired), wirelessly, or through a third component.
[0041] The term "module" used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit. A module may be an integral component, or a minimum unit or part of such a component that performs one or more functions. For example, according to one embodiment, a module may be implemented in the form of an application-specific integrated circuit (ASIC).
[0042] Various embodiments of the present document may be implemented as software (e.g., a program (140)) including one or more instructions stored in a storage medium (e.g., an internal memory (136) or an external memory (138)) readable by a machine (e.g., an electronic device (101)). For example, a processor (e.g., a processor (120)) of the machine (e.g., an electronic device (101)) may call at least one instruction among the one or more instructions stored from the storage medium and execute it. This enables the machine to operate to perform at least one function according to the at least one called instruction. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' simply means that the storage medium is a tangible device and does not contain signals (e.g., electromagnetic waves), and the term does not distinguish between cases where data is stored semi-permanently or temporarily on the storage medium.
[0043] According to one embodiment, the method according to various embodiments disclosed in this document may be provided as included in a computer program product. The computer program product may be traded as a commodity between a seller and a buyer. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., compact disc read-only memory (CD-ROM)), or may be distributed online (e.g., downloaded or uploaded) via an application store (e.g., Play Store™) or directly between two user devices (e.g., smart phones). In the case of online distribution, at least a portion of the computer program product may be temporarily stored or temporarily generated in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or an intermediary server.
[0044] According to various embodiments, each component (e.g., a module or a program) of the above-described components may include one or more entities, and some of the entities may be separated and placed in other components. According to various embodiments, one or more components or operations of the aforementioned components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (e.g., a module or a program) may be integrated into a single component. In such a case, the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. According to various embodiments, the operations performed by a module, program, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, omitted, or one or more other operations may be added.
[0045] FIG. 2 illustrates an example of a block diagram of an electronic device according to an embodiment. The electronic device (101) of FIG. 2 may include the electronic device (101) of FIG. 1. The processor (210) of FIG. 2 may be substantially the same as the processor (120) of FIG. 1 or may include the processor (120) of FIG. 1. The electronic device (101) of FIG. 2 may include a terminal owned by a user. For example, the terminal may include a personal computer (PC) such as a laptop or desktop, a smartphone, a smartpad, a tablet PC, a smartwatch, and a smart accessory such as a head-mounted device (HMD).
[0046] Referring to FIG. 2, an electronic device (101) according to an embodiment may include at least one of a processor (210) and a memory (215). The processor (210), the memory (215), and the battery (189) may be electrically and / or operably coupled with each other by an electronic component such as a communication bus (202). Hereinafter, operably coupled hardware may mean that a direct connection or an indirect connection is established between the hardwares, either wired or wireless, so that a second hardware is controlled by a first hardware among the hardwares. Although illustrated in different blocks, the embodiment is not limited thereto. Some of the hardwares of FIG. 2 may be included in a single integrated circuit, such as a system on a chip (SoC). The type and / or number of hardware included in the electronic device (101) is not limited to that shown in FIG. 2. For example, the electronic device (101) may include only some of the hardware shown in FIG. 2.
[0047] According to one embodiment, the electronic device (101) may include hardware for processing data based on one or more instructions. The hardware for processing data may include a processor (210). For example, the hardware for processing data may include an arithmetic and logic unit (ALU), a floating point unit (FPU), a field programmable gate array (FPGA), a central processing unit (CPU), and / or an application processor (AP). The processor (210) may have a single-core processor structure, or a multi-core processor structure such as a dual core, a quad core, a hexa core, or an octa core. The processor (210) may include the processor (120) of FIG. 1.
[0048] For example, a processor (210) of an electronic device (101) may include one or more clusters (211, 212, 213) each including one or more cores. The electronic device (101) may transmit data (e.g., scheduling information (255)) obtained from a memory (130) to one or more cores. Using the data, the electronic device (101) may process at least one process (or thread) based on each of the one or more cores.
[0049] For example, a first cluster (211) may include cores that operate in a first frequency range having a first maximum frequency. A second cluster (212) may include cores that operate in a second frequency range having a second maximum frequency less than the first maximum frequency. A third cluster (213) may include cores that operate in a third frequency range having a third maximum frequency less than the second maximum frequency.
[0050] For example, one or more clusters (211, 212, 213) are not limited to those illustrated in FIG. 2. One or more clusters (211, 212, 213) may further include the first cluster (211) to the Nth core. For example, each of the one or more clusters (211, 212, 213) may include cores having different maximum frequencies. Cores having different maximum frequencies may be driven in different frequency ranges.
[0051] For example, the first cluster (211) may be driven in a first frequency range having a first maximum frequency. The first cluster (211) may be referred to as a prime core (or prime cluster) in that it is driven based on the first maximum frequency, which is relatively higher than the maximum frequencies corresponding to other clusters (e.g., the second cluster (212) and the third cluster (213)).
[0052] For example, the second cluster (212) may be driven in a second frequency range having a second maximum frequency. The second cluster (212) may be referred to as a big cluster from the perspective that it is driven based on the second maximum frequency, which is relatively lower than the first maximum frequency.
[0053] For example, the third cluster (213) may be driven in a third frequency range having a third maximum frequency. The third cluster (213) may be referred to as a little cluster or an efficient cluster in that it is driven based on the third maximum frequency, which is relatively lower than the maximum frequencies of other clusters (e.g., the first cluster (211) or the second cluster (212)). However, the present invention is not limited thereto. For example, if the first cluster (211) is referred to as a big cluster, the second cluster (212) may be referred to as a performance cluster or a middle cluster.
[0054] According to one embodiment, the memory (215) of the electronic device (101) may include hardware components for storing data and / or instructions input to and / or output from the processor (210) of the electronic device (101). For example, the memory (215) may include volatile memory such as random-access memory (RAM) (e.g., volatile memory (132) of FIG. 1) and / or non-volatile memory such as read-only memory (ROM) (e.g., non-volatile memory (134) of FIG. 1). For example, the volatile memory may include at least one of dynamic RAM (DRAM), static RAM (SRAM), cache RAM, and pseudo SRAM (PSRAM). For example, the non-volatile memory may include at least one of a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), a flash memory, a hard disk, a compact disk, a solid state drive (SSD), and an embedded multi-media card (eMMC). The memory (215) may include the memory (130) of FIG. 1.
[0055] For example, within the memory (215) of the electronic device (101), one or more instructions (or commands) representing operations and / or actions to be performed on data by the processor (210) of the electronic device (101) may be stored. A set of one or more instructions may be referred to as a program, firmware, an operating system, a process, a routine, a sub-routine, and / or an application. Hereinafter, when an application is installed within the electronic device (e.g., the electronic device (101)), it may mean that one or more instructions provided in the form of an application are stored within the memory (215), and that the one or more applications are stored in a format executable by the processor of the electronic device (e.g., a file having an extension designated by the operating system of the electronic device (101)).
[0056] For example, programs installed in the electronic device (101) may be classified into one of different layers, including an application layer (240), a framework layer (250), and / or a hardware abstraction layer (HAL) (260), based on the target. For example, programs (e.g., drivers) designed to target the hardware (e.g., the processor (210) and / or the memory (215)) of the electronic device (101) may be classified within the hardware abstraction layer (260). For example, programs (e.g., the first process (251), the second process (252), and / or the third process (253)) designed to target at least one of the hardware abstraction layer (260) and / or the application layer (240) may be classified within the framework layer (250). Programs classified into the framework layer (250) may provide an executable API (application programming interface) based on other programs.
[0057] For example, within the application layer (240), programs designed to target users controlling electronic devices (101) may be classified. Referring to FIG. 2, a first application (241) is exemplified as an example of programs classified into the application layer (240), but the embodiment is not limited thereto. For example, programs (e.g., application software) classified into the application layer (240) may call an API to cause the execution of functions supported by programs classified into the framework layer (250).
[0058] For example, the electronic device (101) may store data sets (e.g., thread information (254)) corresponding to one or more threads in a memory area (e.g., a stack area described later in FIG. 3) corresponding to the first process (251) based on the execution of the first process (251). The electronic device (101) may store data sets corresponding to one or more threads to be processed through the first cluster (211) in the memory area using the second process (252). The electronic device (101) may execute the one or more threads based on a maximum frequency corresponding to the first cluster (211). The one or more threads to be processed through the first cluster (211) may be related to the execution of at least one application (e.g., the first application (241)) stored in the memory. However, the present invention is not limited thereto.
[0059] For example, the electronic device (101) may store the data sets in the memory area based on the order of one or more threads. The electronic device (101) may execute each of the one or more threads through the first cluster (211) using the second process (252) based on the order of the data sets stored in the memory area. The memory area corresponding to the first process (251) may be an area (e.g., a kernel area) accessible by the second process (252). The electronic device (101) may execute each of the one or more threads corresponding to each of the data sets using the second process (252) based on storing the data sets stored using the first process (251) in the memory area. The one or more threads may be occupied in the memory area corresponding to the first process (251), but is not limited thereto.
[0060] For example, the electronic device (101) may execute, based on the execution of the second process (252), each of one or more programs stored in the electronic device (101) through each of one or more clusters (211, 212, 213) included in the processor (210). The electronic device (101) may use scheduling information (255) to initiate or stop the execution of each of one or more programs mapped to each of one or more clusters (211, 212, 213). The second process (252) may be referred to as a kernel scheduler from the perspective of identifying an order for executing each of one or more programs.
[0061] For example, the electronic device (101) may, based on the execution of the first process (251), use the stored thread information (254) to execute one or more threads corresponding to the thread information (254) based on the first cluster (211) through the second process (252). The operation of the electronic device (101) executing one or more threads based on the first cluster (211) is described below in FIG. 4.
[0062] For example, the electronic device (101) may identify one or more threads to be processed through the first cluster (211) based on the execution of the third process (253). The third process (253) may refer to a system process and / or a service. For example, the one or more threads may be used to execute a program stored in the electronic device (101). The one or more threads may include data sets to be processed while the processor (210) executes the third process (253). Each of the one or more threads may include identification information and / or cache data to be processed by the processor (210). Each of the one or more threads may be processed independently. Hereinafter, the one or more threads may be referred to as a program, such as a process and / or an application, processed by the processor (210) of the electronic device (101). The electronic device (101) may, using the second process (252), obtain information for executing at least one thread among one or more threads using the first cluster. Based on the obtained information, the electronic device (101) may, using the first process (251), store a data set representing at least one thread corresponding to the information in a memory area. Using the data set stored in the memory area, the electronic device (101) may, based on the second process (252), execute the at least one thread through the first cluster (211).
[0063] As described above, the electronic device (101) according to one embodiment may obtain information about at least one thread to be processed through the first cluster (211) while processing one or more threads based on the scheduling information (255). The electronic device (101) may store the information about the at least one thread in a memory area assigned to the first process (2551). The electronic device (101) may execute the at least one thread through the first cluster (211) using the second process (252). Based on executing the at least one thread through the first cluster (211), the electronic device (101) may process an operation related to the at least one thread (e.g., an operation of initiating execution of an application) more quickly.
[0064] FIG. 3 illustrates an example of components included in a memory according to one embodiment. The electronic device (101) of FIG. 3 may include the electronic device (101) of FIGS. 1 and 2 . Referring to FIG. 3 , an example of an operation of the electronic device (101) processing data generated by processes stored in the memory (215) is illustrated.
[0065] An electronic device (101) according to one embodiment can obtain data to be processed by a first process (251) using a third process (253). For example, the electronic device (101) can obtain data to be processed by the first process (251) using a process identifier (305) and / or a lock library (307) within the third process (253).
[0066] For example, the electronic device (101) may generate information (306) for processing one or more threads through the first cluster (211) using the process identifier (305). The operation of the electronic device (101) executing each of the one or more threads through the first cluster (211) independently of the scheduling information corresponding to each of the one or more threads may be referred to as a boosting operation from the perspective of processing one or more threads more quickly.
[0067] For example, information (306) for processing one or more threads through the first cluster (211) may include identification information, cache data, and / or a starting time point for one or more threads. The electronic device (101) may initiate execution of at least one thread through the first cluster (211) based on processing of the information (306) by the first process (251). The information (306) may include information for executing at least one of the one or more plurality of threads using the first cluster (211). The information (306) may be generated in a form such as a class and / or a JNI (Java native interface) library, but is not limited thereto.
[0068] For example, the electronic device (101) may store a data set regarding a thread indicated by the information (306) in a stack area (310) based on processing the information (306) using the first process (251). The electronic device (101) may store the data set regarding the thread in the stack area (310) based on the order of the data set regarding the thread. The stack area (310) may be a memory area allocated to the first process (251). The stack area (310) may be an area accessible by a second process (252) that is distinct from the first process (251). The electronic device (101) may process a data set generated from the first process (251) based on the second process (252) using the stack area (310). For example, the electronic device (101) may, while processing one thread, obtain information (308) for controlling the processing of one thread for processing another thread using the lock library (307). The information (308) may include data related to a remote procedure call (e.g., a binder call) and / or a lock event. The electronic device (101) may store a data set indicated by the information (308) in a stack area (310). Based on processing the data set, the electronic device (101) may identify whether the thread whose processing is being controlled is related to at least one thread executed via the first cluster (211) indicated by the information (306). For example, the remote procedure call (e.g., a binder call) may be identified based on invoking the execution of another thread to execute the one thread. For example, the lock event may be identified based on the fact that data to be processed for execution of one thread during a specified time interval is occupied for execution of another thread.
[0069] For example, the electronic device (101) can identify the order of data sets stored in the stack area (310). The electronic device (101) can identify the order of data sets based on identifying an event that occurred between one or more threads (e.g., an event that requires execution of another thread for execution of one thread, which will be described later in FIG. 4) using the lock library (307). The electronic device (101) can identify the order of data sets based on pushing (or storing) or popping (or releasing) each of the data sets in the stack area (310). The electronic device (101) can store a first data set corresponding to a first thread in a first sub-area (310-1), and then store a second data set corresponding to a second thread in a second sub-area (310-2). The electronic device (101) can release the second data set from the second sub-area (310-2) in order to pop (or release) the first data set. In other words, the electronic device (101) can first release (or pop) the last pushed data set.
[0070] For example, the electronic device (101) may transmit thread information (254) including data sets for one or more threads stored in the stack area (310) to the second process (252). Based on the execution of the second process (252), the electronic device (101) may use the thread information (254) to execute one or more threads, respectively, in the order of the data sets through the first cluster (211).
[0071] For example, the electronic device (101) may obtain information for stopping processing of one or more threads through the first cluster (211) from the third process (253). Based on obtaining the information, the electronic device (101) may temporarily stop an operation of executing one or more threads through the first cluster (211) using the second process (252). Based on the temporarily stopping of the operation, the electronic device (101) may execute each of the one or more threads through at least one of the first cluster (211), the second cluster (212), and / or the third cluster (213) based on scheduling information (e.g., scheduling information (255) of FIG. 2).
[0072] For example, the electronic device (101) may change the location of data corresponding to one or more threads in order to execute one or more threads through the first cluster (211). The electronic device (101) may identify a first thread corresponding to a second cluster (212) among the one or more threads. The first thread corresponding to the second cluster (212) may refer to a first thread executed through the second cluster (212). The electronic device (101) may store a data set for the first thread in the stack area (310) based on identifying information (e.g., information (306)) for executing the first thread through the first cluster (211). The electronic device (101) may change the data for the first thread corresponding to the second cluster (212) to be executed through the first cluster (211) based on storing the data set in the stack area (310).
[0073] For example, while executing a first thread through a second cluster (212), the electronic device (101) may change data indicating execution of the first thread through the second cluster (212) based on identifying the information (e.g., information (306)). The electronic device (101) may change information indicating execution of the first thread through the second cluster (212) to be processed through the first cluster (211) (e.g., range of data and / or cache data). The operation of the electronic device (101) changing the second cluster (212) corresponding to the first thread to the first cluster (211) may be referred to as data migration. Hereinafter, data migration may mean assigning a thread to a core based on the highest frequency among one or more cores included in the first cluster (211).
[0074] Below, an example of an operation of executing each of one or more threads through a first cluster (211) based on the electronic device (101) identifying an event indicating an interaction between one or more threads in FIG. 4 is described below.
[0075] FIG. 4 illustrates an example of an operation of an electronic device according to one embodiment of the present invention to execute each of a plurality of threads using each of a plurality of clusters. The electronic device (101) of FIG. 4 may include the electronic device (101) of FIGS. 1 to 3 . Referring to FIG. 4 , an exemplary flowchart is illustrated showing the execution state of one or more threads (411, 412, 413) for processing by the electronic device (101) according to one embodiment of the present invention using a second process (252).
[0076] An electronic device (101) according to one embodiment may, using a second process (252), execute one or more threads (411, 412, 413) through one or more clusters (211, 212, 213) based on scheduling information. One or more threads (411, 412, 413) may be associated with the execution of a third process (253), but is not limited thereto.
[0077] For example, the electronic device (101) may, while executing the first thread (411) through the third cluster (213), obtain data (441) for executing the first thread (411) through the first cluster (211). The data (441) may be obtained based on information (306) of FIG. 3. The data (441) may include information (e.g., information (306) of FIG. 3) requesting execution of the first thread (411) through the first cluster (211). For example, the electronic device (101) may transmit information about the first thread (411) to the first process (251) based on execution of a process identifier (e.g., process identifier (305) of FIG. 3). The electronic device (101) may store information about the first thread (411) in a stack area (e.g., stack area (310) of FIG. 3) based on the information transmitted to the first process (251). The electronic device (101) may execute the first thread (411) based on the first cluster (211) using the second process (252) based on the information stored in the stack area. In order to execute the first thread (411) based on the first cluster (211), the electronic device (101) may migrate data related to the execution of the first thread (411) to the first cluster (211). In one embodiment, the operation of executing the first thread (411) based on the first cluster (211) may be referred to as a boosting operation of the first thread (411).
[0078] For example, in response to acquiring data (441), the electronic device (101) may execute a first thread (411) through the first cluster (211). While executing the first thread (411) through the first cluster (211) (or, during boosting of the first thread (411)), the electronic device (101) may identify an event (430) (e.g., a lock event) that requires execution of a third thread (413) for execution of the first thread (411). The event may be referred to as a call event in terms of calling execution of another thread for execution of one thread.
[0079] For example, the electronic device (101) may identify the event (430) based on the lock library (307) of FIG. 3 for identifying the event (430). The electronic device (101) may process information indicating the event (430) by the first process (251) based on the execution of the lock library (307). As an example, the electronic device (101) may identify whether the event (430) is related to at least one thread to be executed through the first cluster (211) based on the processing of information indicating the event (430) by the first process (251). However, the present invention is not limited thereto.
[0080] For example, an event (430) may be identified based on the fact that data to be processed for execution of a first thread (411) during a time interval (442) is occupied for execution of a third thread (413). An event (430) may be identified based on the fact that data is used for execution of a third thread (413) prior to processing the data for execution of the first thread (411), but is not limited thereto.
[0081] For example, the electronic device (101) may, using scheduling information (e.g., scheduling information (255) of FIG. 2), identify a signal (431) indicating that the first data to be processed for execution of the first thread (411) is occupied (or a signal requesting occupancy of the first data) while executing the third thread (413) based on the third cluster (213). If there is no other thread occupying the first data, the electronic device (101) may obtain a permission signal (433) indicating that the first data is available for execution of the third thread (413). While executing the third thread (413) using the first data, the electronic device (101) may block access to the first data for execution of other threads. The third thread (413) can be referenced as the lock owner for the event (430) from the perspective of occupying the first data.
[0082] For example, after identifying the signal (431), the electronic device (101) can identify a signal (432) for occupying the first data for execution of the first thread (411) (or a signal requesting occupation of the first data). Based on identifying the signal (432), the electronic device (101) can identify that the first data is used for execution of the third thread (413). Based on identifying that the first data is used for execution of the third thread (413), the electronic device (101) can identify a blocking signal (434) for requesting to temporarily suspend execution of the first thread (411) (or a signal indicating that access to the first data of the first thread (411) is blocked). The electronic device (101) may temporarily suspend the execution of the first thread (411) using the first cluster (211) based on the identification of the signal (434). The electronic device (101) may temporarily suspend the execution of the first thread (411) during a time interval (442) in which the first data is occupied for the execution of the third thread (413). Operations requiring access to the first data of the first thread (411) may be temporarily suspended during the time interval (442) in which the third thread (413) occupies the first data. The time interval (442) may include a time interval from the time of generation of the signal (431) of the third thread (413) to the time of generation of the signal (435). The time interval (442) may correspond to a range of data (e.g., shared resources) used for the execution of a plurality of threads. The above data range may be referred to as a critical section (421-1) from the perspective that each of the plurality of threads cannot access the data range simultaneously for execution of the plurality of threads.In one embodiment, a critical section may refer to a portion of code (or instructions) (or operations) of a thread's code (or instructions) (or operations) that allows the thread to access a shared resource (or shared data) to which simultaneous access by two or more threads is not permitted (or should not be allowed).
[0083] For example, the electronic device (101) may identify whether the event (430) is related to a first thread (411) running through a first cluster (211) based on the identification of the event (430). The electronic device (101) may identify whether a data set for the first thread (411) stored in a stack area (e.g., stack area (310) of FIG. 3) is identical to the first thread (411) whose execution was temporarily suspended during the time interval (442).
[0084] For example, the electronic device (101) may store a data set corresponding to a third thread (413) in a stack area (e.g., stack area (310) of FIG. 3) if the data set for the first thread (411) stored in the stack area and the first thread (411) whose execution was temporarily suspended during the time interval (442) are the same. For example, if the data set for the first thread (411) is stored in a first sub-area (e.g., first sub-area (310-1) of FIG. 3), the electronic device (101) may push the data set for the third thread (413) to a second sub-area (e.g., second sub-area (310-2) of FIG. 3).
[0085] For example, the electronic device (101) may process thread information (e.g., thread information (254) of FIG. 2) indicating a data set for the third thread (413) pushed to the second sub-area based on the second process (252). The electronic device (101) may use the second process (252) to execute the third thread (413) (or the critical section (421-1) of the third thread (413)) through the first cluster (211) while the execution of the first thread (411) is temporarily suspended (e.g., during a time interval (442)) through the first cluster (211). The electronic device (101) may wait for the execution of the first thread (411) during the time interval (421-1) during which the third thread (413) is executed through the first cluster (211). The electronic device (101) may wait for the execution of operations requiring access to the first data of the first thread (411) during the time period (442) in which the third thread (413) occupies the first data (or, during the critical section (421-1) of the third thread (413). For example, the electronic device (101) may execute the third thread (413) through the first cluster (211) based on migrating data indicating the execution of the third thread (413) corresponding to the third cluster (213). The electronic device (101) may at least temporarily suspend the execution of operations requiring access to the first data of the first thread (411) through the first cluster (211) while identifying a call event indicating that the third thread (413) occupies the first data.The electronic device (101) may execute operations requiring access to the first data (or critical section (421-1)) among the operations of the third thread (413) corresponding to the third cluster (213) (or executed through the third cluster (213)) through the first cluster (211) while identifying a call event indicating that the third thread (413) occupies the first data. For example, an operation of the electronic device (101) executing the third thread (413) corresponding to the third cluster (213) (or executed through the third cluster (213)) through the first cluster (211) may be referred to as a boosting operation of the third thread (413).
[0086] For example, the electronic device (101) may identify an event that initiates execution of the first thread (411) while executing the third thread (413) through the first cluster (211). The event may mean releasing the blocking on data being processed for execution of the third thread (413) (e.g., a data range corresponding to the time interval (442)). The electronic device (101) may obtain a signal (435) indicating the release of the data range (e.g., a critical range corresponding to the time interval (442)) occupied for execution of the third thread (413). Based on obtaining the signal (435), the electronic device (101) may obtain a signal (436) indicating the initiation of execution of the temporarily suspended first thread (411).
[0087] For example, based on obtaining a signal (436) indicating that execution of the first thread (411) is to be initiated, the electronic device (101) may release a data set for the third thread (413) stored in a stack area (e.g., the stack area (310) of FIG. 3) from the stack area using the first process (e.g., the first process (251) of FIG. 1). Based on releasing the data set for the third thread (413) from the stack area, the electronic device (101) may use the data set for the first thread (411) to initiate execution of the first thread (411) through the first cluster (211). Based on executing the third thread (413) through the first cluster (211), the electronic device (101) may reduce the waiting time for execution of the first thread (411).
[0088] According to one embodiment, the electronic device (101) may, while executing the first thread (411) through the first cluster (211), identify an event (e.g., a remote procedure call, RPC) for calling another thread distinct from the first thread (411). The electronic device (101) may identify the event based on obtaining a signal (424) indicating a call of a second thread (412) based on the execution of the first thread (411). The signal (424) may correspond to a remote procedure call (RPC). The signal (424) may be implemented in various formats depending on the operating system of the electronic device (101). For example, in the case of the Android operating system, the signal (424) may be referred to as a binder call. The electronic device (101) may initiate execution of the second thread (412) based on identifying the signal (424). For example, the event may be identified based on the execution of the first thread (411) invoking the execution of the second thread (412). For example, the electronic device (101) may identify the event that requires data by the second thread (412) for the execution of the first thread (411). For example, the electronic device (101) may obtain a signal (424) for invoking the execution of the second thread (412) in order to use the data obtained based on the execution of the second thread (412) for the execution of the first thread (411). However, the present invention is not limited thereto. The signal (424) may include information indicating a signal (425) for synchronizing the first thread (411) and the second thread (412). The above event may mean a synchronous binder call from the perspective of synchronizing the execution of the first thread (411) and the execution of the second thread (412).
[0089] For example, the electronic device (101) may identify a signal (424) while executing the first thread (411) based on the first cluster (211) using a data set for the first thread (411) stored in a stack area (e.g., stack area (310) of FIG. 3). The electronic device (101) may identify an event (e.g., a remote procedure call) for calling another thread. Based on the identification of the event, the electronic device (101) may identify whether the first thread (411) is related to the event. The electronic device (101) may identify the first thread (411) related to the event by identifying a signal (424) for calling the execution of the second thread (412) based on the execution of the first thread (411). The first thread (411) may be referred to as a caller from the perspective of calling the second thread (412). The second thread (412) can be referred to as a callee (callee) from the perspective of receiving the call.
[0090] For example, the electronic device (101) may release (or pop) a data set for the first thread (411) stored in the stack area (e.g., the stack area (310) of FIG. 3) based on identifying the signal (424). The electronic device (101) may identify whether the second thread (412) matches the data set last stored in the stack area. If the second thread (412) and the data set match, the electronic device (101) may execute the second thread (412) through the first cluster (211) using the data set. For example, if the second thread (412) and the data set match, the electronic device (101) may push the released data set for the first thread (411) to the stack area (e.g., the first sub-area (310-1) of FIG. 3). After pushing a data set for the first thread (411), the electronic device (101) can push a data set for the second thread (412) to the stack area (e.g., the second sub-area (310-2) of FIG. 3). The electronic device (101) can execute the second thread (412) through the first cluster (211) based on the second process (252) using thread information for the stack area (e.g., the thread information (254) of FIG. 2). For example, the electronic device (101) can migrate data for the second thread (412) to execute the second thread (412) through the first cluster (211). The electronic device (101) can transmit data for the second thread (412) (e.g., identification information of the second thread (412)) to the first cluster (211). However, the present invention is not limited thereto.
[0091] For example, the electronic device (101) may temporarily suspend the execution of the first thread (411) in order to execute the second thread (412) through the first cluster (211). The electronic device (101) may temporarily suspend the execution of the first thread (411) during the time period (422-1) in which the second thread (412) is executed through the first cluster (211). The electronic device (101) may identify a signal (425) indicating the initiation of execution of the first thread (411) while executing the second thread (412) through the first cluster (211). The signal (425) may include a feedback signal or a return signal for the signal (424).
[0092] For example, the electronic device (101) may release a data set for a second thread (412) that was pushed to a stack area (e.g., stack area (310) of FIG. 3) based on identifying a signal (425). The electronic device (101) may identify a data set for a first thread (411) that was pushed before the data set for the second thread (412) based on releasing the data set for the second thread (412). Based on identifying the data set for the first thread (411), the electronic device (101) may initiate execution of the first thread (411) through the first cluster (211) using the second process (252).
[0093] In one embodiment, the electronic device (101) may, in response to the signal (424), identify another event to execute a fourth thread (not shown) distinct from the second thread (412) among one or more threads based on the execution of the second thread (412) through the first cluster (211). The other event may include a second remote procedure call distinct from the first remote procedure call identified based on the execution of the first thread (411).
[0094] For example, the electronic device (101) may, based on identifying another event, use the first process (251) to identify whether the fourth thread is identical to the first thread (411) indicated by the data set pushed to the stack area (e.g., the stack area (310) of FIG. 3). The electronic device (101) may, at least temporarily, suspend execution of the second thread (412) when the fourth thread and the first thread (411) are identical. Based on the temporary suspension of execution of the second thread (412), the electronic device (101) may execute the first thread (411) through the first cluster (211).
[0095] For example, the electronic device (101) may push a data set for the fourth thread (not shown) to the stack area after pushing a data set representing the execution of the second thread (412) to the stack area in a different state (e.g., a state in which the fourth thread and the first thread (411) are not the same) from the same state. The electronic device (101) may execute the fourth thread through the first cluster (211) using the data set for the fourth thread that was pushed most recently.
[0096] According to one embodiment, when the execution of the first thread (411) is called based on the execution of another thread that is distinct from the first thread (411), the electronic device (101) may identify a signal (426) for initiating the execution of the second thread (412) while executing the first thread (411) through the first cluster (211). The signal (426) may mean a return signal indicating that the execution of the first thread (411) executed based on the remote procedure call is temporarily suspended, but is not limited thereto.
[0097] For example, based on acquiring the signal (426), the electronic device (101) may release the first data set for the first thread (411) from the stack area. Based on releasing the first data set for the first thread (411), the electronic device (101) may identify whether a data set pushed before the first data set matches the second data set for the second thread (412). If the data set matches the second data set, the electronic device (101) may initiate execution of the second thread (412) based on the first cluster (211) using the second process (252). However, the present invention is not limited thereto. As an example, the electronic device (101) may store the second data set for the second thread (412) in the stack area (e.g., the stack area (310) of FIG. 3) independently of releasing the first data set for the first thread (411). For example, the electronic device (101) may wait for execution of the first thread (411) during a time interval (444) based on executing the second thread (412), but is not limited thereto.
[0098] For example, the electronic device (101) may acquire a signal (427) for invoking the execution of the first thread (411) while the second thread (412) is executing during the time interval (423-1). Based on acquiring the signal (427) for invoking the execution of the first thread (411), the electronic device (101) may release a data set for the second thread (412) from a stack area (e.g., stack area (310) of FIG. 3). After releasing the data set for the second thread (412), the electronic device (101) may identify whether another data set pushed before the data set is a data set for the first thread (411) called by the signal (427). The electronic device (101) may execute the first thread (411) through the first cluster (211) if the data set for the other data set matches the data set for the first thread (411). If the data set for the other data set does not match the data set for the first thread (411), the electronic device (101) may execute another thread corresponding to the other data set through the first cluster (211). However, this is not limited thereto.
[0099] According to one embodiment, the electronic device (101) may obtain a signal (446) indicating that execution of the first thread (411) through the first cluster (211) is to be temporarily suspended while executing the first thread (411) through the first cluster (211). The electronic device (101) may obtain information indicating that execution of the first thread (411) through the first cluster (211) is to be suspended based on a process identifier (e.g., process identifier (305) of FIG. 3). The information may be related to information (306) of FIG. 3. The information may include, but is not limited to, an end time for a boosting operation.
[0100] For example, the electronic device (101) may execute at least one thread related to the execution of at least one application through the first cluster (211) based on initiating execution of at least one application. The electronic device (101) may execute the at least one thread based on designated scheduling information (e.g., scheduling information (254) of FIG. 2) based on identifying that execution of at least one application is complete, but is not limited thereto.
[0101] As described above, according to one embodiment, the electronic device (101) may execute the first thread (411) through the first cluster (211) based on acquiring data (e.g., signal (441)) for executing the first thread (411) through a cluster (e.g., first cluster (211)) based on relatively high performance. While executing the first thread (411), the electronic device (101) may identify an event related to the first thread (411), and execute another thread (e.g., second thread (412) or third thread (413)) related to the event through the first cluster (211). The electronic device (101) may reduce the waiting time for the first thread (411) based on executing another thread through the first cluster (211). In order to process the execution of the first thread (411) more quickly, the electronic device (101) can process one or more threads more quickly by executing the first thread (411) based on the first cluster (211), as well as executing other threads related to the first thread (411) through the first cluster (211), using one or more clusters (211, 212, 213). The electronic device (101) can maintain the operation of the first cluster (211) by executing other threads (412, 413) during the time intervals (421-2, 422-2, 423-2) related to the event while executing the first thread (411) through the first cluster (211).
[0102] FIG. 5 illustrates an exemplary flowchart illustrating the operation of an electronic device according to one embodiment. The electronic device (101) of FIG. 5 may include the electronic device (101) of FIGS. 1 to 4 . At least one of the operations of FIG. 5 may be performed by the electronic device (101) of FIG. 2 and / or the processor (210) of FIG. 2 . Each of the operations of FIG. 5 may be performed sequentially, but is not necessarily performed sequentially. For example, the order of each of the operations may be changed, and at least two operations may be performed in parallel.
[0103] Referring to FIG. 5, in operation 510, according to one embodiment, an electronic device may obtain data indicating execution of a thread based on a first cluster. The electronic device may obtain information (306) of FIG. 3 using the third process (253) of FIG. 2. The electronic device (101) may obtain data indicating execution of the thread (e.g., data corresponding to signal (441) of FIG. 4) based on processing the information (306) using the first process (251) of FIG. 2.
[0104] Referring to FIG. 5, in operation 520, according to one embodiment, an electronic device may store thread information in a stack area using a first process. For example, the electronic device may store a data set for a thread in a stack area (e.g., stack area (310) of FIG. 3) based on obtaining data indicating the execution of the thread. There may be one or more threads.
[0105] Referring to FIG. 5, in operation 530, according to one embodiment, an electronic device may execute a thread through a first cluster based on a second process by using thread information stored in a stack area. For example, the stack area may be a kernel area accessible by the second process. Based on the second process, the electronic device may migrate data for the thread from a cluster corresponding to the thread (e.g., other clusters (212, 213) distinct from the first cluster (211) of FIG. 2) to the first cluster. Based on the migrated data for the thread, the electronic device may execute the thread using the first cluster.
[0106] FIG. 6 illustrates an exemplary flowchart illustrating the operation of an electronic device according to one embodiment. The electronic device (101) of FIG. 6 may include the electronic device (101) of FIGS. 1 to 5 . At least one of the operations of FIG. 6 may be performed by the electronic device (101) of FIG. 2 and / or the processor (210) of FIG. 2 . At least one of the operations of FIG. 6 may be related to at least one of the operations of FIG. 5 . Each of the operations of FIG. 6 may be performed sequentially, but is not necessarily performed sequentially. For example, the order of each of the operations may be changed, and at least two operations may be performed in parallel.
[0107] Referring to FIG. 6, at operation 610, according to one embodiment, an electronic device may obtain data for temporarily suspending execution of a thread based on a first cluster. The data may correspond to signal (446) of FIG. 4. The electronic device may obtain the data using the third process (253) of FIG. 2.
[0108] Referring to FIG. 6, in operation 620, an electronic device according to one embodiment may release thread information stored in a stack area. The thread information may include a data set for the thread. By releasing the thread information, the electronic device may identify a stack area based on a NULL state. A stack area based on a NULL state may mean a state in which there is no data set to be processed in the stack area.
[0109] Referring to FIG. 6, at operation 630, according to one embodiment, an electronic device may execute a thread based on a second process using scheduling information. The electronic device may execute the thread through a cluster corresponding to the thread using scheduling information (254) of FIG. 2. However, the present invention is not limited thereto. The electronic device may terminate the execution of the thread based on obtaining data for temporarily suspending the execution of the thread based on the first cluster.
[0110] FIG. 7 illustrates an exemplary flowchart illustrating the operation of an electronic device according to one embodiment. The electronic device (101) of FIG. 7 may include the electronic device (101) of FIGS. 1 to 4 . At least one of the operations of FIG. 7 may be performed by the electronic device (101) of FIG. 2 and / or the processor (210) of FIG. 2 . At least one of the operations of FIG. 7 may be related to at least one of the operations of FIG. 5 . Each of the operations of FIG. 7 may be performed sequentially, but is not necessarily performed sequentially. For example, the order of each of the operations may be changed, and at least two operations may be performed in parallel.
[0111] Referring to FIG. 7, in operation 710, according to an embodiment, an electronic device may identify an event that requires data from another thread for execution of a thread. Operation 710 may be related to operation 530 of FIG. 5. The event may include a remote procedure call. The electronic device may identify whether the event is related to a first thread (e.g., a first thread (411) of FIG. 4) executing through a first cluster (e.g., a first cluster (211) of FIG. 2). The first thread and the other thread may be included in a plurality of threads executing based on a process. The first thread and the other thread may or may not be related to threads to be executed based on the first cluster.
[0112] Referring to FIG. 7, in operation 720, according to an embodiment, an electronic device may identify whether a single thread matches a data set that was last stored in a stack area. The data set that was last stored in the stack area may correspond to a first thread running through a first cluster (e.g., the first thread (411) of FIG. 4). The electronic device may identify whether the single thread identified by the event matches the first thread. If the single thread does not match the data set that was last stored in the stack area (operation 720—No), the electronic device may perform operation 710. If the single thread and the first thread running through the first cluster are different, the electronic device may identify that the boosting operation for the first thread is irrelevant.
[0113] Referring to FIG. 7, if a thread matches the data set last stored in the stack area (operation 720 - Yes), in operation 730, according to an embodiment, the electronic device may release the data set last stored in the stack area (e.g., the stack area (310) of FIG. 3). If the thread matches the data set last stored in the stack area, the electronic device may temporarily suspend the execution of the first thread corresponding to the data set last stored in the stack area. The electronic device temporarily suspending the execution of the first thread may be referred to as the operation of the electronic device temporarily suspending the execution of the first thread during the time interval (443) of FIG. 4.
[0114] For example, an operation of releasing the last stored data set within a stack region may include an operation of initializing the stack region. Based on releasing the last stored data set within the stack region, the operations performed by the electronic device in response to acquiring each of the signals (424, 425, 426, 427) of FIG. 4 may be substantially similar.
[0115] Referring to FIG. 7, in operation 740, according to one embodiment, the electronic device may identify whether another thread matches the last stored data set within the stack area. The last stored data set within the stack area may refer to a data set pushed into the stack area before the released data set within operation 730. For example, if the data set within operation 730 is a data set stored in the second sub-area (310-2) of FIG. 3, the last stored data set within the stack area within operation 740 may be a data set stored in the first sub-area (310-1) of FIG. 3. For example, if the data set within operation 730 is a data set stored in the first sub-area (310-1) of FIG. 3, the last stored data set within the stack area within operation 740 may be a data set based on NULL. However, the present invention is not limited thereto. For example, if another thread matches the last stored data set within the stack area (operation 740 - Yes), the electronic device may perform operation 770. If another thread matches the last stored data set within the stack area, the electronic device may execute the other thread through the first cluster (e.g., the first cluster (211) of FIG. 2) based on the second process (e.g., the second process (252) of FIG. 2) using the data set for the other thread.
[0116] Referring to FIG. 7, if another thread does not match the last stored data set in the stack area (operation 740-No), in operation 750, the electronic device according to one embodiment may store a first data set corresponding to the one thread in the stack area. In operation 750, the one thread may be referenced by the first thread (411) of FIG. 4. The electronic device may push the first data set to a first sub-area (e.g., the first sub-area (310-1) of FIG. 3) of the stack area (e.g., the stack area (310) of FIG. 3) using a first process (e.g., the first process (251) of FIG. 2).
[0117] Referring to FIG. 7, in operation 760, according to an embodiment, an electronic device may store a second data set corresponding to another thread in a stack area. In operation 760, the other thread may be referenced by the second thread (412) of FIG. 4. The electronic device may push a first data set to a first sub-area (e.g., the first sub-area (310-1) of FIG. 3) of a stack area (e.g., the stack area (310) of FIG. 3) using a first process (e.g., the first process (251) of FIG. 2), and then push the second data set to a second sub-area (e.g., the second sub-area (310-2) of FIG. 3). The electronic device may identify the order of the first data set and the second data set based on the area to which the first data set and the second data set are pushed. Based on the order, the electronic device may process the first data set after processing the second data set.
[0118] Referring to FIG. 7, in operation 770, according to an embodiment, an electronic device may execute another thread using a first cluster based on a second process. The electronic device may transmit thread information including a second data set (e.g., thread information (254) of FIG. 2) to a second process (252). Using the thread information, the electronic device may execute another thread through a first cluster (e.g., the first cluster (211) of FIG. 2) based on the second process (252). The operation of the electronic device executing another thread using the first cluster based on the second process may be referred to as the operation of the electronic device executing the second thread (412) during the time section (422-1) of FIG. 4, but is not limited thereto. As an example, the operation of the electronic device executing another thread using the first cluster based on the second process may be referred to as the operation of the electronic device executing the second thread (412) during the time section (423-1) of FIG. 4.
[0119] FIG. 8 illustrates an exemplary flowchart illustrating the operation of an electronic device according to one embodiment. The electronic device (101) of FIG. 8 may include the electronic device (101) of FIGS. 1 to 4. At least one of the operations of FIG. 8 may be performed by the electronic device (101) of FIG. 2 and / or the processor (210) of FIG. 2. At least one of the operations of FIG. 8 may be related to at least one of the operations of FIG. 5. Each of the operations of FIG. 8 may be performed sequentially, but is not necessarily performed sequentially. For example, the order of each of the operations may be changed, and at least two operations may be performed in parallel.
[0120] Referring to FIG. 8, in operation 810, according to one embodiment, an electronic device may identify an event that waits for the execution of another thread while executing one thread. The event may be referenced to event (430) of FIG. 4.
[0121] Referring to FIG. 8, in operation 820, according to one embodiment, the electronic device may identify whether another thread matches the last data set stored within the stack area. The last data set stored within the stack area may correspond to at least one thread running through a first cluster (e.g., the first cluster (211) of FIG. 2) based on a second process (e.g., the second process (252) of FIG. 2).
[0122] For example, the electronic device may identify whether the event is related to a boosting operation for executing at least one thread based on a first cluster based on identifying whether another thread matches the last stored data set within the stack area. If the other thread does not match the last stored data set within the stack area (operation 820-No), the electronic device may perform operation 810. If the other thread does not match the last stored data set within the stack area, the electronic device may identify that the event is unrelated to the boosting operation.
[0123] Referring to FIG. 8, if another thread matches the last stored data set in the stack area (operation 820 - Yes), in operation 830, according to an embodiment, the electronic device may store a data set corresponding to the one thread in the stack area. In operation 830, the other thread may be referenced to the first thread (411) of FIG. 4. In operation 830, the one thread may be referenced to the third thread (413) of FIG. 4. If the other thread matches the last stored data set in the stack area, the electronic device may identify that the other thread is executing based on the first cluster (211). If the other thread matches the last stored data set in the stack area, the electronic device may temporarily suspend the execution of the other thread.
[0124] Referring to FIG. 8, in operation 840, according to an embodiment, an electronic device may execute a single thread based on a first cluster using a second process. While executing the single thread (e.g., during a time interval (442) of FIG. 4), the electronic device may wait for execution of another thread. In order to execute the single thread based on the first cluster using the second process, the electronic device may migrate data for the single thread from another cluster corresponding to the single thread (e.g., the second cluster (212) of FIG. 2 or the third cluster (213) of FIG. 2) to the first cluster. However, the present invention is not limited thereto.
[0125] FIG. 9 illustrates an exemplary flowchart illustrating the operation of an electronic device according to one embodiment. The electronic device (101) of FIG. 9 may include the electronic device (101) of FIGS. 1 to 4. At least one of the operations of FIG. 9 may be performed by the electronic device (101) of FIG. 2 and / or the processor (210) of FIG. 2. At least one of the operations of FIG. 9 may be related to at least one of the operations of FIG. 8. Each of the operations of FIG. 9 may be performed sequentially, but is not necessarily performed sequentially. For example, the order of each of the operations may be changed, and at least two operations may be performed in parallel.
[0126] Referring to FIG. 9, in operation 910, an electronic device according to one embodiment may execute a single thread based on a first cluster using a second process. Operation 910 may correspond to operation 840 of FIG. 8. The single thread may be referenced to the third thread (413) of FIG. 4.
[0127] Referring to FIG. 9, at operation 920, according to one embodiment, the electronic device may identify an event that initiates execution of another thread. The other thread may be referenced to the first thread (411) of FIG. 4. The event that initiates execution of the other thread may include an event that identifies signal (435) of FIG. 4 and / or signal (436) of FIG. 4. The event that initiates execution of the other thread may include that a data range occupied for execution of one thread (e.g., a critical interval corresponding to time interval (442) of FIG. 4) is released. When the data range occupied for execution of one thread is released, execution of another thread waiting to use the data range may be initiated.
[0128] Referring to FIG. 9, in operation 930, according to an embodiment, an electronic device may release a data set corresponding to a single thread within a stack area. Based on releasing the data set corresponding to the single thread within a stack area (e.g., stack area (310) of FIG. 3), the electronic device may execute the single thread through a cluster corresponding to the single thread using scheduling information (e.g., scheduling information (255) of FIG. 2) that is distinct from thread information (e.g., thread information (254) of FIG. 2).
[0129] Referring to FIG. 9, in operation 940, according to an embodiment, an electronic device may execute another thread based on a first cluster using a second process. The electronic device may identify another data set corresponding to another thread that was pushed to the stack area before the data set corresponding to the first thread based on releasing a data set corresponding to the first thread from the stack area. The electronic device may transmit thread information including the other data set to the second process. The electronic device may execute another thread based on a maximum frequency corresponding to the first cluster using the second process. The electronic device may process data for executing another thread more quickly based on executing the other thread based on the maximum frequency corresponding to the first cluster.
[0130] FIG. 10 illustrates an exemplary flowchart illustrating the operation of an electronic device according to one embodiment. The electronic device (101) of FIG. 10 may include the electronic device (101) of FIGS. 1 to 4 . At least one of the operations of FIG. 10 may be performed by the electronic device (101) of FIG. 2 and / or the processor (210) of FIG. 2 . Each of the operations of FIG. 10 may be performed sequentially, but is not necessarily performed sequentially. For example, the order of each of the operations may be changed, and at least two operations may be performed in parallel.
[0131] Referring to FIG. 10, in operation 1010, according to an embodiment, an electronic device may identify a first thread (e.g., the first thread (411) of FIG. 4) to be executed through a first cluster (e.g., the first cluster (211) of FIG. 2) among a plurality of threads executed based on a processor (e.g., the processor (210) of FIG. 2), and execute the first thread using the first cluster. For example, the electronic device may obtain information for executing at least one of the plurality of threads using the first cluster using the first process (e.g., the first process (251) of FIG. 2). The electronic device may transmit information (e.g., information (305) of FIG. 3) for executing at least one of the plurality of threads using the first cluster to the first process based on the execution of a third process (e.g., the third process (253) of FIG. 2). The electronic device can identify a first thread to be executed using the first cluster based on identifying the above information. The electronic device can execute the first thread using a second process (e.g., the second process (252) of FIG. 2) for executing each of a plurality of threads based on at least one of the first cluster or the second cluster, based on information obtained using the first process (e.g., information (306) of FIG. 3).
[0132] Referring to FIG. 10, in operation 1020, according to one embodiment, an electronic device may identify a call event requiring execution of a second thread for execution of the first thread based on execution of a first thread using a first cluster. The call event may be identified based on invoking execution of the second thread through execution of the first thread. The call event may be identified based on using data for execution of the second thread prior to processing data for execution of the first thread. The call event may include a remote procedure call and / or a lock event.
[0133] Referring to FIG. 10, in operation 1030, according to one embodiment, the electronic device may at least temporarily suspend execution of the first thread using the first cluster based on identifying an event for executing a second thread corresponding to the second cluster. The electronic device may at least temporarily suspend execution of the first thread based on storing a data set representing the execution of the first thread in a stack area of memory allocated to the first process (e.g., stack area (310) of FIG. 3).
[0134] Referring to FIG. 10, in operation 1040, according to one embodiment, the electronic device may execute a second thread (e.g., the second thread (412) of FIG. 4 or the third thread (413) of FIG. 4) corresponding to a second cluster (e.g., the second cluster (212) of FIG. 2 or the third cluster (213) of FIG. 2) through the first cluster. The electronic device may execute the second thread using thread information (e.g., the thread information (254) of FIG. 2) independently of executing the second thread using scheduling information (e.g., the scheduling information (255) of FIG. 2).
[0135] For example, based on the execution of a second thread through a first cluster, an electronic device may identify another event for executing a third thread among a plurality of threads, which is distinct from the second thread. The other event may refer to a binder call. The other event may refer to an event of calling a third thread using the second thread after identifying the event. The electronic device may identify the other event based on the execution of a binder driver for identifying the binder call. For example, based on the identification of the other event, the electronic device may use a first process to identify whether the third thread is identical to the first thread indicated by the data set. The electronic device may use a data set corresponding to the first thread pushed to a stack area (e.g., stack area (310) of FIG. 3) to identify whether the third thread and the first thread match. For example, the electronic device may at least temporarily suspend execution of the second thread when the third thread and the first thread are identical. For example, the electronic device may identify whether the third thread and the first thread are identical based on releasing a data set for the second thread within the stack area. However, this is not limited thereto. The electronic device may execute the first thread through the first cluster based on at least temporarily suspending execution of the second thread. For example, the electronic device may store another data set representing execution of the third thread within the stack area in a state distinct from the above state. The electronic device may execute the third thread through the first cluster based on the second process using the other data set. However, this is not limited thereto.
[0136] An electronic device according to one embodiment may identify an event between a thread and another thread, so as to execute the thread using a cluster corresponding to a relatively high frequency among a plurality of clusters. Based on the identified event, the electronic device may execute at least one of the thread or another thread using the cluster. A method for the electronic device to identify the thread associated with the event may be required.
[0137] In an electronic device (101) according to an embodiment as described above, the electronic device may include a memory (130; 215) that stores instructions and includes one or more storage media, and a processor (120; 210) that includes a first cluster (211) including one or more cores that operate in a first frequency range and a second cluster (212) including one or more cores having a maximum frequency less than a maximum frequency of the first frequency range. The instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to execute the first thread (411) by using the first cluster based on identifying a first thread (411) to be executed through the first cluster among a plurality of threads (411; 412; 413) executed based on the processor. The instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to identify a call event requiring execution of a second thread (412; 413) for execution of the first thread based on executing the first thread using the first cluster. The instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to at least temporarily suspend execution of the first thread using the first cluster based on identifying the call event for executing the second thread corresponding to the second cluster. The instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to execute the second thread corresponding to the second cluster via the first cluster.
[0138] For example, to identify the first thread, the instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to identify the first thread based on obtaining information (306) for executing at least one of the plurality of threads using the first cluster using the first process (251).
[0139] For example, in the second paragraph, to execute the first thread, the instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to execute the first thread using a second process (252) for executing each of the plurality of threads based on at least one of the first cluster or the second cluster, based on information obtained using the first process.
[0140] For example, to at least temporarily suspend execution of the first thread, the instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to at least temporarily suspend execution of the first thread based on storing a data set representing execution of the first thread within a stack area (310) of the memory assigned to the first process.
[0141] For example, the instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to identify another call event for executing a third thread among the plurality of threads, distinct from the second thread, based on executing the second thread through the first cluster. The instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to identify, using the first process, whether the third thread is identical to the first thread represented by the data set, based on identifying the other call event. The instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to at least temporarily suspend executing the second thread while the third thread and the first thread are identical. The instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to execute the first thread through the first cluster.
[0142] For example, the instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to store, within the stack area, another data set representing execution of the third thread in a state distinct from the state. The instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to execute the third thread through the first cluster based on the second process using the other data set.
[0143] For example, the call event may be identified based on calling the execution of the second thread through the execution of the first thread.
[0144] For example, the call event may be identified based on using the data for execution of the second thread prior to processing the data for execution of the first thread.
[0145] For example, the instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to identify a call event indicating that the second thread occupies data for executing the first thread. The instructions, when individually or collectively executed by the at least one processor, may cause the electronic device to, while identifying the call event indicating that the second thread occupies the data: at least temporarily suspend execution of operations requiring access to the data by the first thread using the first cluster, and execute operations requiring access to the data among operations of the second thread corresponding to the second cluster, through the first cluster.
[0146] In a method performed by an electronic device (101) according to an embodiment as described above, the method may include an operation of executing the first thread (411) to be executed through a first cluster (211) from among a plurality of threads (411; 412; 413) executed based on a processor (120; 210) using the first cluster. The method may include an operation of identifying a call event requiring execution of a second thread (412; 413) for execution of the first thread based on executing the first thread using the first cluster. The method may include an operation of at least temporarily stopping execution of the first thread using the first cluster based on identifying the call event for executing the second thread corresponding to the second cluster (212). The method may include an operation of executing the second thread corresponding to the second cluster through the first cluster.
[0147] For example, the operation of identifying the first thread may include an operation of identifying the first thread based on obtaining information (306) for executing at least one of the plurality of threads using the first cluster using the first process (251).
[0148] For example, the operation of executing the first thread may include executing the first thread using a second process (252) for executing each of the plurality of threads based on at least one of the first cluster or the second cluster, based on information obtained using the first process.
[0149] For example, the act of at least temporarily suspending execution of the first thread may include the act of at least temporarily suspending execution of the first thread based on storing a data set representing execution of the first thread within a stack area (310) of memory assigned to the first process.
[0150] For example, the method may include an operation of identifying another call event for executing a third thread among the plurality of threads, which is distinct from the second thread, based on the execution of the second thread through the first cluster. The method may include an operation of identifying, based on the identification of the other call event, using the first process, whether the third thread is identical to the first thread represented by the data set. The method may include an operation of at least temporarily suspending execution of the second thread when the third thread and the first thread are identical. The method may include an operation of executing the first thread through the first cluster.
[0151] For example, the operation of identifying whether the second thread is identical to the first thread may include storing, within the stack area, another data set representing the execution of the second thread in a state distinct from the state. The operation of identifying whether the second thread is identical to the first thread may include executing the third thread through the first cluster based on the second process using the other data set.
[0152] For example, the call event may be identified based on calling the execution of the second thread through the execution of the first thread.
[0153] For example, the call event may be identified based on using the data for execution of the second thread prior to processing the data for execution of the first thread.
[0154] In a computer-readable storage medium storing one or more programs according to one embodiment as described above, the one or more programs may include instructions that, when individually or collectively executed by at least one processor (120; 210) including a processing circuit of an electronic device (101), cause the electronic device to execute the first thread using the first cluster based on identifying a first thread (411) to be executed through a first cluster (211) among a plurality of threads (411; 412; 413) executed based on the processor. The one or more programs may include instructions that, when individually or collectively executed by the at least one processor of the electronic device, cause the electronic device to identify a call event that requires execution of a second thread (412; 413) for execution of the first thread based on executing the first thread using the first cluster. The one or more programs may, individually or collectively, include instructions that, when executed by the at least one processor of the electronic device, cause the electronic device to at least temporarily suspend execution of the first thread using the first cluster based on identifying the call event for executing the second thread corresponding to the second cluster (212). The one or more programs may, individually or collectively, include instructions that, when executed by the at least one processor of the electronic device, cause the electronic device to execute the second thread corresponding to the second cluster via the first cluster.
[0155] For example, to identify the first thread, the one or more programs may include instructions that, when individually or collectively executed by the at least one processor of the electronic device, cause the electronic device to identify the first thread based on obtaining information (306) for executing at least one of the plurality of threads using the first cluster using the first process (251).
[0156] For example, to execute the first thread, the one or more programs may include instructions that, when individually or collectively executed by the at least one processor of the electronic device, cause the electronic device to execute the first thread using a second process (252) for executing each of the plurality of threads based on at least one of the first cluster or the second cluster, based on information obtained using the first process.
[0157] For example, to at least temporarily suspend execution of the first thread, the one or more programs may include instructions that, when individually or collectively executed by the at least one processor of the electronic device, cause the electronic device to at least temporarily suspend execution of the first thread based on storing a data set representing execution of the first thread within a stack area (310) of memory assigned to the first process.
[0158] The devices described above may be implemented as hardware components, software components, and / or a combination of hardware components and software components. For example, the devices and components described in the embodiments may be implemented using one or more general-purpose computers or special-purpose computers, such as a processor, a controller, an arithmetic logic unit (ALU), a digital signal processor, a microcomputer, a field programmable gate array (FPGA), a programmable logic unit (PLU), a microprocessor, or any other device capable of executing instructions and responding to them. The processing device may execute an operating system (OS) and one or more software applications running on the operating system. The processing device may also access, store, manipulate, process, and generate data in response to the execution of the software. For ease of understanding, the processing device is sometimes described as being used alone; however, one of ordinary skill in the art will recognize that the processing device may include multiple processing elements and / or multiple types of processing elements. For example, a processing unit may include multiple processors, or a processor and a controller. Other processing configurations, such as parallel processors, are also possible.
[0159] Software may include a computer program, code, instructions, or a combination of one or more of these, which may configure a processing device to perform a desired operation or may independently or collectively command the processing device. The software and / or data may be embodied in any type of machine, component, physical device, computer storage medium, or device for interpretation by the processing device or for providing instructions or data to the processing device. The software may also be distributed over networked computer systems and stored or executed in a distributed manner. The software and data may be stored on one or more computer-readable recording media.
[0160] A method according to one embodiment may be implemented in the form of program instructions that can be executed through various computer means and recorded on a computer-readable medium. In this case, the medium may be one that continuously stores a computer-executable program or one that temporarily stores it for execution or download. In addition, the medium may be various recording or storage means in the form of a single or multiple hardware combinations, and is not limited to a medium directly connected to a computer system, but may also be distributed over a network. Examples of the medium may include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical recording media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, and those configured to store program instructions, including ROM, RAM, and flash memory. In addition, examples of other media may include recording or storage media managed by app stores that distribute applications, sites that supply or distribute various software, servers, etc.
[0161] Although the embodiments described above have been described by way of limited examples and drawings, those skilled in the art will appreciate that various modifications and variations can be made based on the above teachings. For example, appropriate results can still be achieved even if the described techniques are performed in a different order than described, and / or components of the described systems, structures, devices, circuits, etc. are combined or combined in a different manner than described, or are replaced or substituted with other components or equivalents.
[0162] Therefore, other implementations, other embodiments, and equivalents to the claims also fall within the scope of the claims described below.
Claims
1. In an electronic device (101), A memory (130; 215) storing instructions and including one or more storage media; and A processor (120; 210) comprising a first cluster (211) including one or more cores operating in a first frequency range, and a second cluster (212) including one or more cores having a maximum frequency less than a maximum frequency of the first frequency range, The above instructions, when individually or collectively executed by the at least one processor, cause the electronic device to: Based on identifying a first thread (411) to be executed through the first cluster among a plurality of threads (411; 412; 413) executed based on the above processor, the first thread is executed using the first cluster; Based on executing the first thread using the first cluster, identifying a call event that requires execution of a second thread (412; 413) for execution of the first thread; and Based on identifying the call event to execute the second thread corresponding to the second cluster: At least temporarily suspending execution of said first thread using said first cluster, and Causing the second thread corresponding to the second cluster to be executed through the first cluster, Electronic devices.
2. In the first paragraph, to identify the first thread, The above instructions, when individually or collectively executed by the at least one processor, cause the electronic device to: Using the first process (251), based on obtaining information (306) for executing at least one of the plurality of threads using the first cluster, causing the first thread to be identified, Electronic devices.
3. In any one of paragraphs 1 and 2, to execute the first thread, The above instructions, when individually or collectively executed by the at least one processor, cause the electronic device to: Based on the information obtained using the first process, causing the first thread to be executed using the second process (252) for executing each of the plurality of threads based on at least one of the first cluster or the second cluster. Electronic devices.
4. In any one of paragraphs 1 to 3, to at least temporarily suspend execution of the first thread, The above instructions, when individually or collectively executed by the at least one processor, cause the electronic device to: Causing to at least temporarily suspend execution of the first thread based on storing a data set representing execution of the first thread in a stack area (310) of the memory assigned to the first process. Electronic devices.
5. In any one of paragraphs 1 to 4, the instructions, when individually or collectively executed by the at least one processor, cause the electronic device to: Based on executing the second thread through the first cluster, another call event is identified for executing a third thread among the plurality of threads, which is distinct from the second thread, Based on identifying the other call event, using the first process, identifying whether the third thread is identical to the first thread represented by the data set; While the third thread and the first thread are in the same state, at least temporarily suspend execution of the second thread, and Causing said first thread to run through said first cluster, Electronic devices.
6. In any one of paragraphs 1 to 5, the instructions, when individually or collectively executed by the at least one processor, cause the electronic device to: In another state distinct from the above state, another data set representing the execution of the third thread is stored within the stack area, and Causing said third thread to run through said first cluster based on said second process using said other data set; Electronic devices.
7. In any one of paragraphs 1 to 6, The above call event is identified based on calling the execution of the second thread through the execution of the first thread. Electronic devices.
8. In any one of paragraphs 1 to 7, The above call event is identified based on using the data for execution of the second thread prior to processing the data for execution of the first thread. Electronic devices.
9. In any one of paragraphs 1 to 8, The above instructions, when individually or collectively executed by the at least one processor, cause the electronic device to: For the data to be executed by the first thread, identify the call event indicating that the second thread occupies it, While the above second thread has identified the call event indicating that it owns the above data: At least temporarily suspending the execution of operations requiring access to the data of the first thread by using the first cluster, Causing operations of the second thread corresponding to the second cluster, which require access to the data, to be executed through the first cluster. Electronic devices.
10. In a method performed by an electronic device (101), the method comprises: An operation of executing the first thread (411) to be executed through the first cluster (211) based on identifying the first thread (411) to be executed through the first cluster (211) among a plurality of threads (411; 412; 413) executed based on the processor (120; 210); An operation of identifying a call event requiring execution of a second thread (412; 413) for execution of the first thread based on execution of the first thread using the first cluster; and Based on identifying the call event for executing the second thread corresponding to the second cluster (212): An action of at least temporarily suspending execution of said first thread using said first cluster, and An operation including executing the second thread corresponding to the second cluster through the first cluster, method.
11. In the 10th paragraph, the operation of identifying the first thread is as follows: An operation of identifying the first thread based on obtaining information (306) for executing at least one of the plurality of threads using the first cluster using the first process (251). method.
12. In any one of clauses 10 to 11, the operation of executing the first thread is: An operation of executing the first thread using a second process (252) for executing each of the plurality of threads based on at least one of the first cluster or the second cluster, based on information obtained using the first process. method.
13. In any one of paragraphs 10 to 12, the action of at least temporarily suspending execution of the first thread comprises: An operation of at least temporarily suspending execution of the first thread based on storing a data set representing execution of the first thread in a stack area (310) of memory assigned to the first process. method.
14. In any one of clauses 10 to 13, the method, An operation of identifying another call event for executing a third thread among the plurality of threads, which is distinct from the second thread, based on executing the second thread through the first cluster; Based on the identification of said other call event, an operation of using said first process to identify whether said third thread is identical to said first thread represented by said data set; An action of at least temporarily stopping execution of the second thread while the third thread and the first thread are in the same state, and comprising an action of executing said first thread through said first cluster; method.
15. In a computer-readable storage medium storing one or more programs, the one or more programs, individually or collectively, when executed by at least one processor (120; 210) including a processing circuit of an electronic device (101), Based on identifying a first thread (411) to be executed through a first cluster (211) among a plurality of threads (411; 412; 413) executed based on the above processor, the first thread is executed using the first cluster; Based on executing the first thread using the first cluster, identifying a call event that requires execution of a second thread (412; 413) for execution of the first thread; and Based on identifying the call event for executing the second thread corresponding to the second cluster (212): At least temporarily suspending execution of said first thread using said first cluster, and instructions causing the electronic device to execute the second thread corresponding to the second cluster through the first cluster; Computer readable storage medium.
Citation Information
Patent Citations
Configuration of multi-cluster processor from single wide thread to two half-width threads
US20030163669A1
Thread migration to improve power efficiency in a parallel processing environment
US20090172424A1
Task placement for related tasks in a cluster based multi-core system
US20170097854A1
CPU cluster shared resource management
US20230040310A1
Performance islands for CPU clusters
US20230067109A1
