WO2025042164A1 - 프로세스의 실행을 제어하기 위한 전자 장치 및 그 방법 - Google Patents
프로세스의 실행을 제어하기 위한 전자 장치 및 그 방법 Download PDFInfo
- Publication number
- WO2025042164A1 WO2025042164A1 PCT/KR2024/012279 KR2024012279W WO2025042164A1 WO 2025042164 A1 WO2025042164 A1 WO 2025042164A1 KR 2024012279 W KR2024012279 W KR 2024012279W WO 2025042164 A1 WO2025042164 A1 WO 2025042164A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- processor
- group
- processes
- schedule
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
- G06F9/4893—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues taking into account power or heat criteria
Definitions
- the present disclosure relates to an electronic device and method for controlling the execution of a process.
- a processor e.g., a central processing unit (CPU) of an electronic device can support multitasking by executing multiple functions substantially simultaneously.
- the processor and/or a system process (or an operating system) executed by the processor can schedule time intervals (or time slots) that the processor is occupied by each of the multiple processes and/or the multiple threads.
- an electronic device may include one or more storage media, a memory for storing instructions, and at least one processor including a processing circuit.
- the instructions when individually or collectively executed by the at least one processor, may cause the electronic device to determine, for each of a plurality of processes while executing the instructions, a corresponding schedule group from among a plurality of preset schedule groups based on a state of the process.
- the instructions when individually or collectively executed by the at least one processor, may cause the electronic device to re-determine a length of a time interval utilized for execution of the at least one process in response to at least one of the plurality of processes switching from a first process group to a second process group or to the at least one process switching from the second process group to the first process group.
- the instructions when individually or collectively executed by the at least one processor, may cause the electronic device to execute the at least one process within the time interval having the re-determined length.
- the first process group may include a schedule group corresponding to processes for background execution.
- the second process group may include all other schedule groups except the schedule group corresponding to the processes for background execution.
- a method of an electronic device may be provided.
- the method may include an operation of determining, for each of a plurality of processes to be executed in the electronic device, a corresponding schedule group from among a plurality of preset schedule groups based on a state of the process.
- the method may include an operation of re-determining a length of a time interval used for execution of the at least one process in response to at least one of the plurality of processes switching from a first process group to a second process group or switching from the second process group to the first process group.
- the method may include an operation of executing the at least one process within the time interval having the re-determined length.
- the first process group may include a schedule group corresponding to processes for background execution.
- the second process group may include all schedule groups other than the schedule group corresponding to the processes for background execution.
- a non-transitory computer-readable storage medium storing instructions may be provided.
- the instructions when executed by an electronic device, may cause the electronic device to determine, for each of a plurality of processes while executing the instructions, a corresponding schedule group from among a plurality of preset schedule groups based on a state of the process.
- the instructions when executed by the electronic device, may cause the electronic device to re-determine a length of a time interval used for execution of the at least one process in response to at least one of the plurality of processes switching from a first process group to a second process group or switching from the second process group to the first process group.
- the instructions when executed by the electronic device, may cause the electronic device to execute the at least one process within the time interval having the re-determined length.
- the first process group may include a schedule group corresponding to processes for background execution.
- the above second process group may include all schedule groups other than the schedule group corresponding to the processes for background execution.
- an electronic device may include a memory for storing instructions and a processor for executing the instructions.
- the processor may be configured to determine schedule groups corresponding to each of the plurality of processes based on states of the plurality of processes while executing the instructions based on the plurality of processes.
- the processor may be configured to adjust a length of a time interval used for execution of the at least one process in response to switching the at least one process from a first schedule group to another schedule group for background execution, or switching from the other schedule groups to the first schedule group, based on the determination of the schedule groups.
- the processor may be configured to execute the at least one process within the time interval having the adjusted length.
- a method of an electronic device may include an operation of determining schedule groups corresponding to each of the plurality of processes based on states of the plurality of processes while executing instructions based on the plurality of processes.
- the method may include an operation of adjusting a length of a time interval used for execution of the at least one process in response to switching the at least one process from a first schedule group for background execution to other schedule groups, or switching the at least one process from the other schedule groups to the first schedule group, based on the determination of the schedule groups.
- the method may include an operation of executing the at least one process within the time interval having the adjusted length.
- a non-transitory computer-readable storage medium may include instructions.
- the instructions when executed by a processor of an electronic device, may cause the processor to determine a schedule group corresponding to each of the plurality of processes based on states of the plurality of processes.
- the instructions when executed by the processor, may cause the processor to, in response to the determination of the schedule group, switch the at least one process from a first schedule group for background execution to other schedule groups, or switch from the other schedule groups to the first schedule group, adjust a length of a time interval utilized for execution of the at least one process.
- the instructions when executed by the processor, may cause the processor to execute the at least one process within the time interval having the adjusted length.
- FIG. 1 illustrates an exemplary block diagram for explaining a hardware configuration of an electronic device according to one embodiment.
- FIG. 2 illustrates an example of a flow diagram of an electronic device according to one embodiment.
- Figure 3 illustrates an exemplary operation of an electronic device for determining a schedule group corresponding to a process.
- FIG. 4 illustrates an example of a flow diagram of an electronic device according to one embodiment.
- FIG. 5 illustrates an exemplary operation of an electronic device for scheduling time resources of a processor using process groups corresponding to processes.
- FIG. 6 illustrates an example of a flow diagram of an electronic device according to one embodiment.
- Figure 7 illustrates an exemplary operation of an electronic device for transmitting information between processes.
- FIG. 8 is a graph illustrating the usage of a processor of an electronic device in the time domain while the electronic device is booting, according to one embodiment.
- FIG. 9 is a block diagram of an electronic device within a network environment according to various embodiments.
- Expressions such as “first”, “second”, “first” or “second” can modify the corresponding components, regardless of order or importance, and are only used to distinguish one component from another and do not limit the corresponding components.
- a certain (e.g., a first) component is "(functionally or communicatively) connected” or “connected” to another (e.g., a second) component
- said certain component may be directly connected to said other component, or may be connected through another component (e.g., a third component).
- module includes a unit composed of hardware, and may be used interchangeably with terms such as component, and/or circuit.
- a module may be an integrally composed component or a minimum unit or part thereof that performs one or more functions.
- a module may be composed of an application-specific integrated circuit (ASIC).
- ASIC application-specific integrated circuit
- FIG. 1 illustrates an exemplary block diagram for explaining a hardware configuration of an electronic device (101) according to one embodiment.
- the electronic device (101) may be referred to as a terminal (or user terminal).
- the terminal may include a smart accessory such as a smartwatch (101-1), a smart ring (101-2), and/or a head-mounted device (HMD).
- the terminal may include, for example, a personal computer (PC) such as a laptop and a desktop.
- the terminal may include, for example, a smartphone (101-3), a smartpad, and/or a tablet PC.
- exemplary form factors of the electronic device (101) are illustrated as a smartwatch (101-1), a smart ring (101-2), and/or a smartphone (101-3). The embodiment is not limited thereto.
- the electronic device (101) may perform one or more tasks while turned on. To perform the one or more tasks, the electronic device (101) may perform an operation (e.g., booting) to activate one or more circuits included in the electronic device (101). After booting, the electronic device (101) may perform the one or more tasks using the one or more circuits. Referring to FIG. 1, one or more circuits included in the electronic device (101) are illustrated as blocks.
- the electronic device (101) may include at least one of a processor (110), a memory (120), a display (130), a sensor (140), and a communication circuit (150).
- the processor (110), the memory (120), the display (130), the sensor (140), and the communication circuit (150) may be electrically and/or operably coupled with each other by an electronic component such as a communication bus (102).
- operably coupled electronic components may mean that a direct connection or an indirect connection is established between the electronic components, either wired or wireless, so that a second electronic component is controlled by a first electronic component.
- the electronic device (101) may be included in a single integrated circuit such as a SoC (system on a chip).
- SoC system on a chip
- the type and/or number of hardware components included in the electronic device (101) is not limited to those illustrated in FIG. 1.
- the electronic device (101) may include only some of the hardware components illustrated in FIG. 1.
- programs stored in a memory (120) are illustrated as being classified according to functions supported by each of the programs and/or information exchanged between the programs.
- programs installed in an electronic device (101) may be classified into any one of different layers, including an application layer (160), a platform layer (170), a native layer (180), and/or a kernel layer (190), based on a target.
- the embodiment is not limited thereto, and the layers may further include other layers, such as a hardware abstraction layer (HAL).
- HAL hardware abstraction layer
- the platform layer (170) may provide an executable (or callable) API (application programming interface) based on a software application (or application program) classified as the application layer (160).
- a program for managing a screen e.g., a window and/or activity
- a program classified as the application layer (160) such as an activity manager service (172)
- programs are illustrated that are divided into a platform layer (170), a native layer (180), and/or a kernel layer (190), but the embodiment is not limited thereto.
- Functions and/or operations of at least two programs among the programs divided into the platform layer (170), the native layer (180), and/or the kernel layer (190) may be integrated into a single program.
- the operation of the electronic device (101) and/or the processor (110) is described as being divided by programs divided into the platform layer (170), the native layer (180), and/or the kernel layer (190), but the embodiment is not limited thereto.
- the operation of the electronic device (101) and/or the processor (110) described with reference to FIGS. 2 to 8 may be performed by a single program and/or a single process.
- programs designed to target users of the electronic device (101) may be classified within the application layer (160).
- programs classified within the application layer (160) include, but are not limited to, a gallery application (162) for browsing photos and/or videos, a calling application (164) for voice calls and/or video calls, and/or a game application (166).
- programs (e.g., software applications) classified within the application layer (160) may call an application programming interface (API) to cause execution of functions supported by programs classified within the platform layer (170).
- API application programming interface
- the processor (110) of the electronic device (101) may control the execution of programs, which are illustrated as blocks of FIG. 1, based on processes. While executing instructions based on a plurality of processes, the processor (110) may detect or confirm states of the plurality of processes. The processor (110) may classify the processes into designated (preset or predetermined or specified) schedule groups based on the states of the processes.
- the schedule groups may include, but are not limited to, a top-application schedule group, a foreground schedule group, a background schedule group, and/or a root schedule group. A schedule group may be referred to as a sched group.
- the processor (110) of the electronic device (101) may schedule resources to be used for execution of each of the processes based on a result of classifying the processes into schedule groups.
- the resources may represent the availability of the processor (110) and/or the electronic device (101) consumed or occupied for execution of the process.
- the resources scheduled by the processor (110) may include the length of a time interval of the processor (110) used to execute instructions of the process.
- the embodiment is not limited thereto, and the resources scheduled by the processor (110) may include the size of a portion allocated for the process within the memory (120) and/or a port number allocated to the process for utilizing a network.
- the processor (110) of the electronic device (101) can prevent or reduce the execution of processes from being delayed for scheduling by reducing the frequency of scheduling.
- An operation of the processor (110) determining the length of a time interval for executing instructions of a process based on scheduling is described with reference to FIG. 4 and/or FIG. 5.
- the processor (110) of the electronic device (101) may support a function for transmitting and/or receiving information between processes.
- the function may be executed based on an API provided by the platform layer (170) and/or a designated data structure (e.g., an intent object).
- the processor (110) may execute instructions of another process in response to a call of the API based on instructions of a specific process.
- the processor (110) may adjust (e.g., delay) the timing for executing the function for transmitting information between processes based on the usage of the processor (110) that changes due to execution of the processes. An operation for adjusting the timing for executing the function by the processor (110) is described with reference to FIG. 6 and/or FIG. 7.
- the processor (110) of the electronic device (101) may perform an operation to reduce the load of the processor (110). For example, in order to improve the response speed of a low-power device and/or a low-performance device (e.g., the response speed of the electronic device (101) to a user input), the electronic device (101) may reduce the frequency of scheduling processes or simplify the operation of scheduling processes. For example, in the case of a low-performance device, since the time and/or load consumed for scheduling may slow down the response speed, the processor (110) of the electronic device (101) may reduce the frequency of scheduling processes. In order to improve the response speed, the electronic device (101) may change the timing of executing a function for transmitting information between processes.
- FIG. 2 illustrates an example of a flow diagram of an electronic device according to one embodiment.
- the electronic device (101) and/or the processor (110) of FIG. 1 may perform the operations of the electronic device described with reference to FIG. 2.
- a processor of an electronic device may detect a change in a state of a process.
- the state of operation (210) may include an execution state of a process executed by the processor.
- the state of operation (210) may be distinguished by at least one of whether a screen provided by the process is displayed on a display of the electronic device (e.g., display (130) of FIG. 2), whether an audio signal provided by the process is output through a speaker of the electronic device, whether an animation for screen transition is played by the process, or whether an operation such as downloading, uploading, and/or updating is performed by the process.
- a processor of an electronic device may detect a change in a state of a process based on instructions included in the process. For example, based on executing instructions for switching to a background state that does not occupy an output means of the electronic device (e.g., a display (130 and/or speaker) of FIG. 2), the processor may switch a process corresponding to the instructions to the background state.
- the processor may detect a change in the state of the process by tracking or monitoring the state of the process.
- a processor of an electronic device may determine a schedule group corresponding to a process from among a plurality of designated schedule groups based on a changed state. While executing a plurality of processes, the processor may determine a schedule group corresponding to each of the plurality of processes based on the states of the plurality of processes. That is, the processor may determine a corresponding schedule group from among a plurality of preset schedule groups based on the state (e.g., changed state) of the process for each of the plurality of processes.
- the designated schedule groups of the operation (220) may include a top-application schedule group corresponding to a process providing a screen displayed on a display of the electronic device (e.g., the display (130) of FIG. 2).
- the designated schedule groups of the operation (220) may include a foreground schedule group corresponding to a process not included in the top-application schedule group and corresponding to a process providing an audio signal output by the electronic device or providing an animation (or visual effect) displayed on the display.
- the designated schedule groups of the operation (220) may include a background schedule group and/or a root schedule group corresponding to a process not included in the top-application schedule group and/or the foreground schedule group.
- the processor may classify a process switched to a background state into a background schedule group.
- a processor of an electronic device may determine whether a process is included in a first designated schedule group related to background execution.
- the first designated schedule group of operation (230) may include a background schedule group. If a process classified into the first designated schedule group is identified based on a change in state (230-Yes), the processor may perform operation (240). For example, if a schedule group corresponding to the processor is changed from other schedule groups different from the background schedule group to the background schedule group, the processor may perform operation (240). If a process not classified into the first designated schedule group is identified based on a change in state (230-No), the processor may perform operation (250). For example, if a schedule group corresponding to the processor is changed from the background schedule group to the other schedule group, the processor may perform operation (250).
- a processor of an electronic device may change a process group corresponding to a process to a background process group associated with background execution.
- the process group may be referred to as a process control group and/or a cgroup.
- the process group may be a group for classifying a process in order to allocate resources of the processor and/or the electronic device. For example, for a process switched to the background schedule group from other schedule groups different from the background schedule group, the processor may classify the process to a background process group corresponding to profile information for execution in the background.
- the process group for distribution and/or allocation of resources may be divided into only two process groups (e.g., a background process group and a root process group for classifying a process different from the background process group).
- a first process group may include a schedule group corresponding to processes for background execution
- a second process group may include all other schedule groups except for a schedule group corresponding to processes for background execution.
- the processor of the electronic device may change the process group corresponding to the process to the root process group.
- the processor classifies the process using two process groups, one or more processes classified into the background process group of operation (240) and other remaining processes may be classified into the root process group of operation (250).
- a process running in the background may be classified into the background process group, and other processes not classified into the background process group may be classified into the root process group.
- the processor may classify a plurality of processes into either the background process group or the root process group.
- a processor of an electronic device may perform scheduling of a processor related to execution of a process based on profile information of a background process group and/or a root process group.
- the processor may perform scheduling of processes classified into a background process group or a root process group based on profile information of the corresponding process group based on operations (230, 240, 250).
- the profile information of the operation (260) may correspond to a process group used by the electronic device (e.g., the background process group and/or the root process group of the operations (240, 250)).
- the profile information may include the time of the processor used for execution of the process included in the process group, the input and output limitations of the memory (e.g., the memory (120) of FIG. 2) and/or the size of the cache and/or pages formed for execution of the process within the memory.
- a child process group of a specific process group may inherit at least a part of the profile information of the specific process group. Based on the inheritance, scheduling for the process included in the child process group may be performed based on the profile information of the specific process group.
- the processor can determine the time that the processor is to spend executing each of the processes. For example, the processor can adjust the length (or duration) of the time interval used for executing the processes. In one embodiment, the processor can perform the scheduling of the operation (260) when switching at least one process from a first designated schedule group for background execution to other schedule groups, or switching from the other schedule groups to the first designated schedule group. For example, in response to detecting the at least one process, the processor can adjust the length of the time interval used for executing the at least one process. The processor can execute the at least one process within the time interval having the adjusted length.
- the processor in response to switching from at least one first process group (e.g., a background process group) to a second process group (e.g., a root process group) among a plurality of processes, or switching from the second process group to the first process group of at least one process, the processor can re-determine a length of a time interval used for execution of the at least one process, and execute the at least one process within the time interval having the re-determined length.
- a first process group e.g., a background process group
- a second process group e.g., a root process group
- the processor of the electronic device performs scheduling of operations (260)
- execution of processes and/or threads based on the processor may be at least temporarily suspended.
- the processor may simplify the scheduling operation, for example, based on the classification of processes into simplified process groups (e.g., background process groups and/or root process groups) within operations (240, 250). Since the simplified process groups are utilized, the processor may reduce the frequency (and/or number of times) that it re-performs scheduling due to changes in the process groups. Since the frequency and/or time that execution of processes and/or threads is suspended due to scheduling is reduced, the responsiveness of the processor to other events, such as user input, may be increased.
- simplified process groups e.g., background process groups and/or root process groups
- the processor may reduce the frequency (and/or number of times) that it re-performs scheduling due to changes in the process groups. Since the frequency and/or time that execution of processes and/or threads is suspended due to scheduling is reduced, the responsiveness of the processor to other events, such as
- the processor can execute the at least one process without re-determining the length of the time interval used for execution of the at least one process.
- the operations of FIG. 2 may be performed by different programs of the electronic device described with reference to FIG. 1.
- the operation (220) for classifying a schedule group may be performed based on the execution of the activity manager service (172) of FIG. 1.
- the processor may perform operations (230, 240, 250).
- the processor that executes the activity manager service (172) of FIG. 1 may execute the process group library (182) of FIG. 1 based on the result of classifying the process group corresponding to the process.
- the processor that executes the process group library (182) of FIG. 1 may identify profile information corresponding to each process group. Based on the identified profile information, the processor may perform scheduling of the operation (260). Scheduling of the operation (260) may be performed based on the execution of the scheduler (192) of the process group library (182) and/or the kernel layer (190) of FIG. 1.
- FIG. 3 illustrates an exemplary operation of an electronic device for determining a schedule group corresponding to a process (310).
- the electronic device (101) and/or the processor (110) of FIG. 1 may perform the operation described with reference to FIG. 3.
- the operation of the electronic device of FIG. 3 may be related to the operation (220) of FIG. 2.
- the operation of the electronic device of FIG. 3 may be performed based on the execution of the activity manager service (172) of FIG. 1 (or the OomAdjuster module included in the activity manager service (172)).
- a top-application schedule group (321) may be set to classify a process associated with a screen being displayed on a display (e.g., the display (130) of FIG. 2).
- the screen may have a shape of a figure (e.g., a rectangle and/or a rectangle with rounded corners) that occupies at least a portion of the display area of the display, such as a window and/or an activity.
- a process corresponding to a screen currently being displayed on the display may be classified into the top-application schedule group (321).
- the foreground schedule group (322), the background schedule group (324), and/or the root schedule group (323) may be set to classify processes other than the processes classified into the top-application schedule group (321).
- the foreground schedule group (322) may be set to classify processes that output audio signals or output animations, but do not correspond to screens displayed on the display. For example, in response to an input for selecting an icon within a launcher screen (or home screen), the electronic device may display an execution screen corresponding to the icon. While switching from the launcher screen to the execution screen, the electronic device may play an animation for switching from the launcher screen to the execution screen based on the process corresponding to the launcher screen. In the above example, the process corresponding to the execution screen may be classified into the top-application schedule group (321), and the process corresponding to the launcher screen may be classified into the foreground schedule group (322).
- the background schedule group (324) may be set to classify a process that is explicitly switched to a background state by instructions.
- the background schedule group (324) may be set to classify a process that is switched to the background state by a system process of the electronic device (e.g., the activity manager service (172) of FIG. 1).
- the processor may select or filter a process to be classified into the background schedule group (324) from among the processes that are not classified into the top-application schedule group (321) and the foreground schedule group (322) among a plurality of processes.
- the root schedule group (323) may be set to classify the remaining processes that are not classified into the top-application schedule group (321), the foreground schedule group (322), and the background schedule group (324).
- the electronic device may classify the process into one of the process groups described with reference to FIG. 3 based on the state in which the process is executed and/or the function executed by the process. All of the processes executed by the processor may be classified into one of the process groups of FIG. 3. When the state of the process changes, the electronic device may change the process group corresponding to the process.
- the electronic device may control resources of the electronic device to be occupied for execution of a process (e.g., time resources of a processor used for execution of a process) by using a process group.
- the electronic device may allocate resources to each of the processes by using a background process group corresponding to a background schedule group (324) and a root process group corresponding to all of the other schedule groups (e.g., a top-application schedule group (321), a foreground schedule group (322), and/or a root schedule group (323)).
- the processor may maintain the resources allocated to the process without changing the process group corresponding to the process.
- the processor may not change the resources.
- the processor can change the process group corresponding to the process and perform scheduling for the process again.
- FIG. 4 illustrates an example of a flow diagram of an electronic device according to one embodiment.
- the electronic device (101) and/or the processor (110) of FIG. 1 may perform operations of the electronic device described with reference to FIG. 4.
- the operations of FIG. 4 may be related to at least one of the operations of FIG. 2.
- a processor of an electronic device may detect a change in a schedule group of a process. As described above with reference to FIGS. 1 to 3, based on a change in a state of the process, the process may be reclassified from one of the designated schedule groups to another schedule group.
- the designated schedule groups may include the schedule groups described with reference to FIG. 3.
- the processor that detects a change in a schedule group may perform operation (420).
- a processor of an electronic device may detect whether a changed schedule group corresponds to a background schedule group.
- the background schedule group of operation (420) may include the background schedule group (324) of FIG. 3. If the changed schedule group corresponds to the background schedule group based on operation (410) (420-Yes), the processor may perform operation (430). If the changed schedule group is different from the background schedule group based on operation (410) (420-No), the processor may perform operation (440).
- a processor of an electronic device may determine a process group corresponding to a process as a background process group.
- the processor may classify the process as a background process group. Switching the state of the process to a background state may cause a change in all of the schedule group and process group of the process.
- a processor of an electronic device may determine a process group corresponding to a process as a root process group. If the process is changed to a different schedule group from a background schedule group, the processor may classify the process as a root process group. If the state of the process is switched between a background state and different states, the process group of the processor may be maintained within the root process group.
- the processor of the electronic device may classify a plurality of processes into one of a first process group for background execution (e.g., a background process group of operation (430)) and a second process group different from the first process group (e.g., a root process group of operation (440)) based on schedule groups corresponding to each of the processes.
- a first process group for background execution e.g., a background process group of operation (430)
- a second process group different from the first process group e.g., a root process group of operation (440)
- a processor of an electronic device may perform scheduling of a process of operation (410) based on whether a process group has changed. Since the processor determines a process group corresponding to a process from among a background process group or a root process group, the processor may perform operation (450) based on switching the process between the background process group and the root process group.
- the processor may re-determine a length of a time interval used for execution of the at least one process, and execute the at least one process within the time interval having the re-determined length. For example, when switching a process between different scheduling groups, the background scheduling group corresponding to the background process group, the processor may maintain the predetermined scheduling without performing scheduling based on the operation (450).
- the processor may execute the at least one process without re-determining the length of the time interval used for execution of the at least one process. Since scheduling based on the operation (450) is not performed, the processor may save or reduce time resources consumed for scheduling.
- the processor can maintain scheduling of the process independently of detecting a change in the schedule group of operation (410). For example, when the schedule group of the process is changed between different schedule groups from the background scheduling group, the processor may not change information (e.g., profile information) for scheduling of the process. Since the processor does not perform additional calculations to change the information for scheduling of the process, the processor can save resources consumed for scheduling. For example, the processor can process user input including touch input instead of changing the information for scheduling.
- information e.g., profile information
- the processor of the electronic device can classify a process into one of the background process group or the root process group.
- the processor can change the scheduling properties for the process (e.g., the duration for which the processor executes the process). Since all other schedule groups different from the background schedule group are included in the root process group, when the process is switched between the top-application schedule group or the foreground schedule group, the process group of the process can be maintained within the root process group. For example, the switching of the process between the other schedule groups may not trigger scheduling of the processor. Since the frequency of scheduling is reduced, the amount of computation and/or time for scheduling may be reduced, and the response speed may be increased. Since the amount of computation for scheduling is reduced, the heat generation of the electronic device may be reduced, and the battery life may be increased.
- FIG. 5 illustrates an exemplary operation of an electronic device for scheduling time resources of a processor using process groups corresponding to processes.
- the electronic device (101) and/or the processor (110) of FIG. 1 may perform the operation of the electronic device described with reference to FIG. 5.
- the operation of FIG. 5 may be related to at least one of the operations of FIG. 2 and/or FIG. 4.
- a hierarchical relationship between a root process group (510) and a background process group (520), which is a subordinate process group of the root process group (510), is exemplarily illustrated.
- the background process group (520) may inherit or utilize at least a portion of information (e.g., profile information) for scheduling processes of the root process group (510). For example, at least one of a memory bandwidth limitation, a cache memory size upper limit, a processor time resource occupancy rate, and/or a network resource limitation applied to processes of the root process group (510) may be applied to processes of the background process group (520).
- the processor may schedule at least one process based on first profile information corresponding to the first process group (e.g., the background process group (520)), and when at least one process is switched to a second process group, the processor may schedule at least one process based on second profile information corresponding to the second process group (e.g., the root process group).
- first profile information corresponding to the first process group e.g., the background process group (520)
- second profile information corresponding to the second process group e.g., the root process group
- FIG. 5 an exemplary state of an electronic device executing six processes is illustrated.
- the number of processes executed by the electronic device is not limited to the exemplary state of FIG. 5.
- a first process (531), a second process (532), and a third process (533) may be classified into a background process group (520), and a fourth process (534), a fifth process (535), and a sixth process (536) may be classified into a root process group (510).
- An operation of the electronic device classifying a plurality of processes may be performed based on the operations of FIG. 2 and/or FIG. 4.
- the embodiment is not limited thereto, and a process executed in a kernel layer and/or a platform layer may be classified into a root process group (510).
- an electronic device may calculate a period of a processor executing each of the processes based on a weight.
- 'CPU_shares' (or 'CPU.shares') of FIG. 5 may be a numeric value used for calculating a process.
- the numeric value may be referred to as a weight, a time slice, and/or a quantum.
- the processor may determine the lengths of time intervals used to execute each of the plurality of processes.
- the lengths of time intervals used to execute processes in a first process group may be determined based on a first weight corresponding to the first process group, and the lengths of time intervals used to execute processes in a second process group may be determined based on a second weight corresponding to the second process group.
- the electronic device may assign consistent weights (e.g., 1024).
- the weights may be assigned to the fourth process (534) to the sixth process (536).
- each of the processes in the second process group may be assigned a second weight.
- the weights assigned to the processes in the root process group (510) may be assigned to the entire background process group (520).
- the weights of the root process group (510) may be applied to the background process group (520) based on the hierarchical relationship between the root process group (510) and the background process group (520). For example, the first weights may be divided to each of the processes in the first process group.
- the electronic device can change the weight (e.g., 1024) assigned to the background process group (520) based on the state of the processor (e.g., load and/or usage).
- the processor can change the weight in response to at least one of a specified event, such as receipt of a touch input, increased usage of the processor above a threshold, temperature of the processor above a threshold temperature, and/or an update.
- the processor can adjust the first weight based on at least one of the usage of the processor, a temperature identified by a temperature sensor of the electronic device, or a touch input identified via a touch sensor of the electronic device.
- the processor can multiply the weight assigned to the background process group (520) by a coefficient based on the state of the processor to calculate a time resource for executing all of the processes of the background process group (520).
- the coefficient applied to the weight e.g., the 50% described above
- an electronic device designed for detection and/or processing of health data such as a smartwatch (e.g., the smartwatch (101-1) of FIG. 1), can determine the coefficient applied to the weight of the background process group (520) to a designated coefficient (e.g., 70% to 100%) for processing a process related to the health data.
- the electronic device may assign the total weight 512 assigned to the background process group (520) to the number of processes included in the background process group (e.g., 3).
- the processes included in the background process group (520) e.g., the first process (531) to the third process (533)
- Each of the processes included in the root process group (510) e.g., the fourth process (534) to the sixth process (536)
- the weights assigned to each of the processes may be selected from the weights assigned to the background process group (520) or the weights assigned to the root process group (510).
- the weights assigned to the background process group (520) may be adjusted based on at least one of the processor usage, the temperature of the electronic device, or the touch input.
- the electronic device can determine the lengths of time intervals used to execute each of the plurality of processes based on the weights assigned to each of the plurality of processes.
- the ratio of the time intervals of the processor used to execute the process can correspond to the ratio of the weight assigned to the process to the sum of the weights of all the processes.
- the ratio at which the processor executes six processes can be calculated as shown in Table 1.
- the time resource occupancy rate of the processes included in the background process group (520) can decrease.
- the time resource occupancy rate of the processes classified into the background process group (520) can decrease.
- the processor of the electronic device may adjust or determine the length of a time interval of the processor used for execution of a process, using only the background process group (520) and the root process group (510).
- FIG. 6 illustrates an example of a flow diagram of an electronic device according to one embodiment.
- the electronic device (101) and/or the processor (110) of FIG. 1 may perform operations of the electronic device described with reference to FIG. 6.
- the operations of FIG. 6 may be related to at least one of the operations of FIG. 2 and/or FIG. 4.
- the processor of the electronic device may determine or detect a state of the processor.
- the processor may obtain parameters indicative of a state of the processor.
- the parameters may include a temperature of the electronic device and/or the processor, a processor usage amount due to execution of a process, and/or whether a touch input has been identified.
- a processor of an electronic device may set and/or adjust a delay used for executing processes corresponding to the broadcast by comparing a state of the processor identified based on operation (610) and a first designated condition related to the broadcast.
- the first designated condition may include whether a temperature of the electronic device and/or the processor exceeds a designated threshold temperature.
- the first designated condition may include whether a usage of the processor exceeds a threshold usage amount.
- the first designated condition may include whether a touch input is received. If the first designated condition as exemplified is satisfied, the processor may set or increase a delay of operation (620). As the delay increases, an interval between timings of executing each of the processes corresponding to the broadcast may increase.
- a processor of an electronic device may adjust a time resource of a processor used for execution of at least one process classified into a background process group by comparing a state of the processor identified based on operation (610) and a second designated condition related to scheduling of the processor.
- the second designated condition may include at least one of a usage amount of the processor, whether a touch input is received, and/or a temperature of the processor, similar to the first designated condition of operation (620).
- the processor may adjust a weight used to determine the time resource of the processes included in the background process group. For example, the processor may change a coefficient applied to the weight of FIG. 5.
- FIG. 7 illustrates exemplary operations of an electronic device for transmitting information between processes.
- the electronic device (101) and/or the processor (110) of FIG. 1 may perform operations of the electronic device described with reference to FIG. 7.
- the operations of the electronic device described with reference to FIG. 7 may be related to the operations of FIG. 2, FIG. 4, and/or FIG. 6.
- the processor can detect a request for transmitting information from a particular process to another process.
- the request can be detected based on an intent object (710).
- the intent object (710) can include a data structure defined for transmitting information between processes and/or requesting an action.
- the intent object (710) can include an action attribute requested from a process to be executed based on the intent object (710) and/or a data attribute related to the action.
- an intent object (710) generated for executing a web page can include an action attribute indicating that the intent object (710) was generated to request display of a web page and an address (e.g., a uniform resource location (URL) and/or a uniform resource indicator (URI)) of the web page.
- URL uniform resource location
- URI uniform resource indicator
- the processor can perform a broadcast based on an intent object (710) by using broadcast services for each of the processes classified as a background process group and the processes classified as a root process group.
- an exemplary state of an electronic device executing four processes e.g., a first process (721), a second process (722), a third process (723), and a fourth process (724)
- the electronic device that has identified the intent object (710) can sequentially execute the four processes corresponding to the intent object (710) and/or a request related to the intent object (710) based on a delay set by the operation (620) of FIG. 6.
- the delay can be adjusted based on at least one of the usage amount of the processor of the electronic device, the temperature of the electronic device, or the touch input identified by the electronic device. For example, the delay may be proportional to the usage amount and/or the temperature. The delay may be set by a look-up table based on the usage amount and/or the temperature. The delay may be increased when a touch input is received.
- the processor can execute the first process (721) based on the intent object (710), and then execute the second process (722) based on a delay according to the state of the processor.
- the processor can execute the second process (722) at a timing after the delay from the timing at which the completion of the operation of the first process (721) based on the intent object (710) is detected (e.g., the timing at which the termination response of the first process (721) is identified).
- the processor can prevent four processes related to the intent object (710) from being executed in an overlapping manner.
- the processor can prevent a rapid increase in processor usage.
- the processor can prevent processor saturation. Since processor saturation is prevented, the processor can react more quickly to user input such as a touch input.
- FIG. 8 is a graph illustrating the usage of a processor of an electronic device in the time domain while the electronic device is booting, according to one embodiment.
- graphs (810, 820) are illustrated comparing booting times of a first electronic device that calculates resources of processes based on process groups corresponding to each of schedule groups, and a second electronic device that calculates resources of processes based on a background process group and a root process group among the process groups.
- the graph (810) represents CPU usage during booting of the first electronic device.
- the graph (820) represents CPU usage during booting of the second electronic device.
- the second electronic device may be an example of the electronic devices of FIGS. 1 to 7.
- the point in time (t2) at which the CPU usage of the first electronic device decreases may be after the point in time (t1) at which the CPU usage of the second electronic device decreases.
- the booting of the first electronic device may be completed later than the booting of the second electronic device.
- the second electronic device may perform scheduling for the process with only two process groups based on the operations described with reference to FIGS. 1 to 7, and may perform an operation related to the intent object using a delay based on the state of the processor. Since the second electronic device controls the CPU usage more efficiently, the booting-based usage of the second electronic device may be reduced earlier than the usage of the first electronic device after the first electronic device and the second electronic device are turned on at the same time.
- the booting of the first electronic device may be completed after an average of 209 seconds, and the booting of the second electronic device may be completed after an average of 176 seconds.
- the second electronic device may control the execution of a process based on scheduling of the processor and/or an intent object based on the operations of FIGS. 1 to 7. Based on the control of the scheduling and/or the execution of the process, the second electronic device may reduce the interruption of the execution of the process due to scheduling and reduce the usage of the processor. Since the number of times and/or the frequency of interruption of the execution of the process is reduced, the second electronic device may complete or perform a specific operation (e.g., booting) faster than the first electronic device, as shown in the graphs (810, 820) of FIG. 8. The embodiment is not limited thereto.
- FIG. 9 is a block diagram of an electronic device (901) in a network environment (900) according to various embodiments.
- the electronic device (901) may communicate with the electronic device (902) via a first network (998) (e.g., a short-range wireless communication network) or may communicate with at least one of the electronic device (904) or the server (908) via a second network (999) (e.g., a long-range wireless communication network).
- the electronic device (901) may communicate with the electronic device (904) via the server (908).
- the electronic device (901) may include a processor (920), a memory (930), an input module (950), an audio output module (955), a display module (960), an audio module (970), a sensor module (976), an interface (977), a connection terminal (978), a haptic module (979), a camera module (980), a power management module (988), a battery (989), a communication module (990), a subscriber identification module (996), or an antenna module (997).
- the electronic device (901) may omit at least one of these components (e.g., the connection terminal (978)), or may have one or more other components added.
- some of these components e.g., the sensor module (976), the camera module (980), or the antenna module (997) may be integrated into one component (e.g., the display module (960)).
- the processor (920) may control at least one other component (e.g., a hardware or software component) of the electronic device (901) connected to the processor (920) by executing, for example, software (e.g., a program (940)), and may perform various data processing or calculations.
- the processor (920) may store a command or data received from another component (e.g., a sensor module (976) or a communication module (990)) in the volatile memory (932), process the command or data stored in the volatile memory (932), and store result data in the nonvolatile memory (934).
- the processor (920) may include a main processor (921) (e.g., a central processing unit or an application processor) or an auxiliary processor (923) (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 (921).
- a main processor e.g., a central processing unit or an application processor
- an auxiliary processor e.g., a graphics processing unit, a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor
- the auxiliary processor (923) may be configured to use less power than the main processor (921) or to be specialized for a given function.
- the auxiliary processor (923) may be implemented separately from the main processor (921) or as a part thereof.
- the auxiliary processor (923) may control at least a portion of functions or states associated with at least one of the components of the electronic device (901) (e.g., the display module (960), the sensor module (976), or the communication module (990)), for example, on behalf of the main processor (921) while the main processor (921) is in an inactive (e.g., sleep) state, or together with the main processor (921) while the main processor (921) is in an active (e.g., application execution) state.
- the auxiliary processor (923) e.g., an image signal processor or a communication processor
- the auxiliary processor (923) may include a hardware structure specialized for processing artificial intelligence models.
- the artificial intelligence models may be generated through machine learning. Such learning may be performed, for example, in the electronic device (901) itself on which the artificial intelligence model is executed, or may be performed through a separate server (e.g., server (908)).
- the learning algorithm may 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 may include a plurality of 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), deep Q-networks, or a combination of two or more of the above, but is not limited to the examples described above.
- the artificial intelligence model may additionally or alternatively include a software structure.
- the memory (930) can store various data used by at least one component (e.g., the processor (920) or the sensor module (976)) of the electronic device (901).
- the data can include, for example, software (e.g., the program (940)) and input data or output data for commands related thereto.
- the memory (930) can include a volatile memory (932) or a nonvolatile memory (934).
- the program (940) may be stored as software in memory (930) and may include, for example, an operating system (942), middleware (944), or an application (946).
- the input module (950) can receive commands or data to be used for components of the electronic device (901) (e.g., processor (920)) from an external source (e.g., a user) of the electronic device (901).
- the input module (950) 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).
- the audio output module (955) can output an audio signal to the outside of the electronic device (901).
- the audio output module (955) 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 an incoming call. According to one embodiment, the receiver can be implemented separately from the speaker or as a part thereof.
- the display module (960) can visually provide information to an external party (e.g., a user) of the electronic device (901).
- the display module (960) can include, for example, a display, a holographic device, or a projector and a control circuit for controlling the device.
- the display module (960) can include a touch sensor configured to detect a touch, or a pressure sensor configured to measure a strength of a force generated by the touch.
- the audio module (970) can convert sound into an electrical signal, or vice versa, convert an electrical signal into sound. According to one embodiment, the audio module (970) can obtain sound through the input module (950), or output sound through an audio output module (955), or an external electronic device (e.g., an electronic device (902)) (e.g., a speaker or a headphone) directly or wirelessly connected to the electronic device (901).
- an electronic device e.g., an electronic device (902)
- a speaker or a headphone directly or wirelessly connected to the electronic device (901).
- the sensor module (976) can detect an operating state (e.g., power or temperature) of the electronic device (901) or an external environmental state (e.g., user state) and generate an electrical signal or data value corresponding to the detected state.
- the sensor module (976) 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.
- the interface (977) may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device (901) with an external electronic device (e.g., the electronic device (902)).
- the interface (977) may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
- HDMI high definition multimedia interface
- USB universal serial bus
- SD card interface Secure Digital Card
- connection terminal (978) may include a connector through which the electronic device (901) may be physically connected to an external electronic device (e.g., the electronic device (902)).
- the connection terminal (978) may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).
- the haptic module (979) can convert an electrical signal into a mechanical stimulus (e.g., vibration or movement) or an electrical stimulus that a user can perceive through a tactile or kinesthetic sense.
- the haptic module (979) can include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
- the camera module (980) can capture still images and moving images.
- the camera module (980) can include one or more lenses, image sensors, image signal processors, or flashes.
- the power management module (988) can manage power supplied to the electronic device (901).
- the power management module (988) can be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
- PMIC power management integrated circuit
- the battery (989) can power at least one component of the electronic device (901).
- the battery (989) can include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.
- the communication module (990) may support establishment of a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device (901) and an external electronic device (e.g., the electronic device (902), the electronic device (904), or the server (908)), and performance of communication through the established communication channel.
- the communication module (990) may operate independently from the processor (920) (e.g., the application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication.
- the communication module (990) may include a wireless communication module (992) (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 (994) (e.g., a local area network (LAN) communication module or a power line communication module).
- a wireless communication module 992
- GNSS global navigation satellite system
- a wired communication module e.g., a local area network (LAN) communication module or a power line communication module.
- any of these communication modules may communicate with an external electronic device (904) via a first network (998) (e.g., a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network (999) (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)).
- a first network e.g., a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)
- a second network 999
- 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)
- a single component e.g., a single chip
- the wireless communication module (992) may use subscriber information (e.g., an international mobile subscriber identity (IMSI)) stored in the subscriber identification module (996) to identify or authenticate the electronic device (901) within a communication network such as the first network (998) or the second network (999).
- subscriber information e.g., an international mobile subscriber identity (IMSI)
- IMSI international mobile subscriber identity
- the wireless communication module (992) may 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 (992) may support various requirements specified in the electronic device (901), an external electronic device (e.g., the electronic device (904)), or a network system (e.g., the second network (999)).
- the wireless communication module (992) may 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) each, or 1 ms or less for round trip) for URLLC realization.
- a peak data rate e.g., 20 Gbps or more
- a loss coverage e.g., 164 dB or less
- U-plane latency e.g., 0.5 ms or less for downlink (DL) and uplink (UL) each, or 1 ms or less for round trip
- the antenna module (997) can transmit or receive signals or power to or from the outside (e.g., an external electronic device).
- the antenna module (997) can include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (e.g., a PCB).
- the antenna module (997) can include a plurality of antennas (e.g., an array antenna).
- at least one antenna suitable for a communication method used in a communication network, such as the first network (998) or the second network (999) can be selected from the plurality of antennas by, for example, the communication module (990).
- a signal or power can be transmitted or received between the communication module (990) and the external electronic device through the selected at least one antenna.
- another component e.g., a radio frequency integrated circuit (RFIC)
- RFIC radio frequency integrated circuit
- the antenna module (997) can form a mmWave antenna module.
- the mmWave antenna module can include a printed circuit board, an RFIC positioned 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) positioned on or adjacent a second side (e.g., a top side or a side) of the printed circuit board and capable of transmitting or receiving signals in the designated high frequency band.
- a first side e.g., a bottom side
- a plurality of antennas e.g., an array antenna
- At least some of the above components may be connected to each other and exchange signals (e.g., commands or data) with each other via a communication method between peripheral devices (e.g., a bus, a general purpose input and output (GPIO), a serial peripheral interface (SPI), or a mobile industry processor interface (MIPI)).
- peripheral devices e.g., a bus, a general purpose input and output (GPIO), a serial peripheral interface (SPI), or a mobile industry processor interface (MIPI)).
- GPIO general purpose input and output
- SPI serial peripheral interface
- MIPI mobile industry processor interface
- commands or data may be transmitted or received between the electronic device (901) and an external electronic device (904) via a server (908) connected to a second network (999).
- Each of the external electronic devices (902, or 1504) may be the same or a different type of device as the electronic device (901).
- all or part of the operations executed in the electronic device (901) may be executed in one or more of the external electronic devices (902, 1504, or 1508).
- the electronic device (901) may, instead of or in addition to executing the function or service itself, request one or more external electronic devices to perform at least a part of the function or service.
- One or more external electronic devices that receive the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit the result of the execution to the electronic device (901).
- the electronic device (901) may process the result as it is or additionally and provide it as at least a part of a response to the request.
- cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used, for example.
- the electronic device (901) may provide an ultra-low latency service by using distributed computing or mobile edge computing, for example.
- the external electronic device (904) may include an IoT (Internet of Things) device.
- the server (908) may be an intelligent server using machine learning and/or a neural network.
- the external electronic device (904) or the server (908) may be included in the second network (999).
- the electronic device (901) 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.
- Electronic devices may be devices of various forms.
- the 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 appliance devices.
- portable communication devices e.g., smartphones
- computer devices e.g., portable multimedia devices
- portable medical devices e.g., cameras
- wearable devices e.g., portable medical devices, cameras
- home appliance devices e.g., portable communication devices, portable multimedia devices, portable medical devices, cameras, wearable devices, or home appliance devices.
- Electronic devices according to embodiments of this document are not limited to the above-described devices.
- 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).
- a component e.g., a first
- another component e.g., a second
- functionally e.g., a third component
- 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, for example.
- a module may be an integrally configured component or a minimum unit of the component or a part thereof that performs one or more functions.
- a module may be implemented in the form of an application-specific integrated circuit (ASIC).
- ASIC application-specific integrated circuit
- Various embodiments of the present document may be implemented as software (e.g., a program (940)) including one or more instructions stored in a storage medium (e.g., an internal memory (936) or an external memory (938)) readable by a machine (e.g., an electronic device (901)).
- a processor e.g., a processor (920)
- the machine 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.
- '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.
- the method according to various embodiments disclosed in the present document may be provided as included in a computer program product.
- the computer program product may be traded between a seller and a buyer as a commodity.
- the computer program product may be distributed in the form of a machine-readable storage medium (e.g., a compact disc read only memory (CD-ROM)), or may be distributed online (e.g., downloaded or uploaded) via an application store (e.g., Play StoreTM) or directly between two user devices (e.g., smart phones).
- an application store e.g., Play StoreTM
- at least a part of the computer program product may be at least temporarily stored or temporarily generated in a machine-readable storage medium, such as a memory of a manufacturer's server, a server of an application store, or an intermediary server.
- each component e.g., a module or a program of the above-described components may include a single or multiple entities, and some of the multiple entities may be separately arranged in other components.
- one or more of the components or operations of the above-described components may be omitted, or one or more other components or operations may be added.
- the multiple components e.g., a module or a program
- the integrated component may perform one or more functions of each of the multiple components identically or similarly to those performed by the corresponding component of the multiple components before the integration.
- the operations performed by the module, program, or other component may be executed sequentially, in parallel, repeatedly, 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.
- the electronic device (901) and/or the electronic device (902) of FIG. 9 may be an example of the electronic device (101) of FIG. 1.
- an electronic device e.g., the electronic device 101 of FIG. 1 and/or the electronic devices 901 and 902 of FIG. 9) may include a memory (e.g., the memory 120 of FIG. 1) for storing instructions and a processor (e.g., the processor 110 of FIG. 1) for executing the instructions.
- the processor may be configured to determine schedule groups corresponding to each of the plurality of processes based on states of the plurality of processes while executing the instructions based on the plurality of processes.
- the processor may be configured to adjust a length of a time interval used for execution of the at least one process in response to switching the at least one process from a first schedule group (e.g., the background schedule group (324) of FIG. 3) for background execution to other schedule groups, or switching from the other schedule groups to the first schedule group, based on a determination of the schedule groups.
- the processor may be configured to execute the at least one process within the time interval having the adjusted length.
- the processor of the electronic device may efficiently perform scheduling for a plurality of processes, thereby having an improved response speed.
- the electronic device may perform scheduling for a plurality of processes to prevent a sudden increase in a load of the processor.
- the electronic device may process a user input, such as a touch input, based on the increased response speed.
- the processor may be configured to classify the at least one process switched from the other schedule groups to the first schedule group into the first process group corresponding to profile information for execution in the background.
- the processor may be configured to classify at least one process switched from the first schedule group to the other schedule groups as a root process group.
- the processor may be configured to determine lengths of time intervals used to execute each of the plurality of processes based on weights assigned to each of the plurality of processes.
- the weights assigned to each of the plurality of processes may be selected from a first weight associated with a first process group corresponding to the first schedule group for execution in the background and a second weight associated with a second process group different from the first process group.
- the processor may be configured to adjust the first weight based on at least one of a usage rate of the processor, a temperature identified by a temperature sensor of the electronic device, or a touch input identified based on a touch sensor of the electronic device.
- the processor may be configured to sequentially execute processes corresponding to each of the requests based on a specified delay, based on requests for transmission of information between the plurality of processes.
- the processor may be configured to adjust the specified delay based on at least one of a usage rate of the processor, a temperature identified by a temperature sensor of the electronic device, or a touch event identified based on a touch sensor of the electronic device.
- the processor may be configured to detect requests based on intent objects.
- the processor may be configured to classify the plurality of processes into one of a first process group for background execution and a second process group different from the first process group, based on schedule groups corresponding to each of the plurality of processes.
- a method of an electronic device as described above may include an operation of determining schedule groups corresponding to each of the plurality of processes based on states of the plurality of processes while executing instructions based on the plurality of processes.
- the method may include an operation of adjusting a length of a time interval used for execution of the at least one process in response to switching the at least one process from a first schedule group for background execution to other schedule groups, or from the other schedule groups to the first schedule group, based on the determination of the schedule groups.
- the method may include an operation of executing the at least one process within the time interval having the adjusted length.
- the method may include an operation of classifying the at least one process switched from the other schedule groups to the first schedule group into a first process group corresponding to profile information for execution in the background.
- the method may include an operation of classifying at least one process switched from the first schedule group to the other schedule groups into a root process group.
- the controlling operation may include determining lengths of time intervals used to execute each of the plurality of processes based on weights assigned to each of the plurality of processes.
- the weights assigned to each of the plurality of processes may be selected from a first weight associated with a first process group corresponding to the first schedule group for execution in the background and a second weight associated with a second process group different from the first process group.
- the adjusting operation may include adjusting the first weight based on at least one of a usage amount of a processor of the electronic device, a temperature identified by a temperature sensor of the electronic device, or a touch input identified based on a touch sensor of the electronic device.
- the method may include sequentially executing processes corresponding to each of the requests based on a specified delay, based on requests for transmission of information between the plurality of processes.
- the act of sequentially executing the processes corresponding to each of the above requests may include the act of adjusting the specified delay based on at least one of a usage of a processor of the electronic device, a temperature identified by a temperature sensor of the electronic device, or a touch event identified based on a touch sensor of the electronic device.
- the method may include an action of detecting the requests based on an intent object.
- the method may include an operation of classifying the plurality of processes into one of a first process group for background execution and a second process group different from the first process group, based on schedule groups corresponding to each of the plurality of processes.
- a non-transitory computer-readable storage medium may include instructions.
- the instructions when executed by a processor of an electronic device, may cause the processor to determine, based on states of the plurality of processes, a schedule group corresponding to each of the plurality of processes.
- the instructions when executed by the processor, may cause the processor to, in response to detecting at least one process being switched from a first schedule group to other schedule groups for execution in the background, or being switched from the other schedule groups to the first schedule group, adjust a length of a time interval utilized for execution of the at least one process based on the determination.
- the instructions when executed by the processor, may cause the processor to execute the at least one process within the time interval having the adjusted length.
- the instructions when executed by the processor, may cause the processor to classify the at least one process switched from the other schedule groups to the first schedule group into the first process group corresponding to profile information for execution in the background.
- the instructions when executed by the processor, may cause the processor to classify at least one process switched from the first schedule group to the other schedule groups into a root process group.
- the instructions when executed by the processor, may cause the processor to determine lengths of time intervals to be used for executing each of the plurality of processes based on weights assigned to each of the plurality of processes.
- the weights assigned to each of the plurality of processes may be selected from a first weight associated with a first process group corresponding to a first schedule group for execution in the background and a second weight associated with a second process group different from the first process group.
- the instructions when executed by the processor, may cause the processor to adjust the first weight based on at least one of a usage rate of the processor, a temperature identified by a temperature sensor of the electronic device, or a touch input identified based on a touch sensor of the electronic device.
- the instructions when executed by the processor, may cause the processor to sequentially execute processes corresponding to each of the requests based on a specified delay, based on requests for transmission of information between the plurality of processes.
- the instructions when executed by the processor, may cause the processor to adjust the specified delay based on at least one of a usage level of the processor, a temperature identified by a temperature sensor of the electronic device, or a touch event identified based on a touch sensor of the electronic device.
- the instructions when executed by the processor, may cause the processor to detect requests based on an Intent object.
- the instructions when executed by the processor, may cause the processor to classify the plurality of processes into one of a first process group for background execution and a second process group different from the first process group, based on schedule groups corresponding to each of the plurality of processes.
- an electronic device may include one or more storage media, a memory for storing instructions, and at least one processor including a processing circuit.
- the instructions when individually or collectively executed by the at least one processor, may cause the electronic device to determine, for each of a plurality of processes while executing the instructions, a corresponding schedule group from among a plurality of preset schedule groups based on a state of the process.
- the instructions when individually or collectively executed by the at least one processor, may cause the electronic device to re-determine a length of a time interval used for execution of the at least one process in response to at least one of the plurality of processes switching from a first process group to a second process group or to the at least one process switching from the second process group to the first process group.
- the instructions when individually or collectively executed by the at least one processor, may cause the electronic device to execute the at least one process within the time interval having the re-determined length.
- the first process group may include a schedule group corresponding to processes for background execution.
- the second process group may include all schedule groups other than the schedule group corresponding to the processes for background execution.
- the instructions when individually or collectively executed by the at least one processor, may cause the electronic device to determine lengths of time intervals used to execute each of the plurality of processes based on weights assigned to each of the plurality of processes.
- the lengths of the time intervals used to execute the processes in the first process group may be determined based on a first weight corresponding to the first process group.
- the lengths of the time intervals used to execute the processes in the second process group may be determined based on a second weight corresponding to the second process group.
- the instructions of the second example when individually or collectively executed by the at least one processor, may cause the electronic device to adjust the first weight based on at least one of a usage amount of the processor, a temperature identified by a temperature sensor of the electronic device, or a touch input identified via a touch sensor of the electronic device.
- the first weight of the second example or the third example can be divided among each of the processes in the first process group, and each of the processes in the second process group can be assigned the second weight.
- the processor of any one of examples 1 through 4 may be configured to schedule the at least one process based on first profile information corresponding to the first process group when the at least one process is switched to the first process group.
- the instructions when individually or collectively executed by the at least one processor, may cause the electronic device to schedule the at least one process based on second profile information corresponding to the second process group when the at least one process is switched to the second process group.
- the first profile information and the second profile information of the fifth example may include at least one of a memory bandwidth; a time resource occupancy rate of the processor; an upper limit of a cache memory size; and a network resource limitation.
- the instructions of any one of examples 1 through 6, when individually or collectively executed by the at least one processor, may cause the electronic device to sequentially execute processes corresponding to each of the requests based on a specified delay, based on requests for transmission of information between the plurality of processes.
- the instructions of the seventh example when individually or collectively executed by the at least one processor, may cause the electronic device to adjust the specified delay based on at least one of a usage level of the processor, a temperature identified by a temperature sensor of the electronic device, or a touch event identified via a touch sensor of the electronic device.
- the instructions of any one of examples 1 through 9, when individually or collectively executed by the at least one processor, can cause the electronic device to detect the requests based on the intent object.
- the instructions of any one of examples 1 through 9 when individually or collectively executed by the at least one processor, can cause the electronic device to execute the at least one process without re-determining the length of a time interval used for execution of the at least one process when the at least one process is switched from a schedule group within the second schedule group to another schedule group within the second schedule group.
- a method of an electronic device may be provided.
- the method may include an operation of determining, for each of a plurality of processes to be executed in the electronic device, a corresponding schedule group from among a plurality of preset schedule groups based on a state of the process.
- the method may include an operation of re-determining a length of a time interval used for execution of the at least one process in response to at least one of the plurality of processes switching from a first process group to a second process group or switching from the second process group to the first process group.
- the method may include an operation of executing the at least one process within the time interval having the re-determined length.
- the first process group may include a schedule group corresponding to processes for background execution.
- the second process group may include all schedule groups other than the schedule group corresponding to the processes for background execution.
- the operation of re-determining the length of the time intervals may include an operation of determining the lengths of the time intervals used for executing each of the plurality of processes based on the weights assigned to each of the plurality of processes.
- the lengths of the time intervals used for executing the processes in the first process group may be determined based on the first weight corresponding to the first process group.
- the lengths of the time intervals used for executing the processes in the second process group may be determined based on the second weight corresponding to the second process group.
- the act of re-determining the length of the time interval may include an act of adjusting the first weight based on at least one of a usage amount of a processor of the electronic device, a temperature identified by a temperature sensor of the electronic device, or a touch input identified via a touch sensor of the electronic device.
- the first weight of either the 12th example or the 13th example can be divided among each of the processes in the first process group.
- Each of the processes in the second process group can be assigned the second weight.
- the method of any one of examples 11 to 14 may include an operation of scheduling the at least one process based on first profile information corresponding to the first process group when the at least one process is switched to the first process group.
- the method may include an operation of scheduling the at least one process based on second profile information corresponding to the second process group when the at least one process is switched to the second process group.
- the first profile information and the second profile information of the 15th example may include at least one of a memory bandwidth; a time resource occupancy rate of the processor; an upper limit of a cache memory size; and a network resource limitation.
- the method of any one of the 11th to 16th examples may include sequentially executing processes corresponding to each of the requests based on a specified delay, based on requests for transmission of information between the plurality of processes.
- the method of the seventeenth example may include adjusting the specified delay based on at least one of a usage amount of the processor of the electronic device, a temperature identified by a temperature sensor of the electronic device, or a touch event identified via a touch sensor of the electronic device.
- the method of any one of the 11th to 19th examples may include an action of detecting the requests based on an intent object.
- the method of any one of examples 11 to 19 may include executing the at least one process without re-determining the length of a time interval used for execution of the at least one process when the at least one process is switched from a schedule group within the second schedule group to another schedule group within the second schedule group.
- a non-transitory computer-readable storage medium comprising instructions may be provided.
- the instructions when executed by a processor of an electronic device, may cause the electronic device to perform any one of the methods of examples eleven through twenty-first.
- a non-transitory computer-readable storage medium storing instructions may be provided.
- the instructions when executed by an electronic device, may cause the electronic device to determine, for each of a plurality of processes while executing the instructions, a corresponding schedule group from among a plurality of preset schedule groups based on a state of the process.
- the instructions when executed by the electronic device, may cause the electronic device to re-determine a length of a time interval used for execution of the at least one process in response to at least one of the plurality of processes switching from a first process group to a second process group or switching from the second process group to the first process group.
- the instructions when executed by the electronic device, may cause the electronic device to execute the at least one process within the time interval having the re-determined length.
- the first process group may include a schedule group corresponding to processes for background execution.
- the above second process group may include all schedule groups other than the schedule group corresponding to the processes for background execution.
- the devices described above may be implemented as hardware components, software components, and/or a combination of hardware components and software components.
- 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 access, store, manipulate, process, and generate data in response to the execution of the software.
- OS operating system
- the processing device may access, store, manipulate, process, and generate data in response to the execution of the software.
- processing device is sometimes described as being used alone, but those skilled in the art will appreciate that the processing device may include multiple processing elements and/or multiple types of processing elements.
- a processing device may include multiple processors, or a processor and a controller.
- Other processing configurations, such as parallel processors, are also possible.
- the 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 be distributed over network-connected 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.
- the method according to the embodiment may be implemented in the form of program commands that can be executed through various computer means and recorded on a computer-readable medium.
- the medium may be one that continuously stores a program executable by a computer, or one that temporarily stores it for execution or downloading.
- the medium may be various recording means 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, and may also be distributed on 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 ROMs, RAMs, flash memories, etc., configured to store program commands.
- examples of other media may include recording media or storage media managed by app stores that distribute applications, sites that supply or distribute various software, servers, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
일 실시예(an embodiment)에 따른, 전자 장치의 프로세서는, 복수의 프로세스들에 기반하여 인스트럭션들을 실행하는 동안, 상기 복수의 프로세스들의 상태들에 기반하여, 상기 복수의 프로세스들 각각에 대응하는 스케쥴 그룹들을 결정할 수 있다. 상기 프로세서는, 상기 스케쥴 그룹들의 결정에 의하여, 상기 적어도 하나의 프로세스를, 백그라운드 내 실행을 위한 제1 스케쥴 그룹에서 다른 스케쥴 그룹들로 스위칭하거나, 또는 상기 다른 스케쥴 그룹들로부터 상기 제1 스케쥴 그룹으로 스위칭하는 것에 응답하여, 상기 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 조절할 수 있다. 상기 프로세서는, 상기 조절된 길이를 가지는 상기 시간 구간 내에서 상기 적어도 하나의 프로세스를 실행할 수 있다.
Description
본 개시(disclosure)는, 프로세스의 실행을 제어하기 위한 전자 장치 및 그 방법에 관한 것이다.
복수의 프로세스들 및/또는 복수의 스레드들을 이용하여, 전자 장치의 프로세서(예, CPU(central processing unit))는 복수의 기능들을 실질적으로 동시에 실행하는 멀티태스킹을 지원할 수 있다. 프로세서 및/또는 상기 프로세서에 의해 실행되는 시스템 프로세스(또는 운영 체제)는, 프로세서가 상기 복수의 프로세스들 및/또는 상기 복수의 스레드들 각각에 의해 점유되는(occupied) 시간 구간(또는 타임 슬롯)을 스케쥴링할 수 있다.
상술한 정보는 본 개시에 대한 이해를 돕기 위한 목적으로 하는 배경 기술(related art)로 제공될 수 있다. 상술한 내용 중 어느 것도 본 개시와 관련된 종래 기술(prior art)로서 적용될 수 있는지에 대하여 어떠한 주장이나 결정이 제기되지 않는다.
일 실시예(an embodiment)에 따른, 전자 장치(electronic device)는, 하나 이상의 저장 매체들을 포함하고, 인스트럭션들을 저장하기 위한 메모리, 및 처리 회로를 포함하는 적어도 하나의 프로세서를 포함할 수 있다. 상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가, 상기 인스트럭션들을 실행하는 동안 복수의 프로세스들 각각에 대하여, 상기 프로세스의 상태에 기반하는 복수의 미리 설정된 스케쥴 그룹들 중에서 대응하는 스케쥴 그룹을 결정하도록, 야기할 수 있다. 상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가, 상기 복수의 프로세스들 중 적어도 하나의 프로세스가 제1 프로세스 그룹으로부터 제2 프로세스 그룹으로 스위칭하거나 또는 상기 적어도 하나의 프로세스가 상기 제2 프로세스 그룹으로부터 상기 제1 프로세스 그룹으로 스위칭하는 것에 응답하여, 상기 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 재결정하도록, 야기할 수 있다. 상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가, 상기 재결정된 길이를 가지는 상기 시간 구간 내에서 상기 적어도 하나의 프로세스를 실행하도록, 야기할 수 있다. 상기 제1 프로세스 그룹은, 백그라운드 실행을 위한 프로세스들에 대응하는 스케쥴 그룹을 포함할 수 있다. 상기 제2 프로세스 그룹은, 백그라운드 실행을 위한 상기 프로세스들에 대응하는 상기 스케쥴 그룹을 제외한 다른 스케쥴 그룹들 전부를 포함할 수 있다.
일 실시예에서, 전자 장치의 방법이 제공될 수 있다. 상기 방법은, 상기 전자 장치에서 실행될 복수의 프로세스들 각각에 대하여, 상기 프로세스의 상태에 기반하는 복수의 미리 설정된 스케쥴 그룹들 중에서 대응하는 스케쥴 그룹을 결정하는 동작을 포함할 수 있다. 상기 방법은, 상기 복수의 프로세스들 중 적어도 하나의 프로세스가 제1 프로세스 그룹으로부터 제2 프로세스 그룹으로 스위칭하거나 또는 상기 적어도 하나의 프로세스가 상기 제2 프로세스 그룹으로부터 상기 제1 프로세스 그룹으로 스위칭하는 것에 응답하여, 상기 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 재결정하는 동작을 포함할 수 있다. 상기 방법은, 상기 재결정된 길이를 가지는 상기 시간 구간 내에서 상기 적어도 하나의 프로세스를 실행하는 동작을 포함할 수 있다. 상기 제1 프로세스 그룹은, 백그라운드 실행을 위한 프로세스들에 대응하는 스케쥴 그룹을 포함할 수 있다. 상기 제2 프로세스 그룹은, 백그라운드 실행을 위한 상기 프로세스들에 대응하는 상기 스케쥴 그룹을 제외한 다른 스케쥴 그룹들 전부를 포함할 수 있다.
일 실시예에서, 인스트럭션들을 저장하는 비-일시적 컴퓨터 판독가능 저장 매체가 제공될 수 있다. 상기 인스트럭션들은, 전자 장치에 의해 실행될 시, 상기 전자 장치가, 상기 인스트럭션들을 실행하는 동안 복수의 프로세스들 각각에 대하여, 상기 프로세스의 상태에 기반하는 복수의 미리 설정된 스케쥴 그룹들 중에서 대응하는 스케쥴 그룹을 결정하도록, 야기할 수 있다. 상기 인스트럭션들은, 전자 장치에 의해 실행될 시, 상기 전자 장치가, 상기 복수의 프로세스들 중 적어도 하나의 프로세스가 제1 프로세스 그룹으로부터 제2 프로세스 그룹으로 스위칭하거나 또는 상기 적어도 하나의 프로세스가 상기 제2 프로세스 그룹으로부터 상기 제1 프로세스 그룹으로 스위칭하는 것에 응답하여, 상기 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 재결정하도록, 야기할 수 있다. 상기 인스트럭션들은, 전자 장치에 의해 실행될 시, 상기 전자 장치가, 상기 재결정된 길이를 가지는 상기 시간 구간 내에서 상기 적어도 하나의 프로세스를 실행하도록, 야기할 수 있다. 상기 제1 프로세스 그룹은, 백그라운드 실행을 위한 프로세스들에 대응하는 스케쥴 그룹을 포함할 수 있다. 상기 제2 프로세스 그룹은, 백그라운드 실행을 위한 상기 프로세스들에 대응하는 상기 스케쥴 그룹을 제외한 다른 스케쥴 그룹들 전부를 포함할 수 있다.
일 실시예에 따른, 전자 장치는, 인스트럭션들을 저장하기 위한 메모리 및 상기 인스트럭션들을 실행하기 위한 프로세서를 포함할 수 있다. 상기 프로세서는, 복수의 프로세스들에 기반하여 인스트럭션들을 실행하는 동안, 상기 복수의 프로세스들의 상태들에 기반하여, 상기 복수의 프로세스들 각각에 대응하는 스케쥴 그룹들을 결정하도록, 구성될 수 있다. 상기 프로세서는, 상기 스케쥴 그룹들의 결정에 의하여, 상기 적어도 하나의 프로세스를, 백그라운드 내 실행을 위한 제1 스케쥴 그룹에서 다른 스케쥴 그룹으로 스위칭하거나, 또는 상기 다른 스케쥴 그룹들로부터 상기 제1 스케쥴 그룹으로 스위칭하는 것에 응답하여, 상기 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 조절하도록, 구성될 수 있다. 상기 프로세서는, 상기 조절된 길이를 가지는 상기 시간 구간 내에서 상기 적어도 하나의 프로세스를 실행하도록, 구성될 수 있다.
일 실시예에 따른, 전자 장치의 방법은, 복수의 프로세스들에 기반하여 인스트럭션들을 실행하는 동안, 상기 복수의 프로세스들의 상태들에 기반하여, 상기 복수의 프로세스들 각각에 대응하는 스케쥴 그룹들을 결정하는 동작을 포함할 수 있다. 상기 방법은, 상기 스케쥴 그룹들의 결정에 의하여, 상기 적어도 하나의 프로세스를, 백그라운드 내 실행을 위한 제1 스케쥴 그룹에서 다른 스케쥴 그룹들로 스위칭하거나, 또는 상기 다른 스케쥴 그룹들로부터 상기 제1 스케쥴 그룹으로 스위칭하는 것에 응답하여, 상기 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 조절하는 동작을 포함할 수 있다. 상기 방법은, 상기 조절된 길이를 가지는 상기 시간 구간 내에서 상기 적어도 하나의 프로세스를 실행하는 동작을 포함할 수 있다.
일 실시예에 따른, 비-일시적 컴퓨터 판독 가능 저장 매체는, 인스트럭션들을 포함할 수 있다. 상기 인스트럭션들은, 전자 장치의 프로세서에 의해 실행될 시에, 복수의 프로세스들의 상태에 기반하여, 상기 복수의 프로세스들 각각에 대응하는 스케쥴 그룹을 결정하도록, 상기 프로세서를 야기할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행될 시에, 상기 스케쥴 그룹의 결정에 의하여, 상기 적어도 하나의 프로세스를, 백그라운드 내 실행을 위한 제1 스케쥴 그룹에서 다른 스케쥴 그룹들로 스위칭하거나, 또는 상기 다른 스케쥴 그룹들로부터 상기 제1 스케쥴 그룹으로 스위칭하는 것에 응답하여, 상기 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 조절하도록, 상기 프로세서를 야기할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행될 시에, 상기 조절된 길이를 가지는 상기 시간 구간 내에서 상기 적어도 하나의 프로세스를 실행하도록, 상기 프로세서를 야기할 수 있다.
도 1은, 일 실시예에 따른, 전자 장치의 하드웨어 구성을 설명하기 위한 예시적인 블록도를 도시한다.
도 2는, 일 실시예에 따른, 전자 장치의 흐름도의 일 예를 도시한다.
도 3은, 프로세스에 대응하는 스케쥴 그룹을 결정하는 전자 장치의 예시적인 동작을 도시한다.
도 4는, 일 실시예에 따른, 전자 장치의 흐름도의 일 예를 도시한다.
도 5는, 프로세스들에 대응하는 프로세스 그룹을 이용하여 프로세서의 시간 자원을 스케쥴링하는 전자 장치의 예시적인 동작을 도시한다.
도 6은, 일 실시예에 따른, 전자 장치의 흐름도의 일 예를 도시한다.
도 7은, 프로세스들 사이에서 정보를 송신하는 전자 장치의 예시적인 동작을 도시한다.
도 8은, 일 실시예에 따른, 전자 장치가 부팅하는 동안, 시간 영역에서 전자 장치의 프로세서의 사용량(usage)을 도시한 그래프들이다.
도 9는, 다양한 실시예들에 따른, 네트워크 환경 내의 전자 장치의 블록도이다.
이하, 본 문서의 다양한 실시예들이 첨부된 도면을 참조하여 설명된다.
본 문서의 다양한 실시 예들 및 이에 사용된 용어들은 본 문서에 기재된 기술을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 해당 실시 예의 다양한 변경, 균등물, 및/또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및/또는 B 중 적어도 하나", "A, B 또는 C" 또는 "A, B 및/또는 C 중 적어도 하나" 등의 표현은 함께 나열된 항목들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", "첫째" 또는 "둘째" 등의 표현들은 해당 구성요소들을, 순서 또는 중요도에 상관없이 수식할 수 있고, 한 구성요소를 다른 구성요소와 구분하기 위해 사용될 뿐 해당 구성요소들을 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에 "(기능적으로 또는 통신적으로) 연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로 연결되거나, 다른 구성요소(예: 제 3 구성요소)를 통하여 연결될 수 있다.
본 문서에서 사용된 용어 "모듈"은 하드웨어로 구성된 유닛을 포함하며, 예를 들면, 부품, 및/또는 회로 등의 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 모듈은 ASIC(application-specific integrated circuit)으로 구성될 수 있다.
도 1은, 일 실시예에 따른, 전자 장치(101)의 하드웨어 구성을 설명하기 위한 예시적인 블록도를 도시한다. 사용자에 의해 소유되는 관점에서(in terms of), 전자 장치(101)는 단말(또는 사용자 단말)로 지칭될(referred as) 수 있다. 단말은, 스마트워치(smartwatch)(101-1), 스마트 링(101-2) 및/또는 HMD(head-mounted device)와 같은 스마트액세서리를 포함할 수 있다. 단말은, 예를 들어, 랩톱 및 데스크톱과 같은 개인용 컴퓨터(personal computer, PC)를 포함할 수 있다. 단말은, 예를 들어, 스마트폰(smartphone)(101-3), 스마트패드(smartpad), 및/또는 태블릿 PC를 포함할 수 있다. 도 1을 참고하면, 전자 장치(101)의 예시적인 폼 팩터로, 스마트워치(101-1), 스마트링(101-2) 및/또는 스마트폰(101-3)이 도시된다. 실시예가 이에 제한되는 것은 아니다.
일 실시예에 따른, 전자 장치(101)는, 켜진 동안, 하나 이상의 작업들(tasks)을 수행할 수 있다. 하나 이상의 작업들을 수행하기 위하여, 전자 장치(101)는, 전자 장치(101)에 포함된 하나 이상의 회로들을 활성화하기 위한 동작(예, 부팅)을 수행할 수 있다. 부팅 이후, 전자 장치(101)는, 상기 하나 이상의 회로들을 이용하여, 상기 하나 이상의 작업들을 수행할 수 있다. 도 1을 참고하면, 전자 장치(101)에 포함된 하나 이상의 회로들이 블록들로 도시된다.
도 1을 참고하면, 전자 장치(101)는, 프로세서(110), 메모리(120), 디스플레이(130), 센서(140) 또는 통신 회로(150) 중 적어도 하나를 포함할 수 있다. 프로세서(110), 메모리(120), 디스플레이(130), 센서(140) 및 통신 회로(150)는 통신 버스(a communication bus)(102)와 같은 전자 부품(electronical component)에 의해 서로 전기적으로 및/또는 작동적으로 연결될 수 있다(electrically and/or operably coupled with each other). 이하에서, 전자 부품들(또는 하드웨어 컴포넌트들)이 작동적으로 결합된 것은, 제1 전자 부품에 의해 제2 전자 부품이 제어되도록, 전자 부품들 사이의 직접적인 연결, 또는 간접적인 연결이 유선으로, 또는 무선으로 수립된 것을 의미할 수 있다. 상이한 블록들에 기반하여 도시되었으나, 실시예가 이에 제한되는 것은 아니며, 도 1의 하드웨어들 중 일부분(예, 프로세서(110), 메모리(120), 센서(140) 및 통신 회로(150)의 적어도 일부분)이 SoC(system on a chip)와 같이 단일 집적 회로(single integrated circuit)에 포함될 수 있다. 전자 장치(101)에 포함된 하드웨어 컴포넌트의 타입 및/또는 개수는 도 1에 도시된 바에 제한되지 않는다. 예를 들어, 전자 장치(101)는 도 1에 도시된 하드웨어 컴포넌트들 중 일부만 포함할 수 있다.
일 실시예에 따른, 전자 장치(101)의 프로세서(110)는 하나 이상의 인스트럭션들에 기반하여 데이터를 처리하기 위한 하드웨어 컴포넌트를 포함할 수 있다. 데이터를 처리하기 위한 하드웨어 컴포넌트는, 예를 들어, ALU(arithmetic and logic unit), FPU(floating point unit), FPGA(field programmable gate array), CPU(central processing unit), 및/또는 AP(application processor)를 포함할 수 있다. 프로세서(110)의 개수는 하나 이상일 수 있다. 예를 들어, 프로세서(110)는 듀얼 코어(dual core), 쿼드 코어(quad core), 헥사 코어(hexa core) 또는 옥타 코어(octa core)와 같은 멀티-코어 프로세서의 구조를 가질 수 있다. 멀티-코어 구조에 기반하는 프로세서(110)는, 빅-리틀 구조에 기반하여, 상이한 성능, 소비 전류들, 및/또는 주파수 범위들을 가지는 코어 회로들을 포함할 수 있다.
일 실시예에 따른, 프로세서(110)는, 프로세스(process)(또는 스레드)에 기반하여, 전자 장치(101)에 의해 수행될 하나 이상의 작업들을 관리할 수 있거나, 또는 스케쥴링할 수 있다. 프로세스는, 프로세서(110)에 의해 수행되는 작업 및/또는 계산의 단위일 수 있다. 프로세서(110)는, 전자 장치(101)에 설치된 프로그램(또는 소프트웨어 어플리케이션)에 의해 구분되는 프로세스를 생성할 수 있거나, 종료할 수 있거나, 또는 관리할 수 있다. 복수의 프로세스들(또는 스레드들)이 생성된 경우, 프로세서(110)는, 인스트럭션들(예, 상이한 소프트웨어 어플리케이션들에 포함된 인스트럭션들)이 실행되는 순서 및/또는 시간 구간을, 상기 복수의 프로세스들에 기반하여 스케쥴링할 수 있다. 프로세스들에 기반하는 프로세서(110)의 스케쥴링 동작의 일 예가, 도 2를 참고하여 설명된다.
일 실시예에 따른, 전자 장치(101)의 메모리(120)는 프로세서(110)로 입력되거나, 및/또는 프로세서(110)로부터 출력되는 데이터 및/또는 인스트럭션을 저장하기 위한 하드웨어 컴포넌트를 포함할 수 있다. 메모리(120)는, 예를 들어, RAM(random-access memory)와 같은 휘발성 메모리(volatile memory) 및/또는 ROM(read-only memory)와 같은 비휘발성 메모리(non-volatile memory)를 포함할 수 있다. 휘발성 메모리는, 예를 들어, DRAM(dynamic RAM), SRAM(static RAM), Cache RAM, PSRAM (pseudo SRAM) 중 적어도 하나를 포함할 수 있다. 비휘발성 메모리는, 예를 들어, PROM(programmable ROM), EPROM (erasable PROM), EEPROM (electrically erasable PROM), 플래시 메모리, 하드디스크, 컴팩트 디스크, SSD(solid state drive), eMMC(embedded multi media card) 중 적어도 하나를 포함할 수 있다.
일 실시예에 따른, 전자 장치(101)의 디스플레이(130)는 사용자에게 시각화된 정보를 출력할 수 있다. 예를 들어, 디스플레이(130)는, GPU(graphic processing unit)와 같은 컨트롤러에 의해 제어되어, 사용자에게 시각화된 정보(visualized information)를 출력할 수 있다. 디스플레이(130)는 LCD(liquid crystal display), PDP(plasma display panel) 및/또는 하나 이상의 LED(light emitting diode)를 포함할 수 있다. 상기 LED는 OLED(organic LED)를 포함할 수 있다. 디스플레이(130)는 FPD(flat panel display), 플렉서블 디스플레이 및/또는 전자 종이(electronic paper)를 포함할 수 있다. 실시예가 이에 제한되지 않으며, 디스플레이(130)는 적어도 부분적으로 휘어진 형태를 가지거나, 변형가능한(deformable) 형태를 가질 수 있다.
일 실시예에 따른, 전자 장치(101)의 센서(140)는 전자 장치(101)와 관련된 비-전기적 정보(non-electronic information)로부터 프로세서(110) 및/또는 메모리(120)에 의해 처리될 수 있는 전기적 정보를 생성할 수 있다. 예를 들어, 센서(140)는, 전자 장치(101)의 하우징의 일 면(예, 디스플레이(130))가 배치된 전자 장치(101)의 전 면(front surface)) 상의 외부 객체(예, 사용자의 손가락)을 탐지하기 위한 터치 센서(142)를 포함할 수 있다. 상기 터치 센서(142)는, TSP(touch sensor panel)로 지칭될 수 있다. 터치 센서(142)를 이용하여, 프로세서(110)는 디스플레이(130)와 접촉하거나, 또는 디스플레이(130) 상을 부유하는(floating) 외부 객체를 탐지할 수 있다. 상기 외부 객체를 탐지하는 것에 응답하여, 프로세서(110)는 디스플레이(130) 상에 표시되고 있는 시각적 객체들 중에서 디스플레이(130) 상에서의 상기 외부 객체의 위치에 대응하는 특정 시각적 객체와 관련된 기능을 실행할 수 있다.
도 1을 참고하면, 센서(140)의 일 예로, 터치 센서(142)가 예시되었지만, 실시예가 이에 제한되는 것은 아니며, 센서(140)는, GPS(global positioning system) 센서를 포함할 수 있다. 상기 GPS 센서 외에도, 센서(140)는, 갈릴레오(galileo), 및/또는 베이더우(beidou, compass)와 같은 GNSS(global navigation satellite system)에 기반하여 전자 장치(101)의 지리적 위치를 나타내는 정보를 생성할 수 있다. 센서(140)는, 빛을 포함하는 전자기파를 탐지하기 위한 이미지 센서, 조도 센서, 그립 센서, 홀(hall) 센서, 근접 센서, PPG(photoplethysmogram) 센서, 지문 센서, 오디오 센서(예, 마이크), 및/또는 ToF(time-of-flight) 센서를 포함할 수 있다.
일 실시예에 따른, 전자 장치(101)의 통신 회로(150)는 전자 장치(101) 및 외부 전자 장치 사이의 전기 신호의 송신 및/또는 수신을 지원하기 위한 하드웨어를 포함할 수 있다. 통신 회로(150)는, 예를 들어, 모뎀(MODEM), 안테나, O/E(optic/electronic) 변환기 중 적어도 하나를 포함할 수 있다. 통신 회로(150)는, 이더넷(ethernet), LAN(local area network), WAN(wide area network), WiFi(wireless fidelity), NFC(near field communication), Bluetooth, BLE(bluetooth low energy), ZigBee, LTE(long term evolution), 5G(fifth-generation) NR(new radio), 6G(sixth-generation) 및/또는 above-6G와 같은 다양한 타입의 프로토콜에 기반하여 전기 신호의 송신 및/또는 수신을 지원할 수 있다.
비록 도시되지 않았지만, 일 실시예에 따른 전자 장치(101)는 정보를 시각화한 형태 외에 다른 형태로 출력하기 위한 출력 수단을 포함할 수 있다. 예를 들어, 전자 장치(101)는 음성 신호(acoustic signal)를 출력하기 위한 스피커를 포함할 수 있다. 예를 들어, 전자 장치(101)는 진동에 기반하는 햅틱 피드백을 제공하기 위한 모터를 포함할 수 있다.
일 실시예에 따른, 메모리(120) 내에서, 프로세서(110)가 데이터에 수행할 연산, 및/또는 동작을 나타내는 하나 이상의 인스트럭션들(또는 명령어들)이 저장될 수 있다. 하나 이상의 인스트럭션들의 집합은, 펌웨어, 운영 체제, 프로세스, 루틴, 서브-루틴 및/또는 소프트웨어 어플리케이션(이하, 어플리케이션)으로 참조될 수 있다. 예를 들어, 전자 장치(101), 및/또는 프로세서(110)는, 운영체제, 펌웨어, 드라이버, 및/또는 어플리케이션 형태로 배포된 복수의 인스트럭션의 집합(set of a plurality of instructions)이 실행될 시에, 도 2, 도 4, 및/또는 도 6의 동작들 중 적어도 하나를 수행할 수 있다. 이하에서, 어플리케이션이 전자 장치(101)에 설치되었다는 것은, 어플리케이션의 형태로 제공된 하나 이상의 인스트럭션들이 전자 장치(101)의 메모리(120) 내에 저장된 것으로써, 상기 하나 이상의 어플리케이션들이 전자 장치(101)의 프로세서(110)에 의해 실행 가능한(executable) 포맷(예, 전자 장치(101)의 운영 체제에 의해 지정된 확장자를 가지는 파일)으로 저장된 것을 의미할 수 있다.
도 1을 참고하면, 메모리(120) 내에 저장된 프로그램들이, 프로그램들 각각에 의해 지원되는 기능들 및/또는 상기 프로그램들 사이에서 교환되는(exchanged) 정보에 따라 구분되어 도시된다. 도 1을 참고하면, 전자 장치(101)에 설치된 프로그램들은, 타겟에 기반하여, 어플리케이션 계층(layer)(160), 플랫폼 계층(170), 네이티브(native) 계층(180) 및/또는 커널(kernel) 계층(190)을 포함하는 상이한 레이어들 중 어느 한 레이어로 분류될 수 있다. 실시예가 이에 제한되는 것은 아니며, 상기 레이어들은, 하드웨어 추상화 레이어(hardware abstraction layer, HAL)와 같은 다른 레이어를 더 포함할 수 있다.
도 1을 참고하면, 스케쥴러(192)와 같이, 프로세서(110)로 입력되는 인스트럭션들 및/또는 프로세서(110)에 의해 실행되는 프로세스(또는 스레드)의 순서를 조절하기 위한 프로그램이, 커널 계층(190)으로 분류될 수 있다. 프로세스 그룹 라이브러리(182)(예, libprocessgroup)와 같이, 상기 프로세스의 순서를 조절하는데 이용되는 정보를 관리하기 위한 프로그램이, 네이티브 계층(180)으로 분류될 수 있다. 네이티브 계층(180)에 포함되는 프로그램은, 자바 바이트 코드(java byte code)와 같이, 가상 머신에 기반하여 실행 가능한 타입의 인스트럭션들과 상이한 인스트럭션들(예, 프로세서(110)에 의해 직접적으로 판독 가능한 인스트럭션들)로 구성될 수 있다. 실시예가 이에 제한되는 것은 아니다. 플랫폼 계층(170)은, 어플리케이션 계층(160)으로 분류되는 소프트웨어 어플리케이션(또는 응용 프로그램)에 기반하여 실행가능한(또는 호출(invoke 또는 call) 가능한) API(application programming interface)를 제공할 수 있다. 액티비티매니저 서비스(172)와 같이, 어플리케이션 계층(160)으로 분류된 프로그램에 의해 제공된 화면(예, 윈도우 및/또는 액티비티(activity))을 관리하기 위한 프로그램이, 플랫폼 계층(170)으로 분류될 수 있다.
도 1을 참고하면, 플랫폼 계층(170), 네이티브 계층(180) 및/또는 커널 계층(190)으로 구분된 프로그램들이 도시되지만, 실시예가 이에 제한되는 것은 아니다. 플랫폼 계층(170), 네이티브 계층(180) 및/또는 커널 계층(190)으로 구분된 프로그램들 중 적어도 두 프로그램들의 기능들 및/또는 동작들이 하나의 프로그램으로 통합될 수 있다. 전자 장치(101) 및/또는 프로세서(110)의 동작이 플랫폼 계층(170), 네이티브 계층(180) 및/또는 커널 계층(190)으로 구분된 프로그램들에 의해 구분되어 설명되지만, 실시예가 이에 제한되는 것은 아니다. 예를 들어, 도 2 내지 도 8을 참고하여 설명되는 전자 장치(101) 및/또는 프로세서(110)의 동작은, 단일 프로그램 및/또는 단일 프로세스에 의해 수행될 수 있다.
일 실시예에 따르면, 어플리케이션 계층(160) 내에, 전자 장치(101)의 사용자를 타겟으로 설계된 프로그램이 분류될 수 있다. 어플리케이션 계층(160)으로 분류되는 프로그램들의 일 예로, 사진 및/또는 비디오의 열람(browsing)을 위한 갤러리 어플리케이션(162), 음성 통화 및/또는 화상 통화를 위한 통화 어플리케이션(164) 및/또는 게임 어플리케이션(166)이 예시되지만, 실시예가 이에 제한되는 것은 아니다. 예를 들어, 어플리케이션 계층(160)으로 분류되는 프로그램들(예, 소프트웨어 어플리케이션)은, API(application programming interface)를 호출하여, 플랫폼 계층(170)으로 분류되는 프로그램들에 의해 지원되는 기능의 실행을 야기할 수 있다.
일 실시예에 따른, 전자 장치(101)의 프로세서(110)는, 도 1의 블록들로 구분되어 도시된 프로그램들의 실행을, 프로세스에 기반하여 제어할 수 있다. 복수의 프로세스들에 기반하여 인스트럭션들을 실행하는 동안, 프로세서(110)는 상기 복수의 프로세스들의 상태들을 탐지할 수 있거나, 또는 확인할 수 있다. 프로세서(110)는 프로세스들의 상태들에 기반하여, 프로세스들을, 지정된(preset 또는 predetermined 또는 specified) 스케쥴 그룹들로 분류할 수 있다. 상기 스케쥴 그룹들은, 제한하지 않는 예로, 탑-어플리케이션 스케쥴 그룹, 포어그라운드(foreground) 스케쥴 그룹, 백그라운드 스케쥴 그룹 및/또는 루트(root) 스케쥴 그룹을 포함할 수 있다. 스케쥴 그룹은 sched group으로 지칭될(referred) 수 있다. 전자 장치(101)의 프로세서(110)가 스케쥴 그룹들 중 어느 하나로 프로세스를 분류하는 동작이 도 3을 참고하여 설명된다.
일 실시예에 따른, 전자 장치(101)의 프로세서(110)는, 프로세스들을 스케쥴 그룹으로 분류한 결과에 기반하여, 상기 프로세스들 각각의 실행에 이용될 자원을 스케쥴링할 수 있다. 상기 자원은, 프로세스의 실행을 위해 소비되거나 또는 점유되는 프로세서(110) 및/또는 전자 장치(101)의 가용성(availability)을 나타낼 수 있다. 프로세서(110)에 의해 스케쥴링 되는 자원은, 프로세스의 인스트럭션들을 실행하기 위하여 이용되는 프로세서(110)의 시간 구간의 길이를 포함할 수 있다. 실시예가 이에 제한되는 것은 아니며, 프로세서(110)에 의해 스케쥴링되는 자원은, 메모리(120) 내에서 프로세스를 위해 할당된 부분의 사이즈 및/또는 네트워크를 이용하기 위하여 프로세스에 할당된 포트 넘버를 포함할 수 있다.
일 실시예에 따른, 전자 장치(101)의 프로세서(110)는 스케쥴링의 빈도를 줄여, 프로세스들의 실행이 스케쥴링을 위해 지연되는 것을 방지할 수 있거나, 또는 줄일 수 있다. 프로세서(110)가 스케쥴링에 기반하여, 프로세스의 인스트럭션들을 실행하기 위한 시간 구간의 길이를 결정하는 동작이, 도 4 및/또는 도 5를 참고하여 설명된다.
일 실시예에 따른, 전자 장치(101)의 프로세서(110)는, 프로세스들 사이의 정보의 송신 및/또는 수신을 위한 기능을 지원할 수 있다. 상기 기능은, 플랫폼 계층(170)에 의해 제공되는 API 및/또는 지정된 데이터 구조(예, 인텐트(intent) 객체)에 기반하여, 실행될 수 있다. 예를 들어, 프로세서(110)는 특정 프로세스의 인스트럭션들에 기반하는 상기 API의 호출에 응답하여, 다른 프로세스의 인스트럭션들을 실행할 수 있다. 일 실시예에서, 프로세서(110)는, 프로세스들의 실행에 의해 변경되는 프로세서(110)의 사용량(usage)에 기반하여, 프로세스들 사이의 정보의 송신을 위한 상기 기능을 실행하는 타이밍을 조절할 수 있다(예, 딜레이). 프로세서(110)가 상기 기능을 실행하는 타이밍을 조절하는 동작이, 도 6 및/또는 도 7을 참고하여 설명된다.
상술한 바와 같이, 일 실시예에 따른, 전자 장치(101)의 프로세서(110)는, 프로세서(110)의 부하를 줄이기 위한 동작을 수행할 수 있다. 예를 들어, 저전력 장치 및/또는 저성능 장치의 응답 속도(예, 사용자 입력에 대한 전자 장치(101)의 반응 속도)를 개선하기 위하여, 전자 장치(101)는, 프로세스들을 스케쥴링하는 빈도를 줄이거나, 또는 프로세스들을 스케쥴링하는 동작을 간소화할 수 있다. 예를 들어, 저성능 장치의 경우, 스케쥴링에 소비되는 시간 및/또는 부하가 응답 속도를 느리게 만들 수 있기 때문에, 전자 장치(101)의 프로세서(110)는 프로세스들을 스케쥴링하는 빈도를 줄일 수 있다. 상기 응답 속도를 개선하기 위하여 전자 장치(101)는 프로세스들 사이에서 정보를 송신하는 기능을 실행하는 타이밍을 변경할 수 있다.
도 2는, 일 실시예에 따른, 전자 장치의 흐름도의 일 예를 도시한다. 도 1의 전자 장치(101) 및/또는 프로세서(110)는 도 2를 참고하여 설명되는 전자 장치의 동작을 수행할 수 있다.
도 2를 참고하면, 동작(210) 내에서, 일 실시예에 따른, 전자 장치의 프로세서는, 프로세스의 상태의 변경을 탐지할 수 있다. 동작(210)의 상태는, 프로세서에 의해 실행되는 프로세스의 실행 상태를 포함할 수 있다. 일 실시예에 따라, 동작(210)의 상태는, 프로세스에 의해 제공된 화면이 전자 장치의 디스플레이(예, 도 2의 디스플레이(130)) 상에 표시되는지 여부, 프로세스에 의해 제공된 오디오 신호가 전자 장치의 스피커를 통해 출력되는지 여부, 화면 전환을 위한 애니메이션이 프로세스에 의해 재생되는지 여부, 또는 다운로드, 업로드 및/또는 업데이트와 같은 동작이 프로세스에 의해 수행되는지 여부 중 적어도 하나에 의해 구분될 수 있다.
일 실시예에 따라, 전자 장치의 프로세서는, 프로세스에 포함된 인스트럭션들에 기반하여, 상기 프로세스의 상태의 변경을 탐지할 수 있다. 예를 들어, 전자 장치의 출력 수단(예, 도 2의 디스플레이(130 및/또는 스피커))을 점유하지 않는 백그라운드 상태로 스위칭하기 위한 인스트럭션들을 실행하는 것에 기반하여, 프로세서는, 상기 인스트럭션들에 대응하는 프로세스를, 상기 백그라운드 상태로 스위칭할 수 있다. 실시예가 이에 제한되는 것은 아니며, 프로세서는, 프로세스의 상태를 추적하거나 또는 모니터링하여, 프로세스의 상태의 변경을 탐지할 수 있다.
도 2를 참고하면, 동작(220) 내에서, 일 실시예에 따른, 전자 장치의 프로세서는, 변경된 상태에 기반하여, 프로세스에 대응하는 스케쥴 그룹을, 복수의 지정된 스케쥴 그룹들 중에서 결정할 수 있다. 복수의 프로세스들을 실행하는 동안, 프로세서는 상기 복수의 프로세스들의 상태들에 기반하여, 상기 복수의 프로세스들 각각에 대응하는 스케쥴 그룹을 결정할 수 있다. 즉, 프로세서는, 복수의 프로세스들 각각에 대하여, 프로세스의 상태(예, 변경된 상태)에 기반하여, 복수의 미리 설정된 스케쥴 그룹들 중에서 대응하는 스케쥴 그룹을 결정할 수 있다.
일 실시예에 따르면, 동작(220)의 지정된 스케쥴 그룹들은, 전자 장치의 디스플레이(예, 도 2의 디스플레이(130)) 상에 표시되는 화면을 제공하는 프로세스에 대응하는 탑-어플리케이션 스케쥴 그룹을 포함할 수 있다. 동작(220)의 지정된 스케쥴 그룹들은 탑-어플리케이션 스케쥴 그룹에 포함되지 않은 프로세스에 대응하고, 전자 장치에 의해 출력되는 오디오 신호를 제공하거나, 디스플레이 상에 표시되는 애니메이션(또는 시각 효과)을 제공하는 프로세스에 대응하는 포어그라운드(foreground) 스케쥴 그룹을 포함할 수 있다. 동작(220)의 지정된 스케쥴 그룹들은, 상기 탑-어플리케이션 스케쥴 그룹 및/또는 포어그라운드 스케쥴 그룹에 포함되지 않은 프로세스에 대응하는, 백그라운드 스케쥴 그룹 및/또는 루트(root) 스케쥴 그룹을 포함할 수 있다. 예를 들어, 프로세서는, 백그라운드 상태로 스위칭된 프로세스를, 백그라운드 스케쥴 그룹으로 분류할 수 있다.
도 2를 참고하면, 동작(230) 내에서, 일 실시예에 따른, 전자 장치의 프로세서는, 프로세스가 백그라운드 실행과 관련된 제1 지정된 스케쥴 그룹에 포함되는지 여부를 확인할 수 있다. 동작(230)의 제1 지정된 스케쥴 그룹은, 백그라운드 스케쥴 그룹을 포함할 수 있다. 상태의 변경에 기반하여 제1 지정된 스케쥴 그룹으로 분류된 프로세스를 식별한 경우(230-예), 프로세서는 동작(240)을 수행할 수 있다. 예를 들어, 프로세서에 대응하는 스케쥴 그룹이, 백그라운드 스케쥴 그룹과 상이한 다른 스케쥴 그룹들로부터 상기 백그라운드 스케쥴 그룹으로 변경된 경우, 프로세서는 동작(240)을 수행할 수 있다 상태의 변경에 기반하여 제1 지정된 스케쥴 그룹으로 분류되지 않은 프로세스를 식별한 경우(230-아니오), 프로세서는 동작(250)을 수행할 수 있다. 예를 들어, 프로세서에 대응하는 스케쥴 그룹이 백그라운드 스케쥴 그룹으로부터 상기 다른 스케쥴 그룹으로 변경된 경우, 프로세서는 동작(250)을 수행할 수 있다.
도 2를 참고하면, 동작(240) 내에서, 일 실시예에 따른, 전자 장치의 프로세서는, 프로세스에 대응하는 프로세스 그룹을, 백그라운드 실행과 관련된 백그라운드 프로세스 그룹으로 변경할 수 있다. 프로세스 그룹은 프로세스 제어 그룹 및/또는 cgroup으로 지칭될 수 있다. 프로세스 그룹은 프로세서 및/또는 전자 장치의 자원을 할당하기 위하여, 프로세스를 분류하기 위한 그룹일 수 있다. 예를 들어, 백그라운드 스케쥴 그룹과 상이한 다른 스케쥴 그룹들로부터 상기 백그라운드 스케쥴 그룹으로 스위칭된 프로세스에 대하여, 프로세서는 상기 프로세스를, 백그라운드 내 실행을 위한 프로파일 정보에 대응하는 백그라운드 프로세스 그룹으로 분류할 수 있다. 일 실시예에서, 자원의 분배 및/또는 할당을 위한 프로세스 그룹은, 두 개의 프로세스 그룹들(예, 백그라운드 프로세스 그룹 및 상기 백그라운드 프로세스 그룹과 상이한 프로세스를 분류하기 위한 루트(root) 프로세스 그룹) 만으로 구분될 수 있다. 예를 들어, 제1 프로세스 그룹은 백그라운드 실행을 위한 프로세스들에 대응하는 스케쥴 그룹을 포함할 수 있고, 제2 프로세스 그룹은 백그라운드 실행을 위한 프로세스들에 대응하는 스케쥴 그룹을 제외한 다른 스케쥴 그룹들 전부를 포함할 수 있다.
도 2를 참고하면, 동작(250) 내에서, 일 실시예에 따른, 전자 장치의 프로세서는, 프로세스에 대응하는 프로세스 그룹을, 루트 프로세스 그룹으로 변경할 수 있다. 프로세서가 두 개의 프로세스 그룹들을 이용하여 프로세스를 분류하는 일 실시예에서, 동작(240)의 백그라운드 프로세스 그룹으로 분류된 하나 이상의 프로세스들과 다른 나머지 프로세스들이, 동작(250)의 루트 프로세스 그룹으로 분류될 수 있다. 도 2의 동작들(230, 240, 250)을 참고하면, 백그라운드 내에서 실행되는 프로세스가 백그라운드 프로세스 그룹으로 분류될 수 있고, 상기 백그라운드 프로세스 그룹으로 분류되지 않은 다른 프로세스들이, 루트 프로세스 그룹으로 분류될 수 있다. 예를 들어, 프로세서는, 복수의 프로세스들을, 백그라운드 프로세스 그룹 또는 루트 프로세스 그룹 중 어느 한 프로세스 그룹으로 분류할 수 있다.
도 2를 참고하면, 동작(260) 내에서, 일 실시예에 따른, 전자 장치의 프로세서는, 백그라운드 프로세스 그룹 및/또는 루트 프로세스 그룹의 프로파일 정보에 기반하여, 프로세스의 실행과 관련된 프로세서의 스케쥴링을 수행할 수 있다. 도 2를 참고하면, 프로세서는 동작들(230, 240, 250)에 기반하여, 백그라운드 프로세스 그룹 또는 루트 프로세스 그룹으로 분류된 프로세스들의 스케쥴링을, 대응하는 프로세스 그룹의 프로파일 정보에 기반하여 수행할 수 있다.
일 실시예에 따르면, 동작(260)의 프로파일 정보는, 전자 장치에 의해 이용되는 프로세스 그룹(예, 동작들(240, 250)의 백그라운드 프로세스 그룹 및/또는 루트 프로세스 그룹)에 대응할 수 있다. 프로파일 정보는, 프로세스 그룹에 포함된 프로세스의 실행을 위해 이용되는 프로세서의 시간, 메모리(예, 도 2의 메모리(120))의 입력 및 출력의 제한 및/또는 메모리 내에 프로세스의 실행을 위해 형성된 캐시 및/또는 페이지의 사이즈를 포함할 수 있다. 전자 장치가 계층화된 프로세스 그룹들에 기반하여 프로세스를 관리하는 경우, 특정 프로세스 그룹의 자식(child) 프로세스 그룹은, 상기 특정 프로세스 그룹의 프로파일 정보의 적어도 일부분을 상속할 수 있다. 상기 상속에 기반하여, 자식 프로세스 그룹에 포함된 프로세스에 대한 스케쥴링은, 상기 특정 프로세스 그룹의 프로파일 정보에 기반하여 수행될 수 있다.
일 실시예에 따르면, 동작(260)의 스케쥴링에 기반하여, 프로세서는, 프로세서가 프로세스들 각각을 실행하는데 점유되는 시간을 결정할 수 있다. 예를 들어, 프로세서는 프로세스의 실행을 위해 이용되는 시간 구간의 길이(length 또는 duration)를 조절할 수 있다. 일 실시예에서, 프로세서는, 적어도 하나의 프로세스를 백그라운드 내 실행을 위한 제1 지정된 스케쥴 그룹에서 다른 스케쥴 그룹들로 스위칭하거나, 또는 상기 다른 스케쥴 그룹들로부터 상기 제1 지정된 스케쥴 그룹으로 스위칭하는 경우, 동작(260)의 스케쥴링을 수행할 수 있다. 예를 들어, 상기 적어도 하나의 프로세스를 탐지하는 것에 응답하여, 프로세서는 상기 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 조절할 수 있다. 프로세서는 상기 조절된 길이를 가지는 시간 구간 내에서 상기 적어도 하나의 프로세스를 실행할 수 있다. 예를 들어, 복수의 프로세스들 중에 적어도 하나의 제1 프로세스 그룹(예, 백그라운드 프로세스 그룹)으로부터 제2 프로세스 그룹(예, 루트 프로세스 그룹)으로의 스위칭, 또는 적어도 하나의 프로세스의 제2 프로세스 그룹으로부터 제1 프로세스 그룹으로의 스위칭에 응답하여, 프로세서는 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 재결정할 수 있고, 상기 재결정된 길이를 가지는 시간 구간 내에서 상기 적어도 하나의 프로세스를 실행할 수 있다.
일 실시예에 따라, 전자 장치의 프로세서가 동작(260)의 스케쥴링을 수행하는 동안, 프로세서(또는 프로세서에 포함된 특정 코어)에 기반하는 프로세스 및/또는 스레드의 실행이 적어도 일시적으로 중단될 수 있다. 프로세서는, 예를 들어, 동작들(240, 250) 내에서, 단순화된 프로세스 그룹들(예, 백그라운드 프로세스 그룹 및/또는 루트 프로세스 그룹)에 기반하는 프로세스의 분류에 기반하여, 스케쥴링 동작을 단순화할 수 있다. 단순화된 프로세스 그룹들이 이용되기 때문에, 프로세서는 프로세스 그룹의 변경에 따라 스케쥴링을 다시 수행하는 빈도(및/또는 횟수)를 줄일 수 있다. 스케쥴링에 의한 프로세스 및/또는 스레드의 실행이 중단되는 빈도 및/또는 시간이 줄어들기 때문에, 사용자 입력과 같은 다른 이벤트에 대한 프로세서의 응답 속도가 증가될 수 있다. 예를 들어, 적어도 하나의 프로세스가 제2 프로세스 그룹(예, 루트 프로세스 그룹) 내 스케쥴 그룹으로부터 제2 프로세스 그룹 내 다른 스케쥴 그룹으로 스위칭된 경우, 프로세서는 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 재결정하지 않고 상기 적어도 하나의 프로세스를 실행할 수 있다.
도 2의 동작들은, 도 1을 참고하여 설명된 전자 장치의 상이한 프로그램들에 의해 수행될 수 있다. 예를 들어, 스케쥴 그룹을 분류하기 위한 동작(220)이, 도 1의 액티비티매니저 서비스(172)의 실행에 기반하여, 수행될 수 있다. 도 1의 액티비티매니저 서비스(172)의 실행에 기반하여, 프로세서는 동작들(230, 240, 250)을 수행할 수 있다. 도 1의 액티비티매니저 서비스(172)를 실행한 프로세서는, 프로세스에 대응하는 프로세스 그룹을 분류한 결과에 기반하여, 도 1의 프로세스 그룹 라이브러리(182)를 실행할 수 있다. 도 1의 프로세스 그룹 라이브러리(182)를 실행한 프로세서는, 프로세스 그룹 각각에 대응하는 프로파일 정보를 식별할 수 있다. 식별된 프로파일 정보에 기반하여, 프로세서는 동작(260)의 스케쥴링을 수행할 수 있다. 동작(260)의 스케쥴링은, 도 1의 프로세스 그룹 라이브러리(182) 및/또는 커널 계층(190)의 스케쥴러(192)의 실행에 기반하여, 수행될 수 있다.
이하에서는, 도 3을 참고하여, 동작(220)의 프로세스에 대응하는 스케쥴 그룹을 결정하는 전자 장치의 예시적인 동작이 설명된다.
도 3은, 프로세스(310)에 대응하는 스케쥴 그룹을 결정하는 전자 장치의 예시적인 동작을 도시한다. 도 1의 전자 장치(101) 및/또는 프로세서(110)는 도 3을 참고하여 설명되는 동작을 수행할 수 있다. 도 3의 전자 장치의 동작은 도 2의 동작(220)과 관련될 수 있다. 도 3의 전자 장치의 동작은, 도 1의 액티비티매니저 서비스(172)(또는 액티비티매니저 서비스(172)에 포함된 OomAdjuster 모듈)의 실행에 기반하여, 수행될 수 있다.
도 3을 참고하면, 프로세스(310)의 분류를 위해 이용되는 예시적인 스케쥴 그룹들이 도시된다. 탑-어플리케이션 스케쥴 그룹(321)은, 디스플레이(예, 도 2의 디스플레이(130)) 상에 표시되고 있는 화면과 연동된(associated with) 프로세스를 분류하기 위하여 설정될 수 있다. 상기 화면은, 윈도우 및/또는 액티비티와 같이, 디스플레이의 표시 영역의 적어도 일부분을 점유하는 도형(예, 사각형 및/또는 둥근 모서리를 가지는 사각형)의 형태를 가질 수 있다. 도 1의 액티비티매니저 서비스(172)에 의해 관리되는 화면들 중에서, 디스플레이 상에 현재 표시되고 있는 화면에 대응하는 프로세스가 탑-어플리케이션 스케쥴 그룹(321)으로 분류될 수 있다.
일 실시예에 따르면, 포어그라운드 스케쥴 그룹(322), 백그라운드 스케쥴 그룹(324) 및/또는 루트 스케쥴 그룹(323)은, 탑-어플리케이션 스케쥴 그룹(321)으로 분류된 프로세스를 제외한 다른 프로세스들을 분류하기 위하여 설정될 수 있다. 포어그라운드 스케쥴 그룹(322)은, 디스플레이 상에 표시되는 화면에 대응하지는 않지만, 오디오 신호를 출력하거나, 애니메이션을 출력하는 프로세스를 분류하기 위하여 설정될 수 있다. 예를 들어, 런처 화면(또는 홈 화면) 내에서 아이콘을 선택하는 입력에 응답하여, 전자 장치는 상기 아이콘에 대응하는 실행 화면을 표시할 수 있다. 런처 화면에서 실행 화면으로 전환하는 동안, 전자 장치는 런처 화면에 대응하는 프로세스에 기반하여, 런처 화면에서 실행 화면으로 전환하는 애니메이션을 재생할 수 있다. 상기 예시 내에서, 실행 화면에 대응하는 프로세스가 탑-어플리케이션 스케쥴 그룹(321)으로 분류될 수 있고, 런처 화면에 대응하는 프로세스가 포어그라운드 스케쥴 그룹(322)으로 분류될 수 있다.
일 실시예에 따르면, 백그라운드 스케쥴 그룹(324)은, 인스트럭션들에 의해 명시적으로(explicitly) 백그라운드 상태로 스위칭된 프로세스를 분류하기 위하여 설정될 수 있다. 백그라운드 스케쥴 그룹(324)은, 전자 장치의 시스템 프로세스(예, 도 1의 액티비티매니저 서비스(172))에 의해 상기 백그라운드 상태로 스위칭된, 프로세스를 분류하기 위하여 설정될 수 있다. 프로세서는 복수의 프로세스들 중에서 탑-어플리케이션 스케쥴 그룹(321) 및 포어그라운드 스케쥴 그룹(322)으로 분류되지 않은 프로세스들 중에서, 백그라운드 스케쥴 그룹(324)으로 분류될 프로세스를 선택할 수 있거나, 또는 필터링할 수 있다.
일 실시예에 따르면, 루트 스케쥴 그룹(323)은, 탑-어플리케이션 스케쥴 그룹(321), 포어그라운드 스케쥴 그룹(322) 및 백그라운드 스케쥴 그룹(324)으로 분류되지 않은 나머지 프로세스들을 분류하기 위하여 설정될 수 있다. 전자 장치는, 프로세스가 실행된 상태 및/또는 프로세스에 의해 실행되는 기능에 기반하여, 상기 프로세스를 도 3을 참고하여 설명된 프로세스 그룹들 중 어느 한 프로세스 그룹으로 분류할 수 있다. 프로세서에 의해 실행되는 프로세스들 전부는, 도 3의 프로세스 그룹들 중 어느 한 프로세스 그룹으로 분류될 수 있다. 프로세스의 상태가 변경되는 경우, 전자 장치는 상기 프로세스에 대응하는 프로세스 그룹을 변경할 수 있다.
일 실시예에 따른, 전자 장치는, 프로세스 그룹을 이용하여, 프로세스의 실행을 위해 점유될 전자 장치의 자원(예, 프로세스의 실행을 위해 이용되는 프로세서의 시간 자원)을 조절할 수 있다. 전자 장치는 백그라운드 스케쥴 그룹(324)에 대응하는 백그라운드 프로세스 그룹 및 다른 스케쥴 그룹들(예, 탑-어플리케이션 스케쥴 그룹(321), 포어그라운드 스케쥴 그룹(322) 및/또는 루트 스케쥴 그룹(323)) 전부에 대응하는 루트 프로세스 그룹을 이용하여, 프로세스들 각각으로 자원을 할당할 수 있다. 예를 들어, 탑-어플리케이션 스케쥴 그룹(321), 포어그라운드 스케쥴 그룹(322) 및/또는 루트 스케쥴 그룹(323) 사이에서 스위칭되는 프로세스에 대하여, 프로세서는 상기 프로세스에 대응하는 프로세스 그룹을 변경하지 않고, 상기 프로세스에 할당된 자원을 유지할 수 있다. 상기 예시 내에서, 프로세서는 상기 자원을 변경하지 않을 수 있다. 예를 들어, 백그라운드 스케쥴 그룹(324)으로부터 다른 스케쥴 그룹들로 스위칭되거나, 또는 다른 스케쥴들로부터 백그라운드 스케쥴 그룹(324)으로 스위칭되는 프로세스에 대하여, 프로세서는 상기 프로세스에 대응하는 프로세스 그룹을 변경할 수 있고, 상기 프로세스에 대한 스케쥴링을 다시 수행할 수 있다.
이하에서는, 도 4를 참고하여, 스케쥴 그룹의 변경을 탐지한 전자 장치 및/또는 프로세서의 동작의 일 예를 설명한다.
도 4는, 일 실시예에 따른, 전자 장치의 흐름도의 일 예를 도시한다. 도 1의 전자 장치(101) 및/또는 프로세서(110)는 도 4를 참고하여 설명되는 전자 장치의 동작을 수행할 수 있다. 도 4의 동작은 도 2의 동작들 중 적어도 하나와 관련될 수 있다.
도 4를 참고하면, 동작(410) 내에서, 일 실시예에 따른, 전자 장치의 프로세서는, 프로세스의 스케쥴 그룹의 변경을 탐지할 수 있다. 도 1 내지 도 3을 참고하여 상술한 바와 같이, 프로세스의 상태의 변경에 기반하여, 상기 프로세스가 지정된 스케쥴 그룹들 중 어느 한 스케쥴 그룹에서 다른 스케쥴 그룹으로 재분류될 수 있다. 상기 지정된 스케쥴 그룹들은, 도 3을 참고하여 설명된 스케쥴 그룹들을 포함할 수 있다. 스케쥴 그룹의 변경을 탐지한 프로세서는 동작(420)을 수행할 수 있다.
도 4를 참고하면, 동작(420) 내에서, 일 실시예에 따른, 전자 장치의 프로세서는, 변경된 스케쥴 그룹이 백그라운드 스케쥴 그룹에 대응하는지 여부를 탐지할 수 있다. 동작(420)의 백그라운드 스케쥴 그룹은, 도 3의 백그라운드 스케쥴 그룹(324)을 포함할 수 있다. 동작(410)에 기반하여 변경된 스케쥴 그룹이 백그라운드 스케쥴 그룹에 대응하는 경우(420-예), 프로세서는 동작(430)을 수행할 수 있다. 동작(410)에 기반하여 변경된 스케쥴 그룹이 백그라운드 스케쥴 그룹과 상이한 경우(420-아니오), 프로세서는 동작(440)을 수행할 수 있다.
도 4를 참고하면, 동작(430) 내에서, 일 실시예에 따른, 전자 장치의 프로세서는, 프로세스에 대응하는 프로세스 그룹을, 백그라운드 프로세스 그룹으로 결정할 수 있다. 프로세스가 백그라운드 스케쥴 그룹으로 변경되는 경우, 프로세서는 상기 프로세스를 백그라운드 프로세스 그룹으로 분류할 수 있다. 프로세스의 상태가 백그라운드 상태로 스위칭되는 것은, 프로세스의 스케쥴 그룹 및 프로세스 그룹 전부의 변경을 야기할 수 있다.
도 4를 참고하면, 동작(440) 내에서, 일 실시예에 따른, 전자 장치의 프로세서는, 프로세스에 대응하는 프로세스 그룹을, 루트 프로세스 그룹으로 결정할 수 있다. 프로세스가 백그라운드 스케쥴 그룹과 상이한 스케쥴 그룹으로 변경되는 경우 프로세서는 상기 프로세스를 루트 프로세스 그룹으로 분류할 수 있다. 프로세스의 상태가 백그라운드 상태와 상이한 상태들 사이에서 스위칭되는 경우, 프로세서의 프로세스 그룹은, 루트 프로세스 그룹 내에서 유지될 수 있다.
도 4의 동작들(430, 440)을 참고하면, 전자 장치의 프로세서는, 프로세스들 각각에 대응하는 스케쥴 그룹들에 기반하여, 복수의 프로세스들을, 백그라운드 내 실행을 위한 제1 프로세스 그룹(예, 동작(430)의 백그라운드 프로세스 그룹) 및 제1 프로세스 그룹과 상이한 제2 프로세스 그룹(예, 동작(440)의 루트 프로세스 그룹) 중 어느 한 그룹으로 분류할 수 있다.
도 4를 참고하면, 동작(450) 내에서, 일 실시예에 따른, 전자 장치의 프로세서는, 프로세스 그룹이 변경되었는지 여부에 기반하여, 동작(410)의 프로세스의 스케쥴링을 수행할 수 있다. 프로세서가 백그라운드 프로세스 그룹 또는 루트 프로세스 그룹 중에서, 프로세스에 대응하는 프로세스 그룹을 결정하기 때문에, 프로세서는, 프로세스를 백그라운드 프로세스 그룹 및 루트 프로세스 그룹 사이에서 스위칭하는 것에 기반하여, 동작(450)을 수행할 수 있다. 예를 들어, 복수의 프로세스들 중 적어도 하나의 프로세스의 제1 프로세스 그룹(예, 백그라운드 프로세스 그룹)으로부터 제2 프로세스 그룹(예, 루트 프로세스 그룹)으로의 스위칭 또는 상기 적어도 하나의 프로세스의 제2 프로세스 그룹으로부터 제2 프로세스 그룹으로의 스위칭에 응답하여, 프로세서는 상기 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 재결정할 수 있고, 상기 재결정된 길이를 가지는 시간 구간 내에서 상기 적어도 하나의 프로세스를 실행할 수 있다. 예를 들어, 프로세스를, 백그라운드 프로세스 그룹에 대응하는 백그라운드 스케쥴링 그룹과 상이한 다른 스케쥴링 그룹들 사이에서 스위칭하는 경우, 프로세서는 동작(450)에 기반하여 스케쥴링을 수행하지 않고, 기 결정된 스케쥴링을 유지할 수 있다. 예를 들어, 적어도 하나의 프로세스가 제2 프로세스 그룹(예, 루트 프로세스 그룹) 내 스케쥴 그룹으로부터 제2 프로세스 그룹 내 다른 스케쥴 그룹으로 스위칭된 경우, 프로세서는 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 재결정하지 않고 상기 적어도 하나의 프로세스를 실행할 수 있다. 동작(450)에 기반하는 스케쥴링이 수행되지 않기 때문에, 프로세서는 스케쥴링을 위해 소비되는 시간 자원을 절약할 수 있거나, 또는 줄일 수 있다.
도 4를 참고하면, 동작(450)의 스케쥴링이 수행되지 않는 경우, 프로세서는 동작(410)의 스케쥴 그룹의 변경을 탐지하는 것과 독립적으로, 프로세스의 스케쥴링을 유지할 수 있다. 예를 들어, 프로세스의 스케쥴 그룹이, 백그라운드 스케쥴링 그룹과 상이한 스케쥴 그룹들 사이에서 변경되는 경우, 프로세서는 프로세스의 스케쥴링을 위한 정보(예, 프로파일 정보)를 변경하지 않을 수 있다. 프로세서가 프로세스의 스케쥴링을 위한 정보를 변경하기 위하여 추가적인 계산을 수행하지 않기 때문에, 프로세서는 스케쥴링을 위해 소비되는 자원을 절감할 수 있다. 예를 들어, 프로세서는, 스케쥴링을 위한 정보를 변경하는 대신에, 터치 입력을 포함하는 사용자 입력을 처리할 수 있다.
상술한 바와 같이, 일 실시예에 따른, 전자 장치의 프로세서는, 백그라운드 프로세스 그룹 또는 루트 프로세스 그룹 중 어느 한 그룹으로 프로세스를 분류할 수 있다. 프로세스를 상기 프로세스 그룹들 사이에서 스위칭하는 경우, 프로세서는 상기 프로세스에 대한 스케쥴링 속성(예, 프로세서가 프로세스를 실행하는 기간(duration))을 변경할 수 있다. 백그라운드 스케쥴 그룹과 상이한 다른 스케쥴 그룹들 전부가 루트 프로세스 그룹에 포함되기 때문에, 프로세스가 탑-어플리케이션 스케쥴 그룹 또는 포어그라운드 스케쥴 그룹 사이에서 스위칭되는 경우, 상기 프로세스의 프로세스 그룹은 루트 프로세스 그룹 내에서 유지될 수 있다. 예를 들어, 프로세스가 상기 다른 스케쥴 그룹들 사이에서 스위칭되는 것은, 프로세서의 스케쥴링을 촉발(trigger)하지 않을 수 있다. 스케쥴링이 수행되는 빈도가 줄어들기 때문에, 스케쥴링을 위한 연산량 및/또는 시간이 줄어들 수 있고, 응답 속도가 증가될 수 있다. 스케쥴링을 위한 연산량이 줄어들기 때문에, 전자 장치의 발열이 감소될 수 있고, 배터리 라이프가 증가될 수 있다.
이하에서는, 도 5를 참고하여, 프로세스 그룹의 스위칭에 기반하여 스케쥴링을 수행하는 전자 장치의 동작이 설명된다.
도 5는, 프로세스들에 대응하는 프로세스 그룹을 이용하여 프로세서의 시간 자원을 스케쥴링하는 전자 장치의 예시적인 동작을 도시한다. 도 1의 전자 장치(101) 및/또는 프로세서(110)는 도 5를 참고하여 설명되는 전자 장치의 동작을 수행할 수 있다. 도 5의 동작은 도 2 및/또는 도 4의 동작들 중 적어도 하나와 관련될 수 있다.
도 5를 참고하면, 루트 프로세스 그룹(510) 및 루트 프로세스 그룹(510)의 하위 프로세스 그룹인 백그라운드 프로세스 그룹(520) 사이의 계층 관계가 예시적으로 도시된다. 백그라운드 프로세스 그룹(520)은, 루트 프로세스 그룹(510)의 프로세스의 스케쥴링을 위한 정보(예, 프로파일 정보)의 적어도 일부분을 상속할 수 있거나, 또는 이용할 수 있다. 예를 들어, 루트 프로세스 그룹(510)의 프로세스로 적용되는 메모리 대역폭 제한, 캐시 메모리 사이즈 상한, 프로세서의 시간 자원 점유율 및/또는 네트워크 자원 제한 중 적어도 하나가, 백그라운드 프로세스 그룹(520)의 프로세스로 적용될 수 있다. 예를 들어, 적어도 하나의 프로세스가 제1 프로세스 그룹으로 스위칭된 경우, 프로세서는 제1 프로세스 그룹(예, 백그라운드 프로세스 그룹(520))에 대응하는 제1 프로파일 정보에 기반하여 적어도 하나의 프로세스를 스케쥴할 수 있고, 적어도 하나의 프로세스가 제2 프로세스 그룹으로 스위칭된 경우, 제2 프로세스 그룹(예, 루트 프로세스 그룹)에 대응하는 제2 프로파일 정보에 기반하여 적어도 하나의 프로세스를 스케쥴할 수 있다.
도 5를 참고하면, 6 개의 프로세스들을 실행하는 전자 장치의 예시적인 상태가 도시된다. 전자 장치에 의해 실행되는 프로세스들의 개수는 도 5의 예시적인 상태에 제한되지 않는다. 제1 프로세스(531), 제2 프로세스(532) 및 제3 프로세스(533)는 백그라운드 프로세스 그룹(520)으로 분류되고, 제4 프로세스(534), 제5 프로세스(535) 및 제6 프로세스(536)는 루트 프로세스 그룹(510)으로 분류될 수 있다. 전자 장치가 복수의 프로세스들을 분류하는 동작은, 도 2 및/또는 도 4의 동작들에 기반하여 수행될 수 있다. 실시예가 이에 제한되는 것은 아니며, 커널 계층 및/또는 플랫폼 계층에서 실행되는 프로세스는, 루트 프로세스 그룹(510)으로 분류될 수 있다.
도 5를 참고하면, 일 실시예에 따른, 전자 장치는, 가중치에 기반하여 프로세스들 각각을 실행하는 프로세서의 기간을 계산할 수 있다. 도 5의 'CPU_shares'(또는 'CPU.shares')는, 프로세스의 계산을 위해 이용되는 수치 값(numeric value)일 수 있다. 상기 수치 값은, 가중치, 타임 슬라이스 및/또는 퀀텀(quantum)으로 지칭될 수 있다. 예를 들어, 복수의 프로세스들에 각각 할당된 가중치들에 기반하여, 프로세서는 상기 복수의 프로세스들 각각을 실행하기 위하여 이용되는 시간 구간들의 길이들을 결정할 수 있다. 제1 프로세스 그룹(예, 백그라운드 프로세스 그룹) 내 프로세스들을 실행하기 위하여 이용되는 시간 구간들의 길이들은 제1 프로세스 그룹에 대응하는 제1 가중치에 기반하여 결정될 수 있고, 제2 프로세스 그룹 내 프로세스들을 실행하기 위하여 이용되는 시간 구간들의 길이들은 제2 프로세스 그룹에 대응하는 제2 가중치에 기반하여 결정될 수 있다. 루트 프로세스 그룹(510)에 포함된 프로세스들로, 전자 장치는 일치된 가중치(예, 1024)를 할당할 수 있다. 도 5의 일 실시예에서, 상기 가중치가 제4 프로세스(534) 내지 제6 프로세스(536)로 할당될 수 있다. 예를 들어, 제2 프로세스 그룹 내 프로세스들 각각은 제2 가중치가 할당될 수 있다. 루트 프로세스 그룹(510)의 프로세스에 할당되는 가중치는, 백그라운드 프로세스 그룹(520) 전체에 할당될 수 있다. 루트 프로세스 그룹(510)의 상기 가중치는, 루트 프로세스 그룹(510) 및 백그라운드 프로세스 그룹(520)의 계층 관계에 기반하여, 백그라운드 프로세스 그룹(520)으로 적용될 수 있다. 예를 들어, 제1 가중치는 제1 프로세스 그룹 내 프로세스들 각각에 분할될 수 있다.
일 실시예에 따른, 전자 장치는 백그라운드 프로세스 그룹(520)으로 할당된 가중치(예, 1024)를, 프로세서의 상태(예, 부하 및/또는 사용량(usage))에 기반하여 변경할 수 있다. 예를 들어, 터치 입력의 수신, 임계치 이상으로 증가된 프로세서의 사용량, 임계 온도를 초과하는 프로세서의 온도 및/또는 업데이트와 같은 지정된 이벤트 중 적어도 하나에 응답하여, 프로세서는 상기 가중치를 변경할 수 있다. 예를 들어, 프로세서는, 프로세서의 사용량, 전자 장치의 온도 센서에 의해 식별된 온도, 또는 전자 장치의 터치 센서를 통해 식별된 터치 입력 중 적어도 하나에 기반하여 제1 가중치를 조절할 수 있다. 프로세서는, 백그라운드 프로세스 그룹(520)으로 할당된 상기 가중치에, 상기 프로세서의 상태에 기반하는 계수를 곱하여, 백그라운드 프로세스 그룹(520)의 프로세스들 전체를 실행하기 위한 시간 자원을 계산할 수 있다. 도 5의 일 실시예에서, 전자 장치는 백그라운드 프로세스 그룹(520)으로 할당된 가중치를 50 % 만큼 줄일 수 있다(예, 1024 Х 50 % = 512). 가중치에 적용되는 계수(예, 상기 50 %)는, 상술된 예시에 기반하여 결정될 수 있다. 예를 들어, 스마트워치(예, 도 1의 스마트워치(101-1))와 같이, 헬스 데이터의 탐지 및/또는 처리를 위해 설계된 전자 장치는, 상기 헬스 데이터와 관련된 프로세스의 처리를 위하여, 백그라운드 프로세스 그룹(520)의 가중치에 적용되는 계수를 지정된 계수(예, 70 % 내지 100 %)로 결정할 수 있다.
도 5를 참고하면, 6 개의 프로세스들 각각의 가중치들이 도시된다. 전자 장치는, 백그라운드 프로세스 그룹 (520)에 할당된 전체 가중치 512를, 백그라운드 프로세스 그룹에 포함된 프로세스의 개수(예, 3 개)로 할당할 수 있다. 예를 들어, 백그라운드 프로세스 그룹(520)에 포함된 프로세스들(예, 제1 프로세스(531) 내지 제3 프로세스(533))은, 의 가중치를 각각 가질 수 있다. 루트 프로세스 그룹(510)에 포함된 프로세스들(예, 제4 프로세스(534) 내지 제6 프로세스(536))는, 1024의 가중치를 각각 가질 수 있다. 상술한 바와 같이, 프로세스들 각각에 할당되는 가중치들은, 백그라운드 프로세스 그룹(520)에 할당된 가중치 또는 루트 프로세스 그룹(510)에 할당된 가중치 중에서 선택될 수 있다. 백그라운드 프로세스 그룹(520)에 할당된 가중치는, 프로세서의 사용량, 전자 장치의 온도 또는 터치 입력 중 적어도 하나에 기반하여 조절될 수 있다.
일 실시예에 따른, 전자 장치는, 복수의 프로세스들 각각에 할당된 가중치들에 기반하여, 상기 복수의 프로세스들 각각을 실행하기 위하여 이용되는 시간 구간들의 길이들을 결정할 수 있다. 프로세스의 실행을 위해 이용되는 프로세서의 시간 구간의 비율은, 프로세스들 전체의 가중치들의 합과 상기 프로세스에 할당된 가중치의 비율에 대응할 수 있다. 도 5의 일 실시예에서, 프로세서가 6 개의 프로세스들을 실행하는 비율은, 표 1과 같이 계산될 수 있다.
표 1을 참고하면, 백그라운드 프로세스 그룹(520)의 가중치로 적용된 계수로 인하여, 약 12.5 %의 시간 자원이, 6 개의 프로세스들과 상이한 다른 프로세스 및/또는 기능을 위해 이용될 수 있다. 백그라운드 프로세스 그룹(520)으로 분류되는 프로세스들의 개수가 증가될수록, 백그라운드 프로세스 그룹(520)에 포함된 프로세스의 시간 자원 점유율이 감소될 수 있다.루트 프로세스 그룹(510)에 포함된 프로세스들의 개수가 증가될수록, 백그라운드 프로세스 그룹(520)으로 분류된 프로세스들의 시간 자원 점유율이 감소될 수 있다.
상술한 바와 같이, 일 실시예에 따른, 전자 장치의 프로세서는, 백그라운드 프로세스 그룹(520) 및 루트 프로세스 그룹(510) 만을 이용하여, 프로세스의 실행을 위해 이용되는 프로세서의 시간 구간의 길이를 조절할 수 있거나, 또는 결정할 수 있다.
도 6은, 일 실시예에 따른, 전자 장치의 흐름도의 일 예를 도시한다. 도 1의 전자 장치(101) 및/또는 프로세서(110)는 도 6을 참고하여 설명되는 전자 장치의 동작을 수행할 수 있다. 도 6의 동작은, 도 2 및/또는 도 4의 동작들 중 적어도 하나와 관련될 수 있다.
도 6을 참고하면, 동작(610) 내에서, 일 실시예에 따른, 전자 장치의 프로세서는, 프로세서의 상태를 확인할 수 있거나, 또는 탐지할 수 있다. 예를 들어, 프로세서는, 프로세서의 상태를 나타내는 파라미터들을 획득할 수 있다. 상기 파라미터들은, 전자 장치 및/또는 프로세서의 온도, 프로세스의 실행에 의한 프로세서의 사용량 및/또는 터치 입력을 식별하였는지 여부를 포함할 수 있다.
도 6을 참고하면, 동작(620) 내에서, 일 실시예에 따른, 전자 장치의 프로세서는, 동작(610)에 기반하여 확인된 프로세서의 상태 및 브로드캐스트와 관련된 제1 지정된 조건을 비교하여, 브로드캐스트에 대응하는 프로세스들의 실행에 이용되는 딜레이를 설정 및/또는 조절할 수 있다. 상기 제1 지정된 조건은, 전자 장치 및/또는 프로세서의 온도가 지정된 임계 온도를 초과하는지 여부를 포함할 수 있다. 상기 제1 지정된 조건은, 프로세서의 사용량이 임계 사용량을 초과하는지 여부를 포함할 수 있다. 상기 제1 지정된 조건은, 터치 입력을 수신하였는지 여부를 포함할 수 있다. 상기 예시된 제1 지정된 조건을 만족하는 경우, 프로세서는 동작(620)의 딜레이를 설정할 수 있거나, 또는 증가시킬 수 있다. 딜레이가 증가됨에 따라, 브로드캐스트에 대응하는 프로세스들 각각을 실행하는 타이밍들 사이의 간격이 증가될 수 있다. 동작(620)에 기반하여 딜레이를 설정 및/또는 조절하는 전자 장치의 동작이 도 7을 참고하여 설명된다.
도 6을 참고하면, 동작(630) 내에서, 일 실시예에 따른, 전자 장치의 프로세서는, 동작(610)에 기반하여 확인된 프로세서의 상태 및 프로세서의 스케쥴링과 관련된 제2 지정된 조건을 비교하여, 백그라운드 프로세스 그룹으로 분류된 적어도 하나의 프로세스의 실행을 위해 이용되는 프로세서의 시간 자원을 조절할 수 있다. 상기 제2 지정된 조건은, 동작(620)의 제1 지정된 조건과 유사하게, 프로세서의 사용량, 터치 입력을 수신하였는지 여부 및/또는 프로세서의 온도 중 적어도 하나를 포함할 수 있다. 제2 지정된 조건에 기반하여, 프로세서는 백그라운드 프로세스 그룹에 포함된 프로세스들의 시간 자원을 결정하는데 이용되는, 가중치를 조절할 수 있다. 예를 들어, 프로세서는 도 5의 가중치에 적용되는 계수를 변경할 수 있다.
이하에서는, 도 7을 참고하여, 도 6의 동작(620)에 기반하여 설정된 딜레이와 관련된 전자 장치의 동작이 설명된다.
도 7은, 프로세스들 사이에서 정보를 송신하는 전자 장치의 예시적인 동작을 도시한다. 도 1의 전자 장치(101) 및/또는 프로세서(110)는 도 7을 참고하여 설명되는 전자 장치의 동작을 수행할 수 있다. 도 7을 참고하여 설명되는 전자 장치의 동작은, 도 2, 도 4 및/또는 도 6의 동작들과 관련될 수 있다.
일 실시예에 따르면, 프로세서는 특정 프로세스로부터 다른 프로세스로 정보의 송신을 위한 요청을 탐지할 수 있다. 상기 요청은 인텐트 객체(710)에 기반하여 탐지될 수 있다. 인텐트 객체(710)는, 프로세스들 사이의 정보의 송신 및/또는 작업의 요청을 위해 정의된 데이터 구조를 포함할 수 있다. 인텐트 객체(710)는, 상기 인텐트 객체(710)에 기반하여 실행될 프로세스에게 요청된 액션 속성(action attribute) 및/또는 상기 액션과 관련된 데이터 속성(data attribute)을 포함할 수 있다. 예를 들어, 웹 페이지의 실행을 위해 생성된 인텐트 객체(710)는, 인텐트 객체(710)가 웹 페이지의 표시를 요청하기 위해 생성되었음을 나타내는 액션 속성 및 상기 웹 페이지의 주소(예, URL(uniform resource location) 및/또는 URI(uniform resource indicator))를 포함할 수 있다. 프로세서는 인텐트 객체(710)에 의해 설정된 조건(예, 인텐트 필터)에 기반하여, 복수의 프로세스들 중에서, 인텐트 객체(710)에 대응하는 프로세스들을 식별할 수 있다. 일 실시예에 따른, 전자 장치의 프로세서는, 인텐트 객체(710)에 기반하여 복수의 프로세스들을 실행할 수 있다. 예를 들어, 상기 복수의 프로세스들의 실행에 기반하여, 프로세서는 상기 복수의 프로세스들로, 인텐트 객체(710)에 포함된 정보를 브로드캐스트할 수 있다.
일 실시예에 따르면, 프로세서는 백그라운드 프로세스 그룹으로 분류된 프로세스들 및 루트 프로세스 그룹으로 분류되는 프로세스들 각각에 대한 브로드캐스트 서비스들을 이용하여, 인텐트 객체(710)에 기반하는 브로드캐스트를 수행할 수 있다. 도 4를 참고하면, 인텐트 객체(710)에 기반하여 4 개의 프로세스들(예, 제1 프로세스(721), 제2 프로세스(722), 제3 프로세스(723) 및 제4 프로세스(724))를 실행하는 전자 장치의 예시적인 상태가 도시된다. 인텐트 객체(710)를 식별한 전자 장치는, 도 6의 동작(620)에 의해 설정된 딜레이에 기반하여 인텐트 객체(710) 및/또는 인텐트 객체(710)와 관련된 요청에 대응하는 4 개의 프로세스들을 순차적으로(sequentially) 실행할 수 있다. 상기 딜레이는, 전자 장치의 프로세서의 사용량, 전자 장치의 온도 또는 전자 장치에 의해 식별된 터치 입력 중 적어도 하나에 기반하여 조절될 수 있다. 예를 들어, 상기 딜레이는, 상기 사용량 및/또는 상기 온도에 비례할 수 있다. 상기 딜레이는, 상기 사용량 및/또는 상기 온도에 기반하는 룩-업 테이블에 의해 설정될 수 있다. 상기 딜레이는, 터치 입력을 수신한 경우, 증가될 수 있다.
도 7을 참고하면, 프로세서는 인텐트 객체(710)에 기반하여 제1 프로세스(721)를 실행한 다음, 프로세서의 상태에 따르는 딜레이에 기반하여, 제2 프로세스(722)를 실행할 수 있다. 프로세서는, 인텐트 객체(710)에 기반하는 제1 프로세스(721)의 동작의 완료를 탐지한 타이밍(예, 제1 프로세스(721)의 종료 응답을 식별한 타이밍)부터, 상기 딜레이 이후의 타이밍에, 제2 프로세스(722)를 실행할 수 있다. 상기 딜레이에 기반하여, 프로세서는 인텐트 객체(710)와 관련된 4 개의 프로세스들이 중첩으로 실행되는 것을 방지할 수 있다. 상기 딜레이에 기반하여, 프로세서는, 프로세서의 사용량의 급격한 증가를 방지할 수 있다. 상기 딜레이에 기반하여, 프로세서는, 프로세서의 포화를 방지할 수 있다. 프로세서의 포화가 방지되기 때문에, 프로세서는 터치 입력과 같은 사용자 입력에 보다 빠르게 반응할 수 있다.
도 8은, 일 실시예에 따른, 전자 장치가 부팅하는 동안, 시간 영역에서 전자 장치의 프로세서의 사용량(usage)을 도시한 그래프들이다.
도 8을 참고하면, 스케쥴 그룹들 각각에 대응하는 프로세스 그룹들에 기반하여 프로세스들의 자원을 계산하는 제1 전자 장치 및 상기 프로세스 그룹들 중에서 백그라운드 프로세스 그룹 및 루트 프로세스 그룹에 기반하여 프로세스들의 자원을 계산하는 제2 전자 장치의 부팅 시간을 비교한 그래프들(810, 820)이 도시된다. 그래프(810)는, 상기 제1 전자 장치가 부팅하는 동안의 CPU 사용량을 나타낸다. 그래프(820)는, 상기 제2 전자 장치가 부팅하는 동안의 CPU 사용량을 나타낸다. 제2 전자 장치는 도 1 내지 도 7의 전자 장치의 일 예일 수 있다.
도 8을 참고하면, 제1 전자 장치의 CPU 사용량이 감소되는 시점(t2)은, 제2 전자 장치의 CPU 사용량이 감소되는 시점(t1) 이후일 수 있다. 예를 들어, 제1 전자 장치의 부팅이 제2 전자 장치의 부팅 보다 늦게 완료될 수 있다. 제2 전자 장치는 도 1 내지 도 7을 참고하여 설명된 동작에 기반하여, 두 개의 프로세스 그룹들 만으로 프로세스에 대한 스케쥴링을 수행할 수 있고, 프로세서의 상태에 기반하는 딜레이를 이용하여 인텐트 객체와 관련된 동작을 수행할 수 있다. 제2 전자 장치가 CPU 사용량을 보다 효율적으로 제어하기 때문에, 제1 전자 장치 및 제2 전자 장치가 동시에 켜진 이후, 부팅에 기반하는 제2 전자 장치의 사용량이, 제1 전자 장치의 사용량 보다 일찍 감소될 수 있다.
표 2를 참고하면, 제1 전자 장치의 부팅이 완료되는 시간을 반복적으로 측정한 제1 케이스 및 제2 전자 장치의 부팅이 완료되는 시간을 반복적으로 측정한 제2 케이스가 도시된다.
표 2를 참고하면, 제1 전자 장치의 부팅은, 평균 209 초 이후 완료될 수 있고, 제2 전자 장치의 부팅은, 평균 176 초 이후 완료될 수 있다. 예를 들어, 제2 전자 장치는 도 1 내지 도 7의 동작에 기반하여, 프로세서의 스케쥴링 및/또는 인텐트 객체에 기반하는 프로세스의 실행을 제어할 수 있다. 스케쥴링 및/또는 프로세스의 실행의 제어에 기반하여, 제2 전자 장치는 스케쥴링에 의한 프로세스의 실행 중단을 줄이고, 프로세서의 사용량을 줄일 수 있다. 프로세스의 실행이 중단되는 횟수 및/또는 빈도가 감소되므로, 도 8의 그래프들(810, 820)과 같이, 제2 전자 장치는 제1 전자 장치보다 특정 동작(예, 부팅)을 빠르게 완료할 수 있거나, 또는 수행할 수 있다. 실시예가 이에 제한되는 것은 아니다.
도 9는, 다양한 실시예들에 따른, 네트워크 환경(900) 내의 전자 장치(901)의 블록도이다. 도 9를 참조하면, 네트워크 환경(900)에서 전자 장치(901)는 제 1 네트워크(998)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(902)와 통신하거나, 또는 제 2 네트워크(999)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(904) 또는 서버(908) 중 적어도 하나와 통신할 수 있다. 일실시예에 따르면, 전자 장치(901)는 서버(908)를 통하여 전자 장치(904)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(901)는 프로세서(920), 메모리(930), 입력 모듈(950), 음향 출력 모듈(955), 디스플레이 모듈(960), 오디오 모듈(970), 센서 모듈(976), 인터페이스(977), 연결 단자(978), 햅틱 모듈(979), 카메라 모듈(980), 전력 관리 모듈(988), 배터리(989), 통신 모듈(990), 가입자 식별 모듈(996), 또는 안테나 모듈(997)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(901)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(978))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(976), 카메라 모듈(980), 또는 안테나 모듈(997))은 하나의 구성요소(예: 디스플레이 모듈(960))로 통합될 수 있다.
프로세서(920)는, 예를 들면, 소프트웨어(예: 프로그램(940))를 실행하여 프로세서(920)에 연결된 전자 장치(901)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(920)는 다른 구성요소(예: 센서 모듈(976) 또는 통신 모듈(990))로부터 수신된 명령 또는 데이터를 휘발성 메모리(932)에 저장하고, 휘발성 메모리(932)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(934)에 저장할 수 있다. 일실시예에 따르면, 프로세서(920)는 메인 프로세서(921)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(923)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(901)가 메인 프로세서(921) 및 보조 프로세서(923)를 포함하는 경우, 보조 프로세서(923)는 메인 프로세서(921)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(923)는 메인 프로세서(921)와 별개로, 또는 그 일부로서 구현될 수 있다.
보조 프로세서(923)는, 예를 들면, 메인 프로세서(921)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(921)를 대신하여, 또는 메인 프로세서(921)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(921)와 함께, 전자 장치(901)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(960), 센서 모듈(976), 또는 통신 모듈(990))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(923)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(980) 또는 통신 모듈(990))의 일부로서 구현될 수 있다. 일실시예에 따르면, 보조 프로세서(923)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(901) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(908))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다.
메모리(930)는, 전자 장치(901)의 적어도 하나의 구성요소(예: 프로세서(920) 또는 센서 모듈(976))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(940)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(930)는, 휘발성 메모리(932) 또는 비휘발성 메모리(934)를 포함할 수 있다.
프로그램(940)은 메모리(930)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(942), 미들 웨어(944) 또는 어플리케이션(946)을 포함할 수 있다.
입력 모듈(950)은, 전자 장치(901)의 구성요소(예: 프로세서(920))에 사용될 명령 또는 데이터를 전자 장치(901)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(950)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다.
음향 출력 모듈(955)은 음향 신호를 전자 장치(901)의 외부로 출력할 수 있다. 음향 출력 모듈(955)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.
디스플레이 모듈(960)은 전자 장치(901)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(960)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 디스플레이 모듈(960)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다.
오디오 모듈(970)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(970)은, 입력 모듈(950)을 통해 소리를 획득하거나, 음향 출력 모듈(955), 또는 전자 장치(901)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(902))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.
센서 모듈(976)은 전자 장치(901)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(976)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다.
인터페이스(977)는 전자 장치(901)가 외부 전자 장치(예: 전자 장치(902))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(977)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.
연결 단자(978)는, 그를 통해서 전자 장치(901)가 외부 전자 장치(예: 전자 장치(902))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(978)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.
햅틱 모듈(979)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(979)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.
카메라 모듈(980)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(980)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.
전력 관리 모듈(988)은 전자 장치(901)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(988)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.
배터리(989)는 전자 장치(901)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(989)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.
통신 모듈(990)은 전자 장치(901)와 외부 전자 장치(예: 전자 장치(902), 전자 장치(904), 또는 서버(908)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(990)은 프로세서(920)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(990)은 무선 통신 모듈(992)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(994)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(998)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(999)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(904)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(992)은 가입자 식별 모듈(996)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(998) 또는 제 2 네트워크(999)와 같은 통신 네트워크 내에서 전자 장치(901)를 확인 또는 인증할 수 있다.
무선 통신 모듈(992)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(992)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(992)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(992)은 전자 장치(901), 외부 전자 장치(예: 전자 장치(904)) 또는 네트워크 시스템(예: 제 2 네트워크(999))에 규정되는 다양한 요구사항을 지원할 수 있다. 일실시예에 따르면, 무선 통신 모듈(992)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.
안테나 모듈(997)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(997)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(997)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(998) 또는 제 2 네트워크(999)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(990)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(990)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(997)의 일부로 형성될 수 있다.
다양한 실시예에 따르면, 안테나 모듈(997)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.
상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.
일실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(999)에 연결된 서버(908)를 통해서 전자 장치(901)와 외부의 전자 장치(904)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(902, 또는 1504) 각각은 전자 장치(901)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(901)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(902, 1504, 또는 1508) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(901)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(901)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(901)로 전달할 수 있다. 전자 장치(901)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(901)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(904)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(908)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(904) 또는 서버(908)는 제 2 네트워크(999) 내에 포함될 수 있다. 전자 장치(901)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다.
본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.
본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.
본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다.
본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(901)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(936) 또는 외장 메모리(938))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(940))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(901))의 프로세서(예: 프로세서(920))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, '비일시적'은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.
일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어™)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.
다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체들을 포함할 수 있으며, 복수의 개체들 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다. 도 9의 전자 장치(901) 및/또는 전자 장치(902)는, 도 1의 전자 장치(101)의 일 예일 수 있다.
일 실시예에서, 프로세서의 응답 속도를 개선하는 방안이 요구될 수 있다. 일 실시예에서, 복수의 프로세스들에 대한 스케쥴링을 효율적으로 수행하는 방안이 요구될 수 있다. 일 실시예에서, 프로세서의 부하의 급격한 증가를 방지하는 방안이 요구될 수 있다. 일 실시예에서, 터치 입력과 같은 사용자 입력에 대한, 전자 장치의 응답 속도를 증가하게 만드는 방안이 요구될 수 있다. 상술한 바와 같은, 일 실시예에 따른, 전자 장치(electronic device)(예, 도 1의 전자 장치(101) 및/또는 도 9의 전자 장치들(901, 902))는, 인스트럭션들을 저장하기 위한 메모리(예, 도 1의 메모리(120)) 및 상기 인스트럭션들을 실행하기 위한 프로세서(예, 도 1의 프로세서(110))를 포함할 수 있다. 상기 프로세서는, 복수의 프로세스들에 기반하여 상기 인스트럭션들을 실행하는 동안, 상기 복수의 프로세스들의 상태들에 기반하여, 상기 복수의 프로세스들 각각에 대응하는 스케쥴 그룹들을 결정하도록, 구성될 수 있다. 상기 프로세서는, 상기 스케쥴 그룹들의 결정에 의하여, 상기 적어도 하나의 프로세스를, 백그라운드 내 실행을 위한 제1 스케쥴 그룹(예, 도 3의 백그라운드 스케쥴 그룹(324))에서 다른 스케쥴 그룹들로 스위칭하거나, 또는 상기 다른 스케쥴 그룹들로부터 상기 제1 스케쥴 그룹으로 스위칭하는 것에 응답하여, 상기 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 조절하도록, 구성될 수 있다. 상기 프로세서는, 상기 조절된 길이를 가지는 상기 시간 구간 내에서 상기 적어도 하나의 프로세스를 실행하도록, 구성될 수 있다. 일 실시예에 따른, 전자 장치의 프로세서는, 복수의 프로세스들에 대한 스케쥴링을 효율적으로 수행하여, 개선된 응답 속도를 가질 수 있다. 일 실시예에 따른, 전자 장치는, 프로세서의 부하를 급격한 증가를 방지하도록, 복수의 프로세스들에 대한 스케쥴링을 수행할 수 있다. 일 실시예에 따른, 전자 장치는, 터치 입력과 같은 사용자 입력을, 증가된 응답 속도에 기반하여 처리할 수 있다.
예를 들어, 상기 프로세서는, 상기 다른 스케쥴 그룹들로부터 상기 제1 스케쥴 그룹으로 스위칭된 상기 적어도 하나의 프로세스를, 백그라운드 내 실행을 위한 프로파일 정보에 대응하는 제1 프로세스 그룹으로 분류하도록, 구성될 수 있다.
예를 들어, 상기 프로세서는, 상기 제1 스케쥴 그룹으로부터 상기 다른 스케쥴 그룹들로 스위칭된 상기 적어도 하나의 프로세스를, 루트 프로세스 그룹으로 분류하도록, 구성될 수 있다.
예를 들어, 상기 프로세서는, 상기 복수의 프로세스들 각각에 할당된(assigned) 가중치들에 기반하여, 상기 복수의 프로세스들 각각을 실행하기 위하여 이용되는 시간 구간들의 길이들을 결정하도록, 구성될 수 있다. 상기 복수의 프로세스들 각각에 할당된 가중치들은, 상기 백그라운드 내 실행을 위한 상기 제1 스케쥴 그룹에 대응하는 제1 프로세스 그룹과 관련된 제1 가중치 및 상기 제1 프로세스 그룹과 상이한 제2 프로세스 그룹과 관련된 제2 가중치 중에서 선택될 수 있다.
예를 들어, 상기 프로세서는, 상기 프로세서의 사용량, 상기 전자 장치의 온도 센서에 의해 식별된 온도 또는 상기 전자 장치의 터치 센서에 기반하여 식별된 터치 입력 중 적어도 하나에 기반하여, 상기 제1 가중치를 조절하도록, 구성될 수 있다.
예를 들어, 상기 프로세서는, 상기 복수의 프로세스들 사이의 정보의 송신을 위한 요청들에 기반하여, 지정된 딜레이에 기반하여 상기 요청들 각각에 대응하는 프로세스들을 순차적으로(sequentially) 실행하도록, 구성될 수 있다.
예를 들어, 상기 프로세서는, 상기 프로세서의 사용량, 상기 전자 장치의 온도 센서에 의해 식별된 온도 또는 상기 전자 장치의 터치 센서에 기반하여 식별된 터치 이벤트 중 적어도 하나에 기반하여, 상기 지정된 딜레이를 조절하도록, 구성될 수 있다.
예를 들어, 상기 프로세서는, 인텐트 객체에 기반하는 상기 요청들을 탐지하도록, 구성될 수 있다.
예를 들어, 상기 프로세서는, 상기 복수의 프로세스들 각각에 대응하는 스케쥴 그룹들에 기반하여, 상기 복수의 프로세스들을, 백그라운드 내 실행을 위한 제1 프로세스 그룹 및 상기 제1 프로세스 그룹과 상이한 제2 프로세스 그룹 중 어느 한 그룹으로 분류하도록, 구성될 수 있다.
상술한 바와 같은, 일 실시예에 따른, 전자 장치의 방법은, 복수의 프로세스들에 기반하여 인스트럭션들을 실행하는 동안, 상기 복수의 프로세스들의 상태들에 기반하여, 상기 복수의 프로세스들 각각에 대응하는 스케쥴 그룹들을 결정하는 동작을 포함할 수 있다. 상기 방법은, 상기 스케쥴 그룹들의 결정에 의하여, 상기 적어도 하나의 프로세스를, 백그라운드 내 실행을 위한 제1 스케쥴 그룹에서 다른 스케쥴 그룹들로 스위칭하거나, 또는 상기 다른 스케쥴 그룹들로부터 상기 제1 스케쥴 그룹으로 스위칭하는 것에 응답하여, 상기 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 조절하는 동작을 포함할 수 있다. 상기 방법은, 상기 조절된 길이를 가지는 상기 시간 구간 내에서 상기 적어도 하나의 프로세스를 실행하는 동작을 포함할 수 있다.
예를 들어, 상기 방법은, 상기 다른 스케쥴 그룹들로부터 상기 제1 스케쥴 그룹으로 스위칭된 상기 적어도 하나의 프로세스를, 백그라운드 내 실행을 위한 프로파일 정보에 대응하는 제1 프로세스 그룹으로 분류하는 동작을 포함할 수 있다.
예를 들어, 상기 방법은, 상기 제1 스케쥴 그룹으로부터 상기 다른 스케쥴 그룹들로 스위칭된 상기 적어도 하나의 프로세스를, 루트 프로세스 그룹으로 분류하는 동작을 포함할 수 있다.
예를 들어, 상기 조절하는 동작은, 상기 복수의 프로세스들 각각에 할당된 가중치들에 기반하여, 상기 복수의 프로세스들 각각을 실행하기 위하여 이용되는 시간 구간들의 길이들을 결정하는 동작을 포함할 수 있다.
예를 들어, 상기 복수의 프로세스들 각각에 할당된 가중치들은, 상기 백그라운드 내 실행을 위한 제1 스케쥴 그룹에 대응하는 제1 프로세스 그룹과 관련된 제1 가중치 및 상기 제1 프로세스 그룹과 상이한 제2 프로세스 그룹과 관련된 제2 가중치 중에서 선택될 수 있다.
예를 들어, 상기 조절하는 동작은, 상기 전자 장치의 프로세서의 사용량, 상기 전자 장치의 온도 센서에 의해 식별된 온도 또는 상기 전자 장치의 터치 센서에 기반하여 식별된 터치 입력 중 적어도 하나에 기반하여, 상기 제1 가중치를 조절하는 동작을 포함할 수 있다.
예를 들어, 상기 방법은, 상기 복수의 프로세스들 사이의 정보의 송신을 위한 요청들에 기반하여, 지정된 딜레이에 기반하여 상기 요청들 각각에 대응하는 프로세스들을 순차적으로 실행하는 동작을 포함할 수 있다.
예를 들어, 상기 요청들 각각에 대응하는 프로세스들을 순차적으로 실행하는 동작은, 상기 전자 장치의 프로세서의 사용량, 상기 전자 장치의 온도 센서에 의해 식별된 온도 또는 상기 전자 장치의 터치 센서에 기반하여 식별된 터치 이벤트 중 적어도 하나에 기반하여, 상기 지정된 딜레이를 조절하는 동작을 포함할 수 있다.
예를 들어, 상기 방법은, 인텐트 객체에 기반하는 상기 요청들을 탐지하는 동작을 포함할 수 있다.
예를 들어, 상기 방법은, 상기 복수의 프로세스들 각각에 대응하는 스케쥴 그룹들에 기반하여, 상기 복수의 프로세스들을, 백그라운드 내 실행을 위한 제1 프로세스 그룹 및 상기 제1 프로세스 그룹과 상이한 제2 프로세스 그룹 중 어느 한 그룹으로 분류하는 동작을 포함할 수 있다.
상술한 바와 같은, 일 실시예에 따른, 비-일시적 컴퓨터 판독 가능 저장 매체는, 인스트럭션들을 포함할 수 있다. 상기 인스트럭션들은, 전자 장치의 프로세서에 의해 실행될 시에, 복수의 프로세스들의 상태에 기반하여, 상기 복수의 프로세스들 각각에 대응하는 스케쥴 그룹을 결정하도록, 상기 프로세서를 야기할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행될 시에, 상기 결정에 기반하여, 백그라운드 내 실행을 위한 제1 스케쥴 그룹에서 다른 스케쥴 그룹들로 스위칭되거나, 또는 상기 다른 스케쥴 그룹들로부터 상기 제1 스케쥴 그룹으로 스위칭된, 적어도 하나의 프로세스를 탐지하는 것에 응답하여, 상기 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 조절하도록, 상기 프로세서를 야기할 수 있다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행될 시에, 상기 조절된 길이를 가지는 상기 시간 구간 내에서 상기 적어도 하나의 프로세스를 실행하도록, 상기 프로세서를 야기할 수 있다.
예를 들어, 상기 인스트럭션들은, 상기 프로세서에 의해 실행될 시에, 상기 다른 스케쥴 그룹들로부터 상기 제1 스케쥴 그룹으로 스위칭된 상기 적어도 하나의 프로세스를, 백그라운드 내 실행을 위한 프로파일 정보에 대응하는 제1 프로세스 그룹으로 분류하도록, 상기 프로세서를 야기할 수 있다.
예를 들어, 상기 인스트럭션들은, 상기 프로세서에 의해 실행될 시에, 상기 제1 스케쥴 그룹으로부터 상기 다른 스케쥴 그룹들로 스위칭된 상기 적어도 하나의 프로세스를, 루트 프로세스 그룹으로 분류하도록, 상기 프로세서를 야기할 수 있다.
예를 들어, 상기 인스트럭션들은, 상기 프로세서에 의해 실행될 시에, 상기 복수의 프로세스들 각각에 할당된(assigned) 가중치들에 기반하여, 상기 복수의 프로세스들 각각을 실행하기 위하여 이용되는 시간 구간들의 길이들을 결정하도록, 상기 프로세서를 야기할 수 있다. 상기 복수의 프로세스들 각각에 할당된 가중치들은, 상기 백그라운드 내 실행을 위한 제1 스케쥴 그룹에 대응하는 제1 프로세스 그룹과 관련된 제1 가중치 및 상기 제1 프로세스 그룹과 상이한 제2 프로세스 그룹과 관련된 제2 가중치 중에서 선택될 수 있다.
예를 들어, 상기 인스트럭션들은, 상기 프로세서에 의해 실행될 시에, 상기 프로세서의 사용량, 상기 전자 장치의 온도 센서에 의해 식별된 온도 또는 상기 전자 장치의 터치 센서에 기반하여 식별된 터치 입력 중 적어도 하나에 기반하여, 상기 제1 가중치를 조절하도록, 상기 프로세서를 야기할 수 있다.
예를 들어, 상기 인스트럭션들은, 상기 프로세서에 의해 실행될 시에, 상기 복수의 프로세스들 사이의 정보의 송신을 위한 요청들에 기반하여, 지정된 딜레이에 기반하여 상기 요청들 각각에 대응하는 프로세스들을 순차적으로(sequentially) 실행하도록, 상기 프로세서를 야기할 수 있다.
예를 들어, 상기 인스트럭션들은, 상기 프로세서에 의해 실행될 시에, 상기 프로세서의 사용량, 상기 전자 장치의 온도 센서에 의해 식별된 온도 또는 상기 전자 장치의 터치 센서에 기반하여 식별된 터치 이벤트 중 적어도 하나에 기반하여, 상기 지정된 딜레이를 조절하도록, 상기 프로세서를 야기할 수 있다.
예를 들어, 상기 인스트럭션들은, 상기 프로세서에 의해 실행될 시에, 인텐트 객체에 기반하는 상기 요청들을 탐지하도록, 상기 프로세서를 야기할 수 있다.
예를 들어, 상기 인스트럭션들은, 상기 프로세서에 의해 실행될 시에, 상기 복수의 프로세스들 각각에 대응하는 스케쥴 그룹들에 기반하여, 상기 복수의 프로세스들을, 백그라운드 내 실행을 위한 제1 프로세스 그룹 및 상기 제1 프로세스 그룹과 상이한 제2 프로세스 그룹 중 어느 한 그룹으로 분류하도록, 상기 프로세서를 야기할 수 있다.
제1 예시에서, 전자 장치는 하나 이상의 저장 매체들을 포함하고, 인스트럭션들을 저장하기 위한 메모리, 및 처리 회로를 포함하는 적어도 하나의 프로세서를 포함할 수 있다. 상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가, 상기 인스트럭션들을 실행하는 동안 복수의 프로세스들 각각에 대하여, 상기 프로세스의 상태에 기반하는 복수의 미리 설정된 스케쥴 그룹들 중에서 대응하는 스케쥴 그룹을 결정하도록, 야기할 수 있다. 상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가, 상기 복수의 프로세스들 중 적어도 하나의 프로세스가 제1 프로세스 그룹으로부터 제2 프로세스 그룹으로 스위칭하거나 또는 상기 적어도 하나의 프로세스가 상기 제2 프로세스 그룹으로부터 상기 제1 프로세스 그룹으로 스위칭하는 것에 응답하여, 상기 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 재결정하도록, 야기할 수 있다. 상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가, 상기 재결정된 길이를 가지는 상기 시간 구간 내에서 상기 적어도 하나의 프로세스를 실행하도록, 야기할 수 있다. 상기 제1 프로세스 그룹은, 백그라운드 실행을 위한 프로세스들에 대응하는 스케쥴 그룹을 포함할 수 있다. 상기 제2 프로세스 그룹은, 백그라운드 실행을 위한 상기 프로세스들에 대응하는 상기 스케쥴 그룹을 제외한 다른 스케쥴 그룹들 전부를 포함할 수 있다.
제2 예시에서, 상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가, 상기 복수의 프로세스들 각각에 할당된(assigned) 가중치들에 기반하여, 상기 복수의 프로세스들 각각을 실행하기 위하여 이용되는 시간 구간들의 길이들을 결정하도록, 야기할 수 있다. 상기 제1 프로세스 그룹 내 프로세스들을 실행하기 위하여 이용되는 시간 구간들의 상기 길이들은 상기 제1 프로세스 그룹에 대응하는 제1 가중치에 기반하여 결정될 수 있다. 상기 제2 프로세스 그룹 내 프로세스들을 실행하기 위하여 이용되는 시간 구간들의 상기 길이들은 상기 제2 프로세스 그룹에 대응하는 제2 가중치에 기반하여 결정될 수 있다.
제3 예시에서, 제2 예시의 상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가, 상기 프로세서의 사용량, 상기 전자 장치의 온도 센서에 의해 식별된 온도 또는 상기 전자 장치의 터치 센서를 통하여 식별된 터치 입력 중 적어도 하나에 기반하여, 상기 제1 가중치를 조절하도록, 야기할 수 있다.
제4 예시에서, 제2 예시 또는 제3 예시의 상기 제1 가중치는 상기 제1 프로세스 그룹 내 프로세스들 각각 중에서 분할될 수 있고, 상기 제2 프로세스 그룹 내 프로세스들 각각은 상기 제2 가중치가 할당될 수 있다.
제5 예시에서, 제1 예시부터 제4 예시 중 어느 한 예시의 상기 프로세서는, 상기 적어도 하나의 프로세스가 상기 제1 프로세스 그룹으로 스위칭된 경우, 상기 제1 프로세스 그룹에 대응하는 제1 프로파일 정보에 기반하여 상기 적어도 하나의 프로세스를 스케쥴하도록, 구성될 수 있다. 상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가, 상기 적어도 하나의 프로세스가 상기 제2 프로세스 그룹으로 스위칭된 경우, 상기 제2 프로세스 그룹에 대응하는 제2 프로파일 정보에 기반하여 상기 적어도 하나의 프로세스를 스케쥴하도록, 야기할 수 있다.
제6 예시에서, 제5 예시의 상기 제1 프로파일 정보 및 상기 제2 프로파일 정보는, 메모리 대역폭; 상기 프로세서의 시간 자원 점유율; 캐시 메모리 사이즈 상한; 및 네트워크 자원 제한 중 적어도 하나를 포함할 수 있다.
제7 예시에서, 제1 예시부터 제6 예시 중 어느 하나의 상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가, 상기 복수의 프로세스들 사이의 정보의 송신을 위한 요청들에 기반하여, 지정된 딜레이에 기반하여 상기 요청들 각각에 대응하는 프로세스들을 순차적으로(sequentially) 실행하도록, 야기할 수 있다.
제8 예시에서, 제7 예시의 상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가, 상기 프로세서의 사용량, 상기 전자 장치의 온도 센서에 의해 식별된 온도 또는 상기 전자 장치의 터치 센서를 통하여 식별된 터치 이벤트 중 적어도 하나에 기반하여, 상기 지정된 딜레이를 조절하도록, 야기할 수 있다.
제9 예시에서, 제1 예시부터 제9 예시 중 어느 한 예시의 상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가, 인텐트 객체에 기반하는 상기 요청들을 탐지하도록, 야기할 수 있다.
제10 예시에서, 제1 예시부터 제9 예시 중 어느 한 예시의 상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가, 상기 적어도 하나의 프로세스가 상기 제2 스케쥴 그룹 내 스케쥴 그룹으로부터 상기 제2 스케쥴 그룹 내 다른 스케쥴 그룹으로 스위칭된 경우, 상기 적어도 하나의 프로세스의 실행을 위하여 이용되는 시간 구간의 길이를 재결정하지 않고 상기 적어도 하나의 프로세스를 실행하도록, 야기할 수 있다.
제11 예시에서, 전자 장치의 방법이 제공될 수 있다. 상기 방법은, 상기 전자 장치에서 실행될 복수의 프로세스들 각각에 대하여, 상기 프로세스의 상태에 기반하는 복수의 미리 설정된 스케쥴 그룹들 중에서 대응하는 스케쥴 그룹을 결정하는 동작을 포함할 수 있다. 상기 방법은, 상기 복수의 프로세스들 중 적어도 하나의 프로세스가 제1 프로세스 그룹으로부터 제2 프로세스 그룹으로 스위칭하거나 또는 상기 적어도 하나의 프로세스가 상기 제2 프로세스 그룹으로부터 상기 제1 프로세스 그룹으로 스위칭하는 것에 응답하여, 상기 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 재결정하는 동작을 포함할 수 있다. 상기 방법은, 상기 재결정된 길이를 가지는 상기 시간 구간 내에서 상기 적어도 하나의 프로세스를 실행하는 동작을 포함할 수 있다. 상기 제1 프로세스 그룹은, 백그라운드 실행을 위한 프로세스들에 대응하는 스케쥴 그룹을 포함할 수 있다. 상기 제2 프로세스 그룹은, 백그라운드 실행을 위한 상기 프로세스들에 대응하는 상기 스케쥴 그룹을 제외한 다른 스케쥴 그룹들 전부를 포함할 수 있다.
제12 예시에서, 제11 예시의 방법에 있어서, 시간 구간의 길이를 상기 재결정하는 동작은, 상기 복수의 프로세스들 각각에 할당된 가중치들에 기반하여, 상기 복수의 프로세스들 각각을 실행하기 위하여 이용되는 시간 구간들의 길이들을 결정하는 동작을 포함할 수 있다. 상기 제1 프로세스 그룹 내 프로세스들을 실행하기 위하여 이용되는 시간 구간들의 상기 길이들은 상기 제1 프로세스 그룹에 대응하는 제1 가중치에 기반하여 결정될 수 있다. 상기 제2 프로세스 그룹 내 프로세스들을 실행하기 위하여 이용되는 시간 구간들의 상기 길이들은 상기 제2 프로세스 그룹에 대응하는 제2 가중치에 기반하여 결정될 수 있다.
제13 예시에서, 제12 예시의 방법에서, 시간 구간의 길이를 상기 재결정하는 동작은, 상기 전자 장치의 프로세서의 사용량, 상기 전자 장치의 온도 센서에 의해 식별된 온도 또는 상기 전자 장치의 터치 센서를 통하여 식별된 터치 입력 중 적어도 하나에 기반하여, 상기 제1 가중치를 조절하는 동작을 포함할 수 있다.
제14 예시에서, 제12 예시 또는 제13 예시 중 어느 한 예시의 제1 가중치는 상기 제1 프로세스 그룹 내 프로세스들 각각 중에서 분할될 수 있다. 상기 제2 프로세스 그룹 내 프로세스들 각각은 상기 제2 가중치가 할당될 수 있다.
제15 예시에서, 제11 예시 내지 제14 예시 중 어느 한 예시의 방법은 상기 적어도 하나의 프로세스가 상기 제1 프로세스 그룹으로 스위칭된 경우, 상기 제1 프로세스 그룹에 대응하는 제1 프로파일 정보에 기반하여 상기 적어도 하나의 프로세스를 스케쥴하는 동작을 포함할 수 있다. 상기 방법은, 상기 적어도 하나의 프로세스가 상기 제2 프로세스 그룹으로 스위칭된 경우, 상기 제2 프로세스 그룹에 대응하는 제2 프로파일 정보에 기반하여 상기 적어도 하나의 프로세스를 스케쥴하는 동작을 포함할 수 있다.
제16 예시에서, 제15 예시의 제1 프로파일 정보 및 제2 프로파일 정보는, 메모리 대역폭; 상기 프로세서의 시간 자원 점유율; 캐시 메모리 사이즈 상한; 및 네트워크 자원 제한중 적어도 하나를 포함할 수 있다.
제17 예시에서, 제11 예시 내지 제16 예시 중 어느 한 예시의 방법은, 상기 복수의 프로세스들 사이의 정보의 송신을 위한 요청들에 기반하여, 지정된 딜레이에 기반하여 상기 요청들 각각에 대응하는 프로세스들을 순차적으로(sequentially) 실행하는 동작을 포함할 수 있다.
제18 예시에서, 제17 예시의 방법은, 상기 전자 장치의 상기 프로세서의 사용량, 상기 전자 장치의 온도 센서에 의해 식별된 온도 또는 상기 전자 장치의 터치 센서를 통하여 식별된 터치 이벤트 중 적어도 하나에 기반하여 상기 지정된 딜레이를 조절하는 동작을 포함할 수 있다.
제19 예시에서, 제11 예시 내지 제19 예시 중 어느 한 예시의 방법은, 인텐트 객체에 기반하여 상기 요청들을 탐지하는 동작을 포함할 수 있다.
제20 예시에서, 제11 예시 내지 제19 예시 중 어느 한 예시의 방법은, 상기 적어도 하나의 프로세스가 상기 제2 스케쥴 그룹 내 스케쥴 그룹으로부터 상기 제2 스케쥴 그룹 내 다른 스케쥴 그룹으로 스위칭된 경우, 상기 적어도 하나의 프로세스의 실행을 위하여 이용되는 시간 구간의 길이를 재결정하지 않고 상기 적어도 하나의 프로세스를 실행하는 동작을 포함할 수 있다.
제21 예시에서, 인스트럭션들을 포함하는 비-일시적 컴퓨터 판독가능 저장 매체가 제공될 수 있다. 상기 인스트럭션들은, 전자 장치의 프로세서에 의해 실행될 시, 상기 전자 장치가 제11 내지 제21 예시들 중 어느 하나의 방법을 수행하도록, 야기할 수 있다.
일 실시예에서, 인스트럭션들을 저장하는 비-일시적 컴퓨터 판독가능 저장 매체가 제공될 수 있다. 상기 인스트럭션들은, 전자 장치에 의해 실행될 시, 상기 전자 장치가, 상기 인스트럭션들을 실행하는 동안 복수의 프로세스들 각각에 대하여, 상기 프로세스의 상태에 기반하는 복수의 미리 설정된 스케쥴 그룹들 중에서 대응하는 스케쥴 그룹을 결정하도록, 야기할 수 있다. 상기 인스트럭션들은, 전자 장치에 의해 실행될 시, 상기 전자 장치가, 상기 복수의 프로세스들 중 적어도 하나의 프로세스가 제1 프로세스 그룹으로부터 제2 프로세스 그룹으로 스위칭하거나 또는 상기 적어도 하나의 프로세스가 상기 제2 프로세스 그룹으로부터 상기 제1 프로세스 그룹으로 스위칭하는 것에 응답하여, 상기 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 재결정하도록, 야기할 수 있다. 상기 인스트럭션들은, 전자 장치에 의해 실행될 시, 상기 전자 장치가, 상기 재결정된 길이를 가지는 상기 시간 구간 내에서 상기 적어도 하나의 프로세스를 실행하도록, 야기할 수 있다. 상기 제1 프로세스 그룹은, 백그라운드 실행을 위한 프로세스들에 대응하는 스케쥴 그룹을 포함할 수 있다. 상기 제2 프로세스 그룹은, 백그라운드 실행을 위한 상기 프로세스들에 대응하는 상기 스케쥴 그룹을 제외한 다른 스케쥴 그룹들 전부를 포함할 수 있다.
이상에서 설명된 장치는 하드웨어 구성요소, 소프트웨어 구성요소, 및/또는 하드웨어 구성요소 및 소프트웨어 구성요소의 조합으로 구현될 수 있다. 예를 들어, 실시예들에서 설명된 장치 및 구성요소는, 프로세서, 콘트롤러, ALU(arithmetic logic unit), 디지털 신호 프로세서(digital signal processor), 마이크로컴퓨터, FPGA(field programmable gate array), PLU(programmable logic unit), 마이크로프로세서, 또는 명령(instruction)을 실행하고 응답할 수 있는 다른 어떠한 장치와 같이, 하나 이상의 범용 컴퓨터 또는 특수 목적 컴퓨터를 이용하여 구현될 수 있다. 처리 장치는 운영 체제(OS) 및 상기 운영 체제 상에서 수행되는 하나 이상의 소프트웨어 어플리케이션을 수행할 수 있다. 또한, 처리 장치는 소프트웨어의 실행에 응답하여, 데이터를 접근, 저장, 조작, 처리 및 생성할 수도 있다. 이해의 편의를 위하여, 처리 장치는 하나가 사용되는 것으로 설명된 경우도 있지만, 해당 기술분야에서 통상의 지식을 가진 자는, 처리 장치가 복수 개의 처리 요소(processing element) 및/또는 복수 유형의 처리 요소를 포함할 수 있음을 알 수 있다. 예를 들어, 처리 장치는 복수 개의 프로세서 또는 하나의 프로세서 및 하나의 콘트롤러를 포함할 수 있다. 또한, 병렬 프로세서(parallel processor)와 같은, 다른 처리 구성(processing configuration)도 가능하다.
소프트웨어는 컴퓨터 프로그램(computer program), 코드(code), 명령(instruction), 또는 이들 중 하나 이상의 조합을 포함할 수 있으며, 원하는 대로 동작하도록 처리 장치를 구성하거나 독립적으로 또는 결합적으로(collectively) 처리 장치를 명령할 수 있다. 소프트웨어 및/또는 데이터는, 처리 장치에 의하여 해석되거나 처리 장치에 명령 또는 데이터를 제공하기 위하여, 어떤 유형의 기계, 구성요소(component), 물리적 장치, 컴퓨터 저장 매체 또는 장치에 구체화(embody)될 수 있다. 소프트웨어는 네트워크로 연결된 컴퓨터 시스템 상에 분산되어서, 분산된 방법으로 저장되거나 실행될 수도 있다. 소프트웨어 및 데이터는 하나 이상의 컴퓨터 판독 가능 기록 매체에 저장될 수 있다.
실시예에 따른 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 이때, 매체는 컴퓨터로 실행 가능한 프로그램을 계속 저장하거나, 실행 또는 다운로드를 위해 임시 저장하는 것일 수도 있다. 또한, 매체는 단일 또는 수 개의 하드웨어가 결합된 형태의 다양한 기록수단 또는 저장수단일 수 있는데, 어떤 컴퓨터 시스템에 직접 접속되는 매체에 한정되지 않고, 네트워크 상에 분산 존재하는 것일 수도 있다. 매체의 예시로는, 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체, CD-ROM 및 DVD와 같은 광기록 매체, 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical medium), 및 ROM, RAM, 플래시 메모리 등을 포함하여 프로그램 명령어가 저장되도록 구성된 것이 있을 수 있다. 또한, 다른 매체의 예시로, 어플리케이션을 유통하는 앱 스토어나 기타 다양한 소프트웨어를 공급 내지 유통하는 사이트, 서버 등에서 관리하는 기록매체 내지 저장매체도 들 수 있다.
이상과 같이 실시예들이 비록 한정된 실시예와 도면에 의해 설명되었으나, 해당 기술분야에서 통상의 지식을 가진 자라면 상기의 기재로부터 다양한 수정 및 변형이 가능하다. 예를 들어, 설명된 기술들이 설명된 방법과 다른 순서로 수행되거나, 및/또는 설명된 시스템, 구조, 장치, 회로 등의 구성요소들이 설명된 방법과 다른 형태로 결합 또는 조합되거나, 다른 구성요소 또는 균등물에 의하여 대치되거나 치환되더라도 적절한 결과가 달성될 수 있다.
그러므로, 다른 구현들, 다른 실시예들 및 특허청구범위와 균등한 것들도 후술하는 특허청구범위의 범위에 속한다.
Claims (15)
- 전자 장치(electronic device)(101; 901, 902)에 있어서,하나 이상의 저장 매체들을 포함하고, 인스트럭션들을 저장하기 위한 메모리(120); 및처리 회로를 포함하는 적어도 하나의 프로세서(110)를 포함하고,상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가,상기 인스트럭션들을 실행하는 동안 복수의 프로세스들 각각에 대하여, 상기 프로세스의 상태에 기반하는 복수의 미리 설정된 스케쥴 그룹들 중에서 대응하는 스케쥴 그룹을 결정하고;상기 복수의 프로세스들 중 적어도 하나의 프로세스가 제1 프로세스 그룹으로부터 제2 프로세스 그룹으로 스위칭하거나 또는 상기 적어도 하나의 프로세스가 상기 제2 프로세스 그룹으로부터 상기 제1 프로세스 그룹으로 스위칭하는 것에 응답하여, 상기 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 재결정하고; 및상기 재결정된 길이를 가지는 상기 시간 구간 내에서 상기 적어도 하나의 프로세스를 실행하도록, 야기하고,상기 제1 프로세스 그룹은, 백그라운드 실행을 위한 프로세스들에 대응하는 스케쥴 그룹을 포함하고, 및상기 제2 프로세스 그룹은, 백그라운드 실행을 위한 상기 프로세스들에 대응하는 상기 스케쥴 그룹을 제외한 다른 스케쥴 그룹들 전부를 포함하는,전자 장치.
- 청구항 1에 있어서, 상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가,상기 복수의 프로세스들 각각에 할당된(assigned) 가중치들에 기반하여, 상기 복수의 프로세스들 각각을 실행하기 위하여 이용되는 시간 구간들의 길이들을 더 결정하도록, 야기하고;상기 제1 프로세스 그룹 내 프로세스들을 실행하기 위하여 이용되는 시간 구간들의 상기 길이들은 상기 제1 프로세스 그룹에 대응하는 제1 가중치에 기반하여 결정되고; 및상기 제2 프로세스 그룹 내 프로세스들을 실행하기 위하여 이용되는 시간 구간들의 상기 길이들은 상기 제2 프로세스 그룹에 대응하는 제2 가중치에 기반하여 결정되는,전자 장치.
- 청구항 2에 있어서, 상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가,상기 프로세서의 사용량, 상기 전자 장치의 온도 센서에 의해 식별된 온도 또는 상기 전자 장치의 터치 센서를 통하여 식별된 터치 입력 중 적어도 하나에 기반하여, 상기 제1 가중치를 더 조절하도록, 야기하는,전자 장치.
- 청구항 2 내지 청구항 3에 있어서, 상기 제1 가중치는 상기 제1 프로세스 그룹 내 프로세스들 각각 중에서 분할되고; 및상기 제2 프로세스 그룹 내 프로세스들 각각은 상기 제2 가중치가 할당되는,전자 장치.
- 청구항 1 내지 청구항 4 중 어느 한 항에 있어서, 상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가,상기 적어도 하나의 프로세스가 상기 제1 프로세스 그룹으로 스위칭된 경우, 상기 제1 프로세스 그룹에 대응하는 제1 프로파일 정보에 기반하여 상기 적어도 하나의 프로세스를 스케쥴하고; 및상기 적어도 하나의 프로세스가 상기 제2 프로세스 그룹으로 스위칭된 경우, 상기 제2 프로세스 그룹에 대응하는 제2 프로파일 정보에 기반하여 상기 적어도 하나의 프로세스를 스케쥴하도록, 야기하는,전자 장치.
- 청구항 5에 있어서, 상기 제1 프로파일 정보 및 상기 제2 프로파일 정보는:메모리 대역폭;상기 프로세서의 시간 자원 점유율;캐시 메모리 사이즈 상한; 및네트워크 자원 제한중 적어도 하나를 포함하는,전자 장치.
- 청구항 1 내지 청구항 6 중 어느 하나에 있어서, 상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가,상기 복수의 프로세스들 사이의 정보의 송신을 위한 요청들에 기반하여, 지정된 딜레이에 기반하여 상기 요청들 각각에 대응하는 프로세스들을 순차적으로(sequentially) 실행하도록, 야기하는,전자 장치.
- 청구항 7에 있어서, 상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가,상기 프로세서의 사용량, 상기 전자 장치의 온도 센서에 의해 식별된 온도 또는 상기 전자 장치의 터치 센서를 통하여 식별된 터치 이벤트 중 적어도 하나에 기반하여, 상기 지정된 딜레이를 조절하도록, 야기하는,전자 장치.
- 청구항 7 또는 청구항 8에 있어서, 상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가,인텐트 객체에 기반하는 상기 요청들을 탐지하도록, 야기하는,전자 장치.
- 청구항 1 내지 청구항 9 중 어느 하나에 있어서, 상기 인스트럭션들은, 상기 적어도 하나의 프로세서에 의해 개별적으로 또는 집합적으로 실행될 시, 상기 전자 장치가,상기 적어도 하나의 프로세스가 상기 제2 스케쥴 그룹 내 스케쥴 그룹으로부터 상기 제2 스케쥴 그룹 내 다른 스케쥴 그룹으로 스위칭된 경우, 상기 적어도 하나의 프로세스의 실행을 위하여 이용되는 시간 구간의 길이를 재결정하지 않고 상기 적어도 하나의 프로세스를 실행하도록, 야기하는,전자 장치.
- 전자 장치의 방법에 있어서,상기 전자 장치에서 실행될 복수의 프로세스들 각각에 대하여, 상기 프로세스의 상태에 기반하는 복수의 미리 설정된 스케쥴 그룹들 중에서 대응하는 스케쥴 그룹을 결정하는 동작;상기 복수의 프로세스들 중 적어도 하나의 프로세스가 제1 프로세스 그룹으로부터 제2 프로세스 그룹으로 스위칭하거나 또는 상기 적어도 하나의 프로세스가 상기 제2 프로세스 그룹으로부터 상기 제1 프로세스 그룹으로 스위칭하는 것에 응답하여, 상기 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 재결정하는 동작; 및상기 재결정된 길이를 가지는 상기 시간 구간 내에서 상기 적어도 하나의 프로세스를 실행하는 동작을 포함하고,상기 제1 프로세스 그룹은, 백그라운드 실행을 위한 프로세스들에 대응하는 스케쥴 그룹을 포함하고, 및상기 제2 프로세스 그룹은, 백그라운드 실행을 위한 상기 프로세스들에 대응하는 상기 스케쥴 그룹을 제외한 다른 스케쥴 그룹들 전부를 포함하는,방법.
- 청구항 11에 있어서, 시간 구간의 길이를 상기 재결정하는 동작은,상기 복수의 프로세스들 각각에 할당된 가중치들에 기반하여, 상기 복수의 프로세스들 각각을 실행하기 위하여 이용되는 시간 구간들의 길이들을 결정하는 동작을 포함하고,상기 제1 프로세스 그룹 내 프로세스들을 실행하기 위하여 이용되는 시간 구간들의 상기 길이들은 상기 제1 프로세스 그룹에 대응하는 제1 가중치에 기반하여 결정되고; 및상기 제2 프로세스 그룹 내 프로세스들을 실행하기 위하여 이용되는 시간 구간들의 상기 길이들은 상기 제2 프로세스 그룹에 대응하는 제2 가중치에 기반하여 결정되는,방법.
- 청구항 12에 있어서, 시간 구간의 길이를 상기 재결정하는 동작은,상기 전자 장치의 프로세서의 사용량, 상기 전자 장치의 온도 센서에 의해 식별된 온도 또는 상기 전자 장치의 터치 센서를 통하여 식별된 터치 입력 중 적어도 하나에 기반하여, 상기 제1 가중치를 조절하는 동작을 포함하는,방법.
- 청구항 11 내지 청구항 13 중 어느 한 항에 있어서,상기 복수의 프로세스들 사이의 정보의 송신을 위한 요청들에 기반하여, 지정된 딜레이에 기반하여 상기 요청들 각각에 대응하는 프로세스들을 순차적으로(sequentially) 실행하는 동작을 더 포함하고;상기 지정된 딜레이는, 상기 프로세서의 사용량, 상기 전자 장치의 온도 센서에 의해 식별된 온도 또는 상기 전자 장치의 터치 센서를 통하여 식별된 터치 이벤트 중 적어도 하나에 기반하여 조절되고; 및상기 요청들은 인텐트 객체에 기반하여 탐지되는,방법.
- 인스트럭션들을 저장하는 비-일시적 컴퓨터 판독가능 저장 매체에 있어서, 상기 인스트럭션들은, 전자 장치에 의해 실행될 시, 상기 전자 장치가,상기 인스트럭션들을 실행하는 동안 복수의 프로세스들 각각에 대하여, 상기 프로세스의 상태에 기반하는 복수의 미리 설정된 스케쥴 그룹들 중에서 대응하는 스케쥴 그룹을 결정하고;상기 복수의 프로세스들 중 적어도 하나의 프로세스가 제1 프로세스 그룹으로부터 제2 프로세스 그룹으로 스위칭하거나 또는 상기 적어도 하나의 프로세스가 상기 제2 프로세스 그룹으로부터 상기 제1 프로세스 그룹으로 스위칭하는 것에 응답하여, 상기 적어도 하나의 프로세스의 실행을 위해 이용되는 시간 구간의 길이를 재결정하고; 및상기 재결정된 길이를 가지는 상기 시간 구간 내에서 상기 적어도 하나의 프로세스를 실행하도록, 야기하고,상기 제1 프로세스 그룹은, 백그라운드 실행을 위한 프로세스들에 대응하는 스케쥴 그룹을 포함하고, 및상기 제2 프로세스 그룹은, 백그라운드 실행을 위한 상기 프로세스들에 대응하는 상기 스케쥴 그룹을 제외한 다른 스케쥴 그룹들 전부를 포함하는,비-일시적 컴퓨터 판독가능 저장 매체.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP24755473.6A EP4538879A4 (en) | 2023-08-22 | 2024-08-19 | ELECTRONIC PROCESS EXECUTION CONTROL DEVICE AND ASSOCIATED METHOD |
Applications Claiming Priority (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| KR20230110184 | 2023-08-22 | ||
| KR10-2023-0110184 | 2023-08-22 | ||
| KR1020230113173A KR20250028932A (ko) | 2023-08-22 | 2023-08-28 | 프로세스의 실행을 제어하기 위한 전자 장치 및 그 방법 |
| KR10-2023-0113173 | 2023-08-28 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2025042164A1 true WO2025042164A1 (ko) | 2025-02-27 |
Family
ID=92593336
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/KR2024/012279 Pending WO2025042164A1 (ko) | 2023-08-22 | 2024-08-19 | 프로세스의 실행을 제어하기 위한 전자 장치 및 그 방법 |
Country Status (2)
| Country | Link |
|---|---|
| EP (1) | EP4538879A4 (ko) |
| WO (1) | WO2025042164A1 (ko) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6052707A (en) * | 1993-09-21 | 2000-04-18 | Microsoft Corporation | Preemptive multi-tasking with cooperative groups of tasks |
| JP2006172229A (ja) * | 2004-12-16 | 2006-06-29 | Nec Corp | タスクの動作制御方法、タスクの動作制御システムおよびプログラム |
| KR20170108636A (ko) * | 2016-03-18 | 2017-09-27 | 삼성전자주식회사 | 태스크 스케줄링 방법 및 이를 구현한 전자 장치 |
| US20210141667A1 (en) * | 2019-11-12 | 2021-05-13 | Fujitsu Limited | Information processing apparatus, job scheduling method, and non-transitory computer-readable storage medium |
| CN114385337A (zh) * | 2022-01-10 | 2022-04-22 | 杭州电子科技大学 | 一种用于分布式工作流系统的任务分组调度方法 |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105320570B (zh) * | 2015-11-09 | 2019-01-29 | 深圳市万普拉斯科技有限公司 | 资源管理方法和系统 |
| CN113849284B (zh) * | 2021-08-19 | 2025-06-17 | Oppo广东移动通信有限公司 | 任务运行方法、装置、存储介质以及终端 |
-
2024
- 2024-08-19 EP EP24755473.6A patent/EP4538879A4/en active Pending
- 2024-08-19 WO PCT/KR2024/012279 patent/WO2025042164A1/ko active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6052707A (en) * | 1993-09-21 | 2000-04-18 | Microsoft Corporation | Preemptive multi-tasking with cooperative groups of tasks |
| JP2006172229A (ja) * | 2004-12-16 | 2006-06-29 | Nec Corp | タスクの動作制御方法、タスクの動作制御システムおよびプログラム |
| KR20170108636A (ko) * | 2016-03-18 | 2017-09-27 | 삼성전자주식회사 | 태스크 스케줄링 방법 및 이를 구현한 전자 장치 |
| US20210141667A1 (en) * | 2019-11-12 | 2021-05-13 | Fujitsu Limited | Information processing apparatus, job scheduling method, and non-transitory computer-readable storage medium |
| CN114385337A (zh) * | 2022-01-10 | 2022-04-22 | 杭州电子科技大学 | 一种用于分布式工作流系统的任务分组调度方法 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4538879A4 * |
Also Published As
| Publication number | Publication date |
|---|---|
| EP4538879A1 (en) | 2025-04-16 |
| EP4538879A4 (en) | 2025-12-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2022154379A1 (ko) | 전자 장치 및 밝기 조절 방법 | |
| WO2022103019A1 (ko) | 전자 장치 및 전자 장치의 어플리케이션 실행 방법 | |
| WO2022119053A1 (ko) | 어플리케이션을 프리로드하는 방법 및 이를 지원하는 전자 장치 | |
| WO2023153752A1 (ko) | 태스크에 메모리 자원을 할당하는 전자 장치 및 전자 장치의 동작 방법 | |
| WO2022196889A1 (ko) | 멀티 프로세서를 포함하는 전자 장치 및 그 운용 방법 | |
| WO2024191052A1 (ko) | 절전 기능에 관한 사용자 인터페이스를 제공하기 위한 전자 장치 및 그 동작 방법 | |
| WO2022154264A1 (ko) | 전자 장치 및 전자 장치의 동작 방법 | |
| WO2025042164A1 (ko) | 프로세스의 실행을 제어하기 위한 전자 장치 및 그 방법 | |
| WO2024053910A1 (ko) | 기계학습 모델에 적합한 가속기를 선택하는 장치 및 방법 | |
| WO2024043464A1 (ko) | 프로세서에 포함된 각각의 회로들의 주파수들을 조절하기 위한 전자 장치, 방법, 및 컴퓨터 판독 가능 저장 매체 | |
| WO2022177162A1 (ko) | 어플리케이션의 모델 파일을 초기화하는 프로세서 및 이를 포함하는 전자 장치 | |
| WO2022080636A1 (ko) | 전자 장치 및 그 제어 방법 | |
| WO2021256717A1 (ko) | 데이터 스와핑 방법 및 이를 지원하는 전자 장치 | |
| WO2021085996A1 (ko) | 신경망의 커널들을 정렬하는 전자 장치 및 이의 동작 방법 | |
| WO2025037842A1 (ko) | 소프트웨어 어플리케이션의 실행을 유지하기 위한 전자 장치, 방법, 및 컴퓨터 판독 가능 저장 매체 | |
| WO2024196109A1 (ko) | 디스플레이 상에 표시된 포인터의 이동을 유지하기 위한 전자 장치 및 방법 | |
| WO2025216414A1 (ko) | 렌더링을 위한 프로세스를 식별하는 전자 장치, 방법, 및 비-일시적 컴퓨터 판독 가능 기록 매체 | |
| WO2024071707A1 (ko) | 어플리케이션을 컴파일하기 위해 이용되는 정보를 획득하기 위한 전자 장치 및 그 방법 | |
| WO2024076068A1 (ko) | 복수의 프로세스들의 릴리즈를 제어하기 위한 전자 장치 및 그 방법 | |
| WO2026059416A1 (ko) | 전자 장치에게 리소스를 할당하는 시스템 및 방법 | |
| WO2024177484A1 (ko) | 뉴럴 네트워크의 기능을 실행하는 코어를 선택하기 위한 전자 장치 및 그 방법 | |
| WO2024158199A1 (ko) | 전자 장치 및 전자 장치의 성능 변화 감지 방법 | |
| WO2024014695A1 (ko) | 상호작용에 의해 획득된 순서에 기반하여 패키지들을 컴파일하는 전자 장치 및 방법 | |
| KR20240048432A (ko) | 복수의 프로세스들의 릴리즈를 제어하기 위한 전자 장치 및 그 방법 | |
| WO2026071395A1 (ko) | 디스플레이의 밝기를 제어하기 위한 전자 장치, 방법, 및 비일시적 컴퓨터 판독가능 저장 매체 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| ENP | Entry into the national phase |
Ref document number: 2024755473 Country of ref document: EP Effective date: 20240823 |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24755473 Country of ref document: EP Kind code of ref document: A1 |
|
| WWP | Wipo information: published in national office |
Ref document number: 2024755473 Country of ref document: EP |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |

