Search

EP-4738114-A1 - ELECTRONIC DEVICE AND METHOD FOR RESOURCE MANAGEMENT

EP4738114A1EP 4738114 A1EP4738114 A1EP 4738114A1EP-4738114-A1

Abstract

An electronic device according to an embodiment of the disclosure may, in response to execution of an application being requested, identify at least one service associated with the application, determine a first scheduling policy and a second scheduling policy to be applied to at least one process associated with the at least one service, apply the first scheduling policy corresponding to a higher scheduling priority, of the first scheduling policy and the second scheduling policy, to the at least one process, and release the first scheduling policy and apply the second scheduling policy to the at least one process in response to generation of an application process executing the application.

Inventors

  • KANG, Kyungmin
  • KIM, Iksoon
  • CHAE, Changhyeon
  • CHOI, YOUNGHO
  • KANG, BYUNGKWON

Assignees

  • Samsung Electronics Co., Ltd.

Dates

Publication Date
20260506
Application Date
20240913

Claims (15)

  1. An electronic device, comprising: memory storing at least one program; and at least one processor, comprising processing circuitry, electrically connected to the memory and configured to execute at least one instruction of a program stored in the memory, wherein at least one processor, individually and/or collectively, is configured to: in response to execution of an application being requested, identify at least one service associated with the application; determine a first scheduling policy and a second scheduling policy to be applied to at least one process associated with the at least one service; apply the first scheduling policy corresponding to a higher scheduling priority, of the first scheduling policy and the second scheduling policy, to the at least one process; and in response to generation of an application process executing the application, release the first scheduling policy and apply the second scheduling policy to the at least one process.
  2. The electronic device of claim 1, wherein the first scheduling policy includes a policy preferentially allocating a first resource to the at least one process, wherein the second scheduling policy includes a policy allocating a second resource to the at least one process based on a set resource allocation ratio, and wherein the set resource allocation ratio corresponds to at least one control group including the at least one process among a plurality of control groups.
  3. The electronic device of claim 1, wherein at least one processor, individually and/or collectively, is configured to: in response to the generation of the application process, apply the first scheduling policy to the application process; and in response to a lapse of a set time from a time when the first scheduling policy is applied to the application process, release the first scheduling policy applied to the application process and apply the second scheduling policy to the application process.
  4. The electronic device of claim 1, wherein at least one processor, individually and/or collectively, is configured to: in response to a need for communication between processes at a specified time, identify a first process, including a communication request process, and a second process, including a communication response process; compare a first scheduling priority of the first process with a second scheduling priority of the second process; and inherit the first scheduling priority to the second process in response to the first scheduling priority being higher than the second scheduling priority.
  5. The electronic device of claim 4, wherein the first process corresponds to the application process, and the second process corresponds to any one of the at least one process.
  6. The electronic device of claim 4, wherein at least one processor, individually and/or collectively, is configured to: determine whether a set time elapses from a time when the first scheduling priority is inherited to the second process; and release the inheritance of the first scheduling priority for the second process in response to the lapse of the set time.
  7. The electronic device of claim 4, wherein the first scheduling priority is determined to preferentially allocate a first resource to the first process based on the first scheduling policy, and wherein the second scheduling priority is determined to allocate a second resource corresponding to a set resource allocation ratio to the second process based on the second scheduling policy.
  8. The electronic device of claim 4, wherein the second process is registered as a priority inheritance target process.
  9. The electronic device of claim 4, wherein at least one processor, individually and/or collectively, is configured to: in response to identifying a plurality of first processes, identify a third scheduling priority corresponding to a highest priority among respective scheduling priorities of the first processes; compare the third scheduling priority with the second scheduling priority of the second process; and inherit the third scheduling priority to the second process in response to the third scheduling priority being higher than the second scheduling priority.
  10. A method for managing a resource by an electronic device, the method comprising: in response to execution of an application being requested, identifying at least one service associated with the application; determining a first scheduling policy and a second scheduling policy to be applied to at least one process associated with the at least one service; applying the first scheduling policy corresponding to a higher scheduling priority, of the first scheduling policy and the second scheduling policy, to the at least one process; and in response to generation of an application process executing the application, releasing the first scheduling policy and applying the second scheduling policy to the at least one process.
  11. The method of claim 10, wherein the first scheduling policy includes a policy preferentially allocating a first resource to the at least one process, wherein the second scheduling policy includes a policy allocating a second resource to the at least one process based on a set resource allocation ratio, and wherein the set resource allocation ratio corresponds to at least one control group including the at least one process among a plurality of control groups.
  12. The method of claim 10, further comprising: in response to the generation of the application process, applying the first scheduling policy to the application process; and in response to a lapse of a set time from a time when the first scheduling policy is applied to the application process, releasing the first scheduling policy applied to the application process and applying the second scheduling policy to the application process.
  13. The method of claim 10, further comprising: in response to a need for communication between processes at a specified time, identifying a first process, including a communication request process, and a second process, including a communication response process; comparing a first scheduling priority of the first process with a second scheduling priority of the second process; and inheriting the first scheduling priority to the second process in response to the first scheduling priority being higher than the second scheduling priority.
  14. The method of claim 13, further comprising: determining whether a set time elapses from a time when the first scheduling priority is inherited to the second process; and releasing the inheritance of the first scheduling priority for the second process in response to the lapse of the set time.
  15. The method of claim 13, further comprising: in response to identifying a plurality of the first processes, identifying a third scheduling priority corresponding to a highest priority among respective scheduling priorities of the first processes; comparing the third scheduling priority with the second scheduling priority of the second process; and inheriting the third scheduling priority to the second process in response to the third scheduling priority being higher than the second scheduling priority.

Description

BACKGROUND [Technical Field] The disclosure relates to an electronic device and method for managing resources. [Background Art] As technology develops and advances, electronic devices may provide various functions in addition to existing functions. For example, a television (TV) may not only display broadcasting channels but may also provide functions (or capabilities) to execute applications, access websites, or communicate with other electronic devices. A user may turn on the TV and run an application. For example, after the TV is turned on, an application that provides over-the-top (OTT) services by entering keys on the remote control may be executed. The execution of an application based on the user's key input may be performed at varying speeds (e.g., quickly or slowly) based on the booting performance for displaying the first screen when the TV is turned on and the execution performance of the application. [Disclosure] [Technical Problem] Generally, in an electronic device, as the booting performance for displaying the first screen when the TV is turned on increases, the execution performance of the application may decrease, and conversely, as the booting performance decreases, the execution performance of the application may increase. Therefore, there is a need for a method for increasing application execution performance while maintaining booting performance. Meanwhile, if resource management is not performed properly in the electronic device, central processing unit (CPU) contention or priority inversion may occur between processes associated with the application. CPU contention refers to competing for CPU resources between processes, and priority inversion refers to a situation in which the execution of a low-priority process is delayed, resulting in a delay in the execution of the associated high-priority process. CPU contention and priority inversion may delay application execution. Therefore, there is a need for resource management technology that may execute applications more quickly while preventing/reducing the above issues. [Technical Solution] An embodiment of the disclosure may provide an electronic device and method for managing resources. An embodiment of the disclosure may provide an electronic device and method that may more quickly execute an application selected by the user after cold booting. An embodiment of the disclosure may provide an electronic device and method that may enhance CPU contention or priority inversion. An electronic device according to an example embodiment of the disclosure may comprise: memory storing at least one program and at least one processor, comprising processing circuitry, electrically connected to the memory and configured to execute at least one instruction of a program stored in the memory. At least one processor may, individually and/or collectively, be configured to: in response to execution of an application being requested, identify at least one service associated with the application, determine a first scheduling policy and a second scheduling policy to be applied to at least one process associated with the at least one service, apply the first scheduling policy corresponding to a higher scheduling priority, of the first scheduling policy and the second scheduling policy, to the at least one process, and, in response to generation of an application process executing the application, release the first scheduling policy and applies the second scheduling policy to the at least one process. According to an example embodiment, the first scheduling policy may include a policy preferentially allocating a first resource to the at least one process. The second scheduling policy may include a policy allocating a second resource to the at least one process based on a set resource allocation ratio. The set resource allocation ratio may correspond to at least one control group including the at least one process among a plurality of control groups. According to an example embodiment, at least one processor, individually and/or collectively, may be configured to:, in response to the generation of the application process, apply the first scheduling policy to the application process and, in response to a lapse of a set time from a time when the first scheduling policy is applied to the application process, release the first scheduling policy applied to the application process and apply the second scheduling policy to the application process. According to an example embodiment, at least one processor, individually and/or collectively, may be configured to: in response to a need for communication between processes at a predetermined time, identify a first process including a communication request process among the processes, and a second process including a communication response process among the processes, compare a first scheduling priority of the first process with a second scheduling priority of the second process, and inherit the first scheduling priority t