KR20240048432A - Electronic device for controlling release of plurality of processes and method thereof - Google Patents

Electronic device for controlling release of plurality of processes and method thereof Download PDF

Info

Publication number
KR20240048432A
KR20240048432A KR1020220143181A KR20220143181A KR20240048432A KR 20240048432 A KR20240048432 A KR 20240048432A KR 1020220143181 A KR1020220143181 A KR 1020220143181A KR 20220143181 A KR20220143181 A KR 20220143181A KR 20240048432 A KR20240048432 A KR 20240048432A
Authority
KR
South Korea
Prior art keywords
electronic device
state
processor
processes
executed
Prior art date
Application number
KR1020220143181A
Other languages
Korean (ko)
Inventor
이동욱
권지만
박재현
백건희
조대현
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to PCT/KR2023/014573 priority Critical patent/WO2024076068A1/en
Publication of KR20240048432A publication Critical patent/KR20240048432A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked
    • G06F9/4831Task transfer initiation or dispatching by interrupt, e.g. masked with variable priority
    • G06F9/4837Task transfer initiation or dispatching by interrupt, e.g. masked with variable priority time dependent
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5077Logical partitioning of resources; Management or configuration of virtualized resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5022Workload threshold

Landscapes

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

Abstract

일 실시 예에 따른, 전자 장치는, 제1 어플리케이션의 실행에 기반하여, 상기 제1 어플리케이션과 상이한 복수의 어플리케이션들의 실행을 위한 지정된 이벤트를 식별할 수 있다. 상기 전자 장치는, 상기 지정된 이벤트의 식별에 기반하여, 메모리 내에 복수의 영역들을 형성하고, 상기 복수의 영역들을 이용하여 복수의 프로세스들을 실행할 수 있다. 상기 전자 장치는, 상기 복수의 프로세스들 중 적어도 하나가 실행되는 동안, 상기 메모리로 액세스하는 상기 복수의 프로세스들에 의해 야기된 지연을 나타내는 파라미터를 식별할 수 있다. 상기 전자 장치는, 지정된 파라미터를 초과하는 상기 파라미터를 식별하는 것에 기반하여, 상기 메모리 내에 프로세서에 의해 실행되는 제1 상태와 상이한 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절할 수 있다. 상기 전자 장치는, 상기 복수의 프로세스들 중에서, 상기 제2 상태로 스위칭되는 프로세서를 식별하는 것에 기반하여, 상기 조절된 임계치에 기반하여, 상기 복수의 영역들 중에서, 상기 제2 상태로 스위칭된 상기 프로세스에 의해 점유된 일 영역을 릴리즈할 수 있다. According to one embodiment, based on the execution of the first application, the electronic device may identify a designated event for execution of a plurality of applications different from the first application. The electronic device may form a plurality of areas in a memory based on the identification of the designated event and execute a plurality of processes using the plurality of areas. The electronic device may identify a parameter indicating a delay caused by the plurality of processes accessing the memory while at least one of the plurality of processes is executing. The electronic device may adjust a threshold used to maintain a process in the memory in a second state that is different from the first state executed by the processor, based on identifying the parameter that exceeds a specified parameter. The electronic device, based on identifying a processor switching to the second state among the plurality of processes, based on the adjusted threshold, determines the processor switching to the second state among the plurality of regions. An area occupied by a process can be released.

Description

복수의 프로세스들의 릴리즈를 제어하기 위한 전자 장치 및 그 방법{ELECTRONIC DEVICE FOR CONTROLLING RELEASE OF PLURALITY OF PROCESSES AND METHOD THEREOF} Electronic device and method for controlling the release of a plurality of processes {ELECTRONIC DEVICE FOR CONTROLLING RELEASE OF PLURALITY OF PROCESSES AND METHOD THEREOF}

아래의 설명들은, 복수의 프로세스들의 릴리즈를 제어하기 위한 전자 장치 및 그 방법에 관한 것이다. The descriptions below relate to an electronic device and method for controlling the release of a plurality of processes.

어플리케이션은, 모바일, 스마트 TV, 및/또는 사물인터넷(internet of things, IoT)을 포함하는 스마트 플랫폼에서 사용되는 프로그램을 포함할 수 있다. 전자 장치는, 어플리케이션을 실행할 때, 어플리케이션과 관련된 프로세스를 실행할 수 있다. 전자 장치는, 프로세스의 실행에 필요한 리소스를, 메모리 내에 저장할 수 있다. 예를 들어, 메모리의 일부분이, 프로세스의 실행을 위해 점유될 수 있다. Applications may include programs used on smart platforms, including mobile devices, smart TVs, and/or the Internet of Things (IoT). When an electronic device executes an application, it may execute a process related to the application. An electronic device can store resources necessary for execution of a process in its memory. For example, a portion of memory may be occupied for the execution of a process.

일 실시 예(an embodiment)에 따른, 전자 장치(electronic device)는, 메모리, 및 프로세서를 포함할 수 있다. 상기 프로세서는, 제1 어플리케이션의 실행에 기반하여, 상기 제1 어플리케이션과 상이한 복수의 어플리케이션들의 실행을 위한 지정된 이벤트를 식별할 수 있다. 상기 프로세서는, 상기 지정된 이벤트의 식별에 기반하여, 복수의 프로세스들을 실행할 수 있다. 상기 프로세서는, 상기 복수의 프로세스들 중 적어도 하나가 실행되는 동안, 상기 메모리로 액세스하는 상기 복수의 프로세스들에 의해 야기된 지연을 나타내는 파라미터를 식별할 수 있다. 상기 프로세서는, 지정된 파라미터를 초과하는 상기 파라미터를 식별하는 것에 기반하여, 상기 메모리 내에 상기 프로세서에 의해 실행되는 제1 상태와 상이한 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절할 수 있다. 상기 프로세서는, 상기 복수의 프로세스들 중에서, 상기 제2 상태로 스위칭되는 프로세스를 식별하는 것에 기반하여, 상기 조절된 임계치에 기반하여, 상기 복수의 프로세스들의 실행에 의해 점유된 복수의 영역들 중에서 상기 제2 상태로 스위칭된 상기 프로세스에 의해 점유된 일 영역(an area)을 릴리즈할 수 있다. According to an embodiment, an electronic device may include memory and a processor. The processor may identify a designated event for execution of a plurality of applications different from the first application, based on execution of the first application. The processor may execute a plurality of processes based on the identification of the designated event. The processor may identify a parameter indicating a delay caused by the plurality of processes accessing the memory while at least one of the plurality of processes is executing. The processor may adjust a threshold used to maintain a process in the memory in a second state that is different from the first state being executed by the processor, based on identifying the parameter exceeding a specified parameter. Based on identifying, among the plurality of processes, a process switching to the second state, the processor, based on the adjusted threshold, selects the region among the plurality of regions occupied by execution of the plurality of processes. An area occupied by the process may be released when switched to the second state.

일 실시 예에 따른, 전자 장치(electronic device)의 방법은, 제1 어플리케이션의 실행에 기반하여, 상기 제1 어플리케이션과 상이한 복수의 어플리케이션들의 실행을 위한 지정된 이벤트를 식별하는 동작을 포함할 수 있다. 상기 전자 장치의 상기 방법은, 상기 지정된 이벤트의 식별에 기반하여, 복수의 프로세스들을 실행하는 동작을 포함할 수 있다. 상기 전자 장치의 상기 방법은, 상기 복수의 프로세스들 중 적어도 하나가 실행되는 동안, 상기 메모리로 액세스하는 상기 복수의 프로세스들에 의해 야기된 지연을 나타내는 파라미터를 식별하는 동작을 포함할 수 있다. 상기 전자 장치의 상기 방법은, 지정된 파라미터를 초과하는 상기 파라미터를 식별하는 것에 기반하여, 상기 메모리 내에 프로세서에 의해 실행되는 제1 상태와 상이한 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절하는 동작을 포함할 수 있다. 상기 전자 장치의 상기 방법은, 상기 복수의 프로세스들 중에서, 상기 제2 상태로 스위칭되는 프로세스를 식별하는 것에 기반하여, 상기 조절된 임계치에 기반하여, 상기 복수의 프로세스들의 실행에 의해 점유된 복수의 영역들 중에서 상기 제2 상태로 스위칭된 상기 프로세스에 의해 점유된 일 영역(an area)을 릴리즈하는 동작을 포함할 수 있다. According to an embodiment, a method of an electronic device may include an operation of identifying a designated event for execution of a plurality of applications different from the first application, based on execution of the first application. The method of the electronic device may include executing a plurality of processes based on identification of the specified event. The method of the electronic device may include identifying a parameter indicative of a delay caused by the plurality of processes accessing the memory while at least one of the plurality of processes is executing. The method of the electronic device includes adjusting a threshold used to maintain a process in the memory in a second state that is different from the first state being executed by a processor, based on identifying the parameter that exceeds a specified parameter. may include. The method of the electronic device includes, based on identifying a process switching to the second state among the plurality of processes, based on the adjusted threshold, a plurality of processes occupied by execution of the plurality of processes. It may include an operation of releasing an area occupied by the process switched to the second state among the areas.

하나 이상의 프로그램들을 저장하는 컴퓨터 판독가능 저장 매체에 있어서, 상기 하나 이상의 프로그램들은, 전자 장치의 프로세서에 의해 실행될 때에, 제1 어플리케이션의 실행에 기반하여, 상기 제1 어플리케이션과 상이한 복수의 어플리케이션들의 실행을 위한 지정된 이벤트를 식별하도록, 상기 전자 장치의 상기 프로세서를 야기할 수 있다. 상기 하나 이상의 프로그램들은, 상기 전자 장치의 상기 프로세서에 의해 실행될 때에, 상기 지정된 이벤트의 식별에 기반하여, 복수의 프로세스들을 실행하도록, 상기 전자 장치의 상기 프로세서를 야기할 수 있다. 상기 하나 이상의 프로그램들은, 상기 전자 장치의 상기 프로세서에 의해 실행될 때에, 상기 복수의 프로세스들 중 적어도 하나가 실행되는 동안, 상기 메모리로 액세스하는 상기 복수의 프로세스들에 의해 야기된 지연을 나타내는 파라미터를 식별하도록, 상기 전자 장치의 상기 프로세서를 야기할 수 있다. 상기 하나 이상의 프로그램들은, 상기 전자 장치의 상기 프로세서에 의해 실행될 때에, 지정된 파라미터를 초과하는 상기 파라미터를 식별하는 것에 기반하여, 상기 메모리 내에 상기 프로세서에 의해 실행되는 제1 상태와 상이한 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절하도록, 상기 전자 장치의 상기 프로세서를 야기할 수 있다. 상기 하나 이상의 프로그램들은, 상기 전자 장치의 상기 프로세서에 의해 실행될 때에, 상기 복수의 프로세스들 중에서, 상기 제2 상태로 스위칭되는 프로세스를 식별하는 것에 기반하여, 상기 조절된 임계치에 기반하여, 상기 복수의 프로세스들의 실행에 의해 점유된 복수의 영역들 중에서 상기 제2 상태로 스위칭된 상기 프로세스에 의해 점유된 일 영역을 릴리즈하도록, 상기 전자 장치의 상기 프로세서를 야기할 수 있다. A computer-readable storage medium storing one or more programs, wherein, when executed by a processor of an electronic device, the one or more programs, based on execution of the first application, execute a plurality of applications different from the first application. may cause the processor of the electronic device to identify a designated event for The one or more programs, when executed by the processor of the electronic device, may cause the processor of the electronic device to execute a plurality of processes based on identification of the designated event. The one or more programs, when executed by the processor of the electronic device, identify a parameter indicative of a delay caused by the plurality of processes accessing the memory while at least one of the plurality of processes is executing. Thus, it may cause the processor of the electronic device to do so. The one or more programs, when executed by the processor of the electronic device, cause a process to be in a second state different from the first state executed by the processor in the memory based on identifying the parameter that exceeds a specified parameter. may cause the processor of the electronic device to adjust the threshold used to maintain . When executed by the processor of the electronic device, the one or more programs, based on identifying a process that switches to the second state among the plurality of processes, based on the adjusted threshold, are configured to: and cause the processor of the electronic device to release a region occupied by the process switched to the second state among a plurality of regions occupied by execution of processes.

도 1은, 일 실시 예에 따른, 네트워크 환경 내의 전자 장치의 블록도(block diagram)의 일 예를 도시한다.
도 2는, 일 실시 예에 따른, 전자 장치의 블록도에 관한 일 예를 도시한다.
도 3은, 일 실시 예에 따른, 지정된 이벤트를 식별하는 전자 장치의 일 예를 도시한다.
도 4는, 일 실시 예에 따른, 전자 장치에 포함된 메모리 내의 영역들을 점유하는 프로세스들의 일 예를 도시한다.
도 5는, 일 실시 예에 따른, 프로세스들에 의해 야기된 지연과 관련된 일 예를 도시한다.
도 6은, 일 실시 예에 따른, 전자 장치의 동작에 관한 흐름도의 일 예를 도시한다.
FIG. 1 shows an example of a block diagram of an electronic device in a network environment, according to an embodiment.
FIG. 2 shows an example of a block diagram of an electronic device, according to an embodiment.
FIG. 3 illustrates an example of an electronic device that identifies a specified event, according to an embodiment.
FIG. 4 illustrates an example of processes occupying areas in a memory included in an electronic device, according to an embodiment.
Figure 5 shows an example related to delays caused by processes, according to one embodiment.
Figure 6 shows an example of a flowchart regarding the operation of an electronic device, according to an embodiment.

도 1은, 일 실시 예에 따른, 네트워크 환경 내의 전자 장치의 블록도의 일 예를 도시한다. 1 shows an example of a block diagram of an electronic device in a network environment, according to an embodiment.

도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108) 중 적어도 하나와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.Referring to FIG. 1, in the network environment 100, the electronic device 101 communicates with the electronic device 102 through a first network 198 (e.g., a short-range wireless communication network) or a second network 199. It is possible to communicate with at least one of the electronic device 104 or the server 108 through (e.g., a long-distance wireless communication network). According to one embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108. According to one embodiment, the electronic device 101 includes a processor 120, a memory 130, an input module 150, an audio output module 155, a display module 160, an audio module 170, and a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or may include an antenna module 197. In some embodiments, at least one of these components (eg, the connection terminal 178) may be omitted or one or more other components may be added to the electronic device 101. In some embodiments, some of these components (e.g., sensor module 176, camera module 180, or antenna module 197) are integrated into one component (e.g., display module 160). It can be.

프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 120, for example, executes software (e.g., program 140) to operate at least one other component (e.g., hardware or software component) of the electronic device 101 connected to the processor 120. It can be controlled and various data processing or operations can be performed. According to one embodiment, as at least part of data processing or computation, the processor 120 stores commands or data received from another component (e.g., sensor module 176 or communication module 190) in volatile memory 132. The commands or data stored in the volatile memory 132 can be processed, and the resulting data can be stored in the non-volatile memory 134. According to one embodiment, the processor 120 includes the main processor 121 (e.g., a central processing unit or an application processor) or an auxiliary processor 123 that can operate independently or together (e.g., a graphics processing unit, a neural network processing unit ( It may include a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor). For example, if the electronic device 101 includes a main processor 121 and a auxiliary processor 123, the auxiliary processor 123 may be set to use lower power than the main processor 121 or be specialized for a designated function. You can. The auxiliary processor 123 may be implemented separately from the main processor 121 or as part of it.

보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다. The auxiliary processor 123 may, for example, act on behalf of the main processor 121 while the main processor 121 is in an inactive (e.g., sleep) state, or while the main processor 121 is in an active (e.g., application execution) state. ), together with the main processor 121, at least one of the components of the electronic device 101 (e.g., the display module 160, the sensor module 176, or the communication module 190) At least some of the functions or states related to can be controlled. According to one embodiment, co-processor 123 (e.g., image signal processor or communication processor) may be implemented as part of another functionally related component (e.g., camera module 180 or communication module 190). there is. According to one embodiment, the auxiliary processor 123 (eg, neural network processing unit) may include a hardware structure specialized for processing artificial intelligence models. Artificial intelligence models can be created through machine learning. For example, such learning may be performed in the electronic device 101 itself on which the artificial intelligence model is performed, or may be performed through a separate server (e.g., server 108). Learning algorithms may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but It is not limited. An artificial intelligence model may include multiple artificial neural network layers. Artificial neural networks include deep neural network (DNN), convolutional neural network (CNN), recurrent neural network (RNN), restricted boltzmann machine (RBM), belief deep network (DBN), bidirectional recurrent deep neural network (BRDNN), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the examples described above. In addition to hardware structures, artificial intelligence models may additionally or alternatively include software structures.

메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. The memory 130 may store various data used by at least one component (eg, the processor 120 or the sensor module 176) of the electronic device 101. Data may include, for example, input data or output data for software (e.g., program 140) and instructions related thereto. Memory 130 may include volatile memory 132 or non-volatile memory 134.

프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. The program 140 may be stored as software in the memory 130 and may include, for example, an operating system 142, middleware 144, or application 146.

입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The input module 150 may receive commands or data to be used in a component of the electronic device 101 (e.g., the processor 120) from outside the electronic device 101 (e.g., a user). The input module 150 may include, for example, a microphone, mouse, keyboard, keys (eg, buttons), or digital pen (eg, stylus pen).

음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output module 155 may output sound signals to the outside of the electronic device 101. The sound output module 155 may include, for example, a speaker or a receiver. Speakers can be used for general purposes such as multimedia playback or recording playback. The receiver can be used to receive incoming calls. According to one embodiment, the receiver may be implemented separately from the speaker or as part of it.

디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. The display module 160 can visually provide information to the outside of the electronic device 101 (eg, a user). The display module 160 may include, for example, a display, a hologram device, or a projector, and a control circuit for controlling the device. According to one embodiment, the display module 160 may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of force generated by the touch.

오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 170 can convert sound into an electrical signal or, conversely, convert an electrical signal into sound. According to one embodiment, the audio module 170 acquires sound through the input module 150, the sound output module 155, or an external electronic device (e.g., directly or wirelessly connected to the electronic device 101). Sound may be output through the electronic device 102 (e.g., speaker or headphone).

센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 176 detects the operating state (e.g., power or temperature) of the electronic device 101 or the external environmental state (e.g., user state) and generates an electrical signal or data value corresponding to the detected state. can do. According to one embodiment, the sensor module 176 includes, for example, a gesture sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, humidity sensor, or light sensor.

인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support one or more designated protocols that can be used to connect the electronic device 101 directly or wirelessly with an external electronic device (eg, the electronic device 102). According to one embodiment, the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 178 may include a connector through which the electronic device 101 can be physically connected to an external electronic device (eg, the electronic device 102). According to one embodiment, the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).

햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 179 may convert electrical signals into mechanical stimulation (e.g., vibration or movement) or electrical stimulation that the user can perceive through tactile or kinesthetic senses. According to one embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 180 can capture still images and moving images. According to one embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.

전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 188 can manage power supplied to the electronic device 101. According to one embodiment, the power management module 188 may be implemented as at least a part of, for example, a power management integrated circuit (PMIC).

배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.Battery 189 may supply power to at least one component of electronic device 101. According to one embodiment, the battery 189 may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.

통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제1 네트워크(198) 또는 제2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다. Communication module 190 is configured to provide a direct (e.g., wired) communication channel or wireless communication channel between electronic device 101 and an external electronic device (e.g., electronic device 102, electronic device 104, or server 108). It can support establishment and communication through established communication channels. Communication module 190 operates independently of processor 120 (e.g., an application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module 190 is a wireless communication module 192 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (e.g., : LAN (local area network) communication module, or power line communication module) may be included. Among these communication modules, the corresponding communication module is a first network 198 (e.g., a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (e.g., legacy It may communicate with an external electronic device 104 through a telecommunication network such as a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., LAN or WAN). These various types of communication modules may be integrated into one component (e.g., a single chip) or may be implemented as a plurality of separate components (e.g., multiple chips). The wireless communication module 192 uses subscriber information (e.g., International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 to communicate within a communication network such as the first network 198 or the second network 199. The electronic device 101 can be confirmed or authenticated.

무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The wireless communication module 192 may support 5G networks after 4G networks and next-generation communication technologies, for example, NR access technology (new radio access technology). NR access technology provides high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low latency). -latency communications)) can be supported. The wireless communication module 192 may support a high frequency band (eg, mmWave band), for example, to achieve a high data rate. The wireless communication module 192 uses various technologies to secure performance in high frequency bands, for example, beamforming, massive array multiple-input and multiple-output (MIMO), and full-dimensional multiplexing. It can support technologies such as input/output (FD-MIMO: full dimensional MIMO), array antenna, analog beam-forming, or large scale antenna. The wireless communication module 192 may support various requirements specified in the electronic device 101, an external electronic device (e.g., electronic device 104), or a network system (e.g., second network 199). According to one embodiment, the wireless communication module 192 supports peak data rate (e.g., 20 Gbps or more) for realizing eMBB, loss coverage (e.g., 164 dB or less) for realizing mmTC, or U-plane latency (e.g., 164 dB or less) for realizing URLLC. Example: Downlink (DL) and uplink (UL) each of 0.5 ms or less, or round trip 1 ms or less) can be supported.

안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다. The antenna module 197 may transmit or receive signals or power to or from the outside (e.g., an external electronic device). According to one embodiment, the antenna module 197 may include an antenna including a radiator made of a conductor or a conductive pattern formed on a substrate (eg, PCB). According to one embodiment, the antenna module 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is connected to the plurality of antennas by, for example, the communication module 190. can be selected. Signals or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna. According to some embodiments, in addition to the radiator, other components (eg, radio frequency integrated circuit (RFIC)) may be additionally formed as part of the antenna module 197.

다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 197 may form a mmWave antenna module. According to one embodiment, a mmWave antenna module includes a printed circuit board, an RFIC disposed on or adjacent to a first side (e.g., bottom side) of the printed circuit board and capable of supporting a designated high frequency band (e.g., mmWave band); And a plurality of antennas (e.g., array antennas) disposed on or adjacent to the second side (e.g., top or side) of the printed circuit board and capable of transmitting or receiving signals in the designated high frequency band. can do.

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (e.g., bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and signal ( (e.g. commands or data) can be exchanged with each other.

일실시예에 따르면, 명령 또는 데이터는 제2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다. According to one embodiment, commands or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199. Each of the external electronic devices 102 or 104 may be of the same or different type as the electronic device 101. According to one embodiment, all or part of the operations performed in the electronic device 101 may be executed in one or more of the external electronic devices 102, 104, or 108. For example, when the electronic device 101 needs to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device 101 may perform the function or service instead of executing the function or service on its own. Alternatively, or additionally, one or more external electronic devices may be requested to perform at least part of the function or service. One or more external electronic devices that have received the request may execute at least 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 101. The electronic device 101 may process the result as is or additionally and provide it as at least part of a response to the request. For this purpose, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology can be used. The electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device 104 may include an Internet of Things (IoT) device. Server 108 may be an intelligent server using machine learning and/or neural networks. According to one embodiment, the external electronic device 104 or server 108 may be included in the second network 199. The electronic device 101 may be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.Electronic devices according to various embodiments disclosed in this document may be of various types. Electronic devices may include, for example, portable communication devices (e.g., smartphones), computer devices, portable multimedia devices, portable medical devices, cameras, wearable devices, or home appliances. Electronic devices according to embodiments of this document are not limited to the above-described devices.

본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.The various embodiments of this document and the terms used herein are not intended to limit the technical features described in this document to specific embodiments, but should be understood to include various changes, equivalents, or replacements of the embodiments. In connection with the description of the drawings, similar reference numbers may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of the items, unless the relevant context clearly indicates otherwise. As used herein, “A or B”, “at least one of A and B”, “at least one of A or B”, “A, B or C”, “at least one of A, B and C”, and “A Each of phrases such as “at least one of , B, or C” may include any one of the items listed together in the corresponding phrase, or any possible combination thereof. Terms such as "first", "second", or "first" or "second" may be used simply to distinguish one component from another, and to refer to those components in other respects (e.g., importance or order) is not limited. One (e.g., first) component is said to be “coupled” or “connected” to another (e.g., second) component, with or without the terms “functionally” or “communicatively.” Where mentioned, it means that any of the components can be connected to the other components directly (e.g. wired), wirelessly, or through a third component.

본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term “module” used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as logic, logic block, component, or circuit, for example. It can be used as A module may be an integrated part or a minimum unit of the parts or a part thereof that performs one or more functions. For example, according to one embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).

본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of the present document are one or more instructions stored in a storage medium (e.g., built-in memory 136 or external memory 138) that can be read by a machine (e.g., electronic device 101). It may be implemented as software (e.g., program 140) including these. For example, a processor (e.g., processor 120) of a device (e.g., electronic device 101) may call at least one command among one or more commands stored from a storage medium and execute it. This allows the device to be operated to perform at least one function according to the at least one instruction called. The one or more instructions may include code generated by a compiler or code that can be executed by an interpreter. A storage medium that can be read by a device may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' only means that the storage medium is a tangible device and does not contain signals (e.g. electromagnetic waves). This term refers to cases where data is stored semi-permanently in the storage medium. There is no distinction between temporary storage cases.

일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어™)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, methods according to various embodiments disclosed in this document may be included and provided in a computer program product. Computer program products are commodities and can be traded between sellers and buyers. The computer program product may be distributed in the form of a machine-readable storage medium (e.g. compact disc read only memory (CD-ROM)) or through an application store (e.g. Play Store™) or on two user devices (e.g. It can be distributed (e.g. downloaded or uploaded) directly between smart phones) or online. In the case of online distribution, at least a portion of the computer program product may be at least temporarily stored or temporarily created in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or a relay server.

다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (e.g., module or program) of the above-described components may include a single or plural entity, and some of the plurality of entities may be separately placed in other components. there is. According to various embodiments, one or more of the components or operations described above may be omitted, or one or more other components or operations may be added. Alternatively or additionally, multiple components (eg, modules or programs) may be integrated into a single component. In this case, the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by the corresponding component of the plurality of components prior to the integration. . According to various embodiments, operations performed by a module, program, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, or omitted. Alternatively, one or more other operations may be added.

도 2는, 일 실시 예에 따른, 전자 장치의 블록도에 관한 일 예를 도시한다. FIG. 2 shows an example of a block diagram of an electronic device, according to an embodiment.

도 2를 참조하면, 일 실시 예에 따른, 전자 장치(101)는, 프로세서(120), 메모리(130), 또는 디스플레이(210), 적어도 하나를 포함할 수 있다. 프로세서(120), 메모리(130), 및 디스플레이(210)는 통신 버스(a communication bus)(220)와 같은 전자 부품(electronical component)에 의해 서로 전기적으로 및/또는 작동적으로 연결될 수 있다(electronically and/or operably coupled with each other). 이하에서, 하드웨어들이 작동적으로 결합된 것은, 하드웨어들 중 제1 하드웨어에 의해 제2 하드웨어가 제어되도록, 하드웨어들 사이의 직접적인 연결, 또는 간접적인 연결이 유선으로, 또는 무선으로 수립된 것을 의미할 수 있다. 상이한 블록들에 기반하여 도시되었으나, 실시예가 이에 제한되는 것은 아니며, 도 2의 하드웨어들 중 일부분(예, 프로세서(120), 메모리(130), 및 디스플레이(210)의 적어도 일부분)이 SoC(system on a chip)와 같이 단일 집적 회로(single integrated circuit)에 포함될 수 있다. 전자 장치(101)에 포함된 하드웨어 컴포넌트의 타입 및/또는 개수는 도 2에 도시된 바에 제한되지 않는다. 예를 들어, 전자 장치(101)는 도 2에 도시된 하드웨어 컴포넌트 중 일부만 포함할 수 있다. Referring to FIG. 2, according to one embodiment, the electronic device 101 may include at least one of a processor 120, a memory 130, or a display 210. The processor 120, memory 130, and display 210 may be electrically and/or operatively connected to each other by an electronic component such as a communication bus 220. and/or operably coupled with each other). Hereinafter, hardware being operatively combined will mean that a direct connection or an indirect connection between the hardware is established, wired or wireless, such that the second hardware is controlled by the first hardware among the hardware. You can. Although shown based on different blocks, the embodiment is not limited thereto, and some of the hardware in FIG. 2 (e.g., the processor 120, the memory 130, and at least a portion of the display 210) are SoC (system It may be included in a single integrated circuit, such as on a chip. The type and/or number of hardware components included in the electronic device 101 are not limited to those shown in FIG. 2 . For example, electronic device 101 may include only some of the hardware components shown in FIG. 2 .

도 2를 참고하면, 전자 장치(101)의 프로세서(120)는, 하나 이상의 인스트럭션들에 기반하여 데이터를 처리하기 위한 하드웨어 컴포넌트를 포함할 수 있다. 데이터를 처리하기 위한 하드웨어 컴포넌트는, 예를 들어, ALU(arithmetic and logic unit), FPU(floating point unit), FPGA(field programmable gate array), CPU(central processing unit), 및/또는 AP(application processor)를 포함할 수 있다. 프로세서(120)의 개수는 하나 이상일 수 있다. 예를 들어, 프로세서(120)는 듀얼 코어(dual core), 쿼드 코어(quad core) 또는 헥사 코어(hexa core)와 같은 멀티-코어 프로세서의 구조를 가질 수 있다. 도 2의 프로세서(120)는, 도 1의 프로세서(120)를 포함할 수 있다. Referring to FIG. 2 , the processor 120 of the electronic device 101 may include hardware components for processing data based on one or more instructions. Hardware components for processing data include, for example, an arithmetic and logic unit (ALU), a floating point unit (FPU), a field programmable gate array (FPGA), a central processing unit (CPU), and/or an application processor (AP). ) may include. The number of processors 120 may be one or more. For example, the processor 120 may have the structure of a multi-core processor such as dual core, quad core, or hexa core. The processor 120 of FIG. 2 may include the processor 120 of FIG. 1 .

도 2를 참고하면, 일 실시 예에 따른, 전자 장치(101)의 메모리(130)는, 프로세서(120)에 입력 및/또는 출력되는 데이터 및/또는 인스트럭션을 저장하기 위한 하드웨어 컴포넌트를 포함할 수 있다. 메모리(130)는, 예를 들어, RAM(random-access memory)으로 참조될 수 있다. 휘발성 메모리(132)는, 예를 들어, DRAM(dynamic RAM), SRAM(static RAM), Cache RAM, PSRAM (pseudo SRAM) 중 적어도 하나를 포함할 수 있다. 도 2의 메모리(130)는, 도 1의 메모리(130)를 포함할 수 있다. Referring to FIG. 2, according to one embodiment, the memory 130 of the electronic device 101 may include hardware components for storing data and/or instructions input and/or output to the processor 120. there is. Memory 130 may be referred to as, for example, random-access memory (RAM). The volatile memory 132 may include, for example, at least one of dynamic RAM (DRAM), static RAM (SRAM), cache RAM, and pseudo SRAM (PSRAM). The memory 130 of FIG. 2 may include the memory 130 of FIG. 1 .

도 2를 참고하면, 일 실시 예에 따른, 전자 장치(101)의 디스플레이(210)는, 사용자에게 시각화된 정보를 출력할 수 있다. 예를 들어, 디스플레이(210)는, 프로세서(120), 및/또는 GPU(graphic processing unit)와 같은 컨트롤러에 의해 제어되어, 사용자에게 시각화된 정보(visualized information)를 출력할 수 있다. 디스플레이(210)는 FPD(flat panel display) 및/또는 전자 종이(electronic paper)를 포함할 수 있다. 상기 FPD는 LCD(liquid crystal display), PDP(plasma display panel) 및/또는 하나 이상의 LED(light emitting diode)를 포함할 수 있다. 상기 LED는 OLED(organic LED)를 포함할 수 있다. 도 2의 디스플레이(210)는, 도 1의 디스플레이 모듈(160)을 포함할 수 있다. Referring to FIG. 2, according to one embodiment, the display 210 of the electronic device 101 may output visualized information to the user. For example, the display 210 may be controlled by a controller such as the processor 120 and/or a GPU (graphic processing unit) to output visualized information to the user. The display 210 may include a flat panel display (FPD) and/or electronic paper. The FPD may include a liquid crystal display (LCD), a plasma display panel (PDP), and/or one or more light emitting diodes (LED). The LED may include an organic LED (OLED). The display 210 of FIG. 2 may include the display module 160 of FIG. 1 .

일 실시 예에 따른, 전자 장치(101)의 디스플레이(210)는, 디스플레이(210) 상의 외부 객체(예, 사용자의 손가락)를 탐지하기 위한 센서(예, TSP(touch sensor panel))를 포함할 수 있다. 예를 들어, TSP에 기반하여, 전자 장치(101)는 디스플레이(210)와 접촉하거나, 또는 디스플레이(210) 상을 부유하는(floating) 외부 객체를 탐지할 수 있다. 상기 외부 객체를 탐지하는 것에 응답하여, 전자 장치(101)는, 디스플레이(210) 내에 표시되고 있는 시각적 객체들 중에서, 상기 외부 객체의 디스플레이(210) 상에서의 위치에 대응하는 특정 시각적 객체와 관련된 기능을 실행할 수 있다. According to one embodiment, the display 210 of the electronic device 101 may include a sensor (e.g., touch sensor panel (TSP)) for detecting an external object (e.g., a user's finger) on the display 210. You can. For example, based on TSP, the electronic device 101 may detect an external object that is in contact with the display 210 or floating on the display 210 . In response to detecting the external object, the electronic device 101 determines, among the visual objects being displayed within the display 210, a function associated with a specific visual object corresponding to the location on the display 210 of the external object. You can run .

일 실시 예에 따른, 전자 장치(101)는, 제1 어플리케이션을 실행할 수 있다. 전자 장치(101)는, 상기 제1 어플리케이션의 실행에 기반하여, 상기 제1 어플리케이션과 상이한 복수의 어플리케이션들의 실행을 위한 지정된 이벤트를 식별할 수 있다. 예를 들어, 상기 지정된 이벤트는, 상기 복수의 어플리케이션의 실행을 위한 오브젝트를 포함할 수 있다. 예를 들어, 상기 오브젝트는, 상기 지정된 이벤트 내에 포함된 인스트럭션들과 관련될 수 있다. 예를 들어, 상기 오브젝트는, 브로드캐스트(broadcast)와 같은, 지정된 명칭을 가지는 데이터 구조, 및 상기 데이터 구조에 기반하는 적어도 하나의 기능을 실행하기 위한 인스트럭션을 포함할 수 있다. 전자 장치(101)는, 상기 지정된 이벤트의 식별에 기반하여, 상기 지정된 이벤트를 수신하는, 상기 제1 어플리케이션과 상이한 복수의 어플리케이션들을 실행할 수 있다. 예를 들어, 상기 복수의 어플리케이션들은, 제1 오브젝트인 상기 오브젝트와 상이한 제2 오브젝트에 기반하여 실행될 수 있다. 예를 들어, 상기 제2 오브젝트는, 브로드캐스트 리시버(broadcast receiver)와 같은, 제1 지정된 인스트럭션인 상기 인스트럭션과 상이한 제2 지정된 인스트럭션을 포함할 수 있다. 상기 브로캐스트 리시버와 같은 제2 지정된 인스트럭션은, 지정된 명칭을 가지는 데이터 구조, 및 상기 데이터 구조에 기반하는 적어도 하나의 기능을 실행하기 위한 인스트럭션을 포함할 수 있다. 전자 장치(101)는, 상기 복수의 어플리케이션들의 실행에 기반하여, 상기 복수의 어플리케이션들 각각에 포함된 복수의 프로세스를 실행할 수 있다. 지정된 이벤트의 발생을 식별한 것에 기반하여, 오브젝트를 통해 프로세스를 실행하는 동작은 도 3에서 후술된다. According to one embodiment, the electronic device 101 may execute a first application. Based on the execution of the first application, the electronic device 101 may identify a designated event for execution of a plurality of applications different from the first application. For example, the designated event may include an object for executing the plurality of applications. For example, the object may be related to instructions included within the specified event. For example, the object may include a data structure with a designated name, such as broadcast, and instructions for executing at least one function based on the data structure. The electronic device 101 may execute a plurality of applications different from the first application that receive the specified event based on the identification of the specified event. For example, the plurality of applications may be executed based on a second object that is different from the first object. For example, the second object may include a second designated instruction that is different from the first designated instruction, such as a broadcast receiver. A second designated instruction, such as the broadcast receiver, may include a data structure with a designated name, and instructions for executing at least one function based on the data structure. The electronic device 101 may execute a plurality of processes included in each of the plurality of applications based on execution of the plurality of applications. The operation of executing a process through an object based on identifying the occurrence of a specified event is described later in FIG. 3.

일 실시 예에 따른, 전자 장치(101)는, 지정된 이벤트의 발생에 기반하여, 복수의 프로세스들을 실행할 수 있다. 예를 들어, 상기 복수의 프로세스들은, 복수의 어플리케이션의 실행에 기반하여 실행될 수 있다. 전자 장치(101)는, 상기 복수의 프로세스들에 식별자(identifier)들을, 할당할 수 있다. 예를 들어, 상기 식별자들은, OOM_SCORE_ADJ(adj)(out of memory score)로 참조될 수 있다. 상기 식별자들은, 상기 복수의 프로세스들의 상태들과 관련될 수 있다. 예를 들어, 상기 상태들은, 디스플레이(210)를 통하여 표시되는 포어그라운드(foreground) 모드로 프로세스가 실행되는 상태를 포함할 수 있다. 예를 들어, 상기 상태들은, 디스플레이(210)를 통하여 표시되는 포어그라운드 모드와 상이한 모드인 백그라운드(background) 모드로 프로세스가 실행되는 상태를 포함할 수 있다. 예를 들어, 상기 상태들은, 프로세서(120)에 의해 실행되는 상태와 상이한 상태 내에서, 메모리(130)의 일 영역(an area)을 점유한 상태를 포함할 수 있다. 예를 들어, 상기 프로세서(120)에 의해 실행되는 상태와 상이한 상태 내에서 메모리(130)의 일 영역을 점유한 상태는, 프리 상태(free state), 및/또는 휴지 상태(idle state)를 포함할 수 있다. 하지만, 이에 제한되지 않는다. 프로세서(120)에 의해 실행되는 제1 상태와 상이한 제2 상태 내에서 메모리(130)의 일 영역을 점유한 상태의 프로세스는, 프로세서(120)에 의해 실행되는 상태 내에서 메모리(130)의 일 영역을 점유하는 프로세스에 비해, 상대적으로 적은 영역을 점유할 수 있다. According to one embodiment, the electronic device 101 may execute a plurality of processes based on the occurrence of a designated event. For example, the plurality of processes may be executed based on execution of a plurality of applications. The electronic device 101 may assign identifiers to the plurality of processes. For example, the identifiers may be referred to as OOM_SCORE_ADJ(adj)(out of memory score). The identifiers may be related to the states of the plurality of processes. For example, the states may include a state in which a process is executed in a foreground mode displayed through the display 210. For example, the states may include a state in which a process is executed in a background mode, which is a different mode from the foreground mode displayed through the display 210. For example, the states may include a state that occupies an area of the memory 130 within a state that is different from the state executed by the processor 120. For example, a state occupying an area of the memory 130 in a state different from the state executed by the processor 120 includes a free state and/or an idle state. can do. However, it is not limited to this. A process occupying an area of the memory 130 in a second state different from the first state executed by the processor 120 may occupy an area of the memory 130 in the state executed by the processor 120. Compared to a process that occupies an area, it can occupy a relatively small area.

일 실시 예에 따른, 전자 장치(101)는, 복수의 프로세스들 중 적어도 하나가 실행되는 동안, 메모리(130)로 액세스하는 복수의 프로세스들에 의해 야기된 지연을 나타내는 파라미터를 식별할 수 있다. 복수의 프로세스들에 의해 야기된 지연을 나타내는 파라미터는, PSI(kernel pressure stall info)로 참조될 수 있다. 예를 들어, 상기 지연은, 프로세서(120)로 페치된(fetched) 인스트럭션의 실행을 위해 요구되는 데이터가, 프로세서(120) 내 캐시 메모리에 존재하지 않아(예, 캐시 미스(miss)), 휘발성 메모리(예, 도 1의 휘발성 메모리(132)), 및/또는 비휘발성 메모리(예, SD(secure digital) 카드, 및/또는 플래시 메모리와 같은 외부 스토리지)로부터 상기 데이터를 가져오는 동안 발생될 수 있다. 예를 들어, 상기 지연은, 프로세서(120)가 특정 인스트럭션의 실행에 기반하여, 휘발성 메모리, 및 비휘발성 메모리 사이의 데이터의 이동, 및/또는 비휘발성 메모리 내에서의 데이터의 이동을 제어하는 상태 내에서, 상기 데이터의 이동이 완료될 때까지 상기 특정 인스트럭션 이후의 다른 인스트럭션을 실행하지 않음에 의하여, 발생될 수 있다. According to one embodiment, the electronic device 101 may identify a parameter indicating a delay caused by a plurality of processes accessing the memory 130 while at least one of the plurality of processes is executed. A parameter indicating the delay caused by a plurality of processes may be referred to as kernel pressure stall info (PSI). For example, the delay may occur when data required for execution of an instruction fetched by the processor 120 is not present in the cache memory of the processor 120 (e.g., a cache miss), resulting in volatility. This may occur while retrieving the data from memory (e.g., volatile memory 132 of FIG. 1), and/or non-volatile memory (e.g., external storage such as a secure digital (SD) card, and/or flash memory). there is. For example, the delay may be a condition in which the processor 120 controls the movement of data between volatile memory and non-volatile memory, and/or the movement of data within non-volatile memory, based on the execution of a specific instruction. This can occur by not executing other instructions after the specific instruction until the data movement is completed.

예를 들어, 프로세서(120)가 상기 메모리(130)와 상이한 비휘발성 메모리로부터 데이터를 수신하는 동안, 상기 메모리(130)의 영역을 점유하는 복수의 프로세스들에 의해, 상기 비휘발성 메모리로부터 상기 메모리(130)로 데이터의 송신이 불가능할 때에, 상기 지연이 발생될 수 있다. 예를 들어, 상기 지연은, 프로세서(120)가 상기 비휘발성 메모리로 데이터를 송신하는 동안, 상기 프로세서(120)로부터 복수의 프로세스들에 의해 점유되는 상기 메모리(130)의 영역으로, 데이터의 송신이 불가능할 때에, 발생될 수 있다. 예를 들어, 복수의 프로세스들에 의해 상기 메모리(130)의 영역의 대부분이 점유되었을 때, 상기 지연이 발생될 수 있다. 예를 들어, 상기 지연은, 프로세서(120)가 캐시(cache) 메모리로부터 메모리(130)의 일 영역에 액세스하는 동안, 상기 메모리(130)의 영역이 복수의 프로세스들에 의해 점유된 것에 기반하여 발생될 수 있다. 상기 지연은, 상술한 예시에 의해 제한되지 않는다. For example, while the processor 120 is receiving data from a non-volatile memory different from the memory 130, the memory may be transferred from the non-volatile memory by a plurality of processes occupying an area of the memory 130. When transmission of data to 130 is not possible, the delay may occur. For example, the delay may include the transmission of data from the processor 120 to an area of the memory 130 that is occupied by a plurality of processes while the processor 120 is transmitting data to the non-volatile memory. This may occur when this is not possible. For example, the delay may occur when most of the area of the memory 130 is occupied by a plurality of processes. For example, the delay may be based on an area of the memory 130 being occupied by a plurality of processes while the processor 120 accesses an area of the memory 130 from a cache memory. It can happen. The delay is not limited by the examples described above.

예를 들어, 상기 복수의 프로세스들에 의해 야기된 지연을 나타내는 파라미터는, 지정된 기간(예, 약 1 초, 및/또는 약 10 초) 동안, 프로세서(120)의 코어가 적어도 일시적으로 중단된 시간과 관련될 수 있다. 상기 파라미터는, 프로세서(120)의 코어가 적어도 일시적으로 중단된 기간, 및 지정된 기간 사이의 비율을 포함할 수 있다. 하지만, 이에 제한되지 않는다. For example, a parameter representing the delay caused by the plurality of processes may include the amount of time that a core of processor 120 is at least temporarily suspended for a specified period of time (e.g., about 1 second, and/or about 10 seconds). It may be related to The parameter may include a ratio between a specified period of time and a period of time during which a core of processor 120 is at least temporarily suspended. However, it is not limited to this.

일 실시 예에 따른, 전자 장치(101)는, 지정된 파라미터(예, PSI 20)를 초과하는 상기 파라미터를 식별할 수 있다. 상기 파라미터는, PSI로 참조될 수 있다. 전자 장치(101)는, 상기 지정된 파라미터를 초과하는 상기 파라미터를 식별한 것에 기반하여, 메모리(130) 내에 형성된 복수의 영역들을 점유하는 프로세스를 유지하는데 이용되는 임계치를 조절할 수 있다. 전자 장치(101)는, 상기 임계치를 조절한 것에 기반하여, 복수의 프로세스들 중에서, 프로세서(120)에 의해 실행되는 상태와 상이한 상태로 스위칭된 프로세스에 의해 점유된 일 영역을 릴리즈할 수 있다. According to one embodiment, the electronic device 101 may identify the parameter that exceeds a specified parameter (eg, PSI 20). The parameter may be referred to as PSI. The electronic device 101 may adjust a threshold used to maintain a process occupying a plurality of areas formed within the memory 130 based on identifying the parameter exceeding the specified parameter. Based on adjusting the threshold, the electronic device 101 may release an area occupied by a process that has been switched to a state different from the state executed by the processor 120 among the plurality of processes.

일 실시 예에 따른, 프로세스는, 전자 장치(101)의 메모리(130) 내의 영역을 점유할 수 있다. 상기 프로세서는, 전자 장치(101)에 의해 할당된 식별자에 기반하여, 상기 메모리(130) 내의 영역을 점유할 수 있다. 예를 들어, 전자 장치(101)는, 제1 프로세스에 제1 식별자를 할당할 수 있다. 예를 들어, 제1 식별자는, cached app with activity(cch-act)로 참조될 수 있다. 상기 제1 식별자가 할당된 제1 프로세스는, 프로세서(120)에 의해 실행되는 상태 내에서, 디스플레이(210)를 제어하기 위한 화면과 관련된 프로세스를 포함할 수 있다. 예를 들어, 제1 프로세스에 할당되는 제1 식별자는, 상기 제1 프로세스의 실행에 의해 디스플레이(210) 내에 표시되기 위한 화면(예, 액티비티)이 생성됨을 의미할 수 있다. 상기 제1 식별자가 할당된 상기 제1 프로세스는, 디스플레이(210)의 제어와 직접적으로, 및/또는 간접적으로 관련될 수 있다. 예를 들어, 상기 제1 식별자가 할당된 상기 제1 프로세스는, 상기 제1 프로세스와 관련된 어플리케이션이 실행되는 동안, 디스플레이(210)를 통해 표시될 수 있다. 예를 들어, 전자 장치(101)는, 상기 제1 프로세스에 adj 900, adj 910, adj 920, adj 930, adj 940, adj 950, adj 960, adj 970, adj 980, adj 990, 및/또는 adj 1000와 같은 제1 식별자를 할당할 수 있다. According to one embodiment, a process may occupy an area in the memory 130 of the electronic device 101. The processor may occupy an area in the memory 130 based on an identifier assigned by the electronic device 101. For example, the electronic device 101 may assign a first identifier to the first process. For example, the first identifier may be referred to as cached app with activity (cch-act). The first process to which the first identifier is assigned may include a process related to a screen for controlling the display 210 in a state executed by the processor 120. For example, the first identifier assigned to the first process may mean that a screen (eg, activity) to be displayed in the display 210 is created by execution of the first process. The first process to which the first identifier is assigned may be directly and/or indirectly related to control of the display 210 . For example, the first process to which the first identifier is assigned may be displayed through the display 210 while an application related to the first process is running. For example, the electronic device 101 may include adj 900, adj 910, adj 920, adj 930, adj 940, adj 950, adj 960, adj 970, adj 980, adj 990, and/or adj in the first process. A first identifier such as 1000 may be assigned.

예를 들어, 전자 장치(101)는, 제2 프로세스에 제2 식별자를 할당할 수 있다. 상기 제2 식별자는, cached app as empty(cch-empty)로 참조될 수 있다. 예를 들어, 상기 제2 식별자가 할당된 제2 프로세스는, 프로세서(120)에 의해 실행되는 상태 내에서, 디스플레이(210)를 제어하기 위한 화면과 독립적으로 실행되었던 프로세스를 포함할 수 있다. 예를 들어, 제2 프로세스에 할당되는 제2 식별자는, 상기 제2 프로세스의 실행에 의해 디스플레이(210) 내에 표시되기 위한 화면이 생성되지 않음을 의미할 수 있다. 예를 들어, 전자 장치(101)는, 상기 제2 프로세스에, adj 900, adj 905, adj 915, adj 925, adj 935, adj 945, adj 955, adj 965, adj 975, adj 985, 및/또는 adj 995와 같은 제2 식별자를 할당할 수 있다. 예를 들어, 상기 제1 식별자가 할당된 제1 프로세스는, 제2 식별자가 할당된 제2 프로세스에 비해, 메모리(130) 내에서 점유하는 영역이 상대적으로 더 많을 수 있다. For example, the electronic device 101 may assign a second identifier to the second process. The second identifier may be referred to as cached app as empty (cch-empty). For example, the second process to which the second identifier is assigned may include a process that was executed independently of the screen for controlling the display 210 within a state executed by the processor 120. For example, the second identifier assigned to the second process may mean that a screen to be displayed in the display 210 is not created by execution of the second process. For example, the electronic device 101 may include adj 900, adj 905, adj 915, adj 925, adj 935, adj 945, adj 955, adj 965, adj 975, adj 985, and/or the second process. A second identifier such as adj 995 may be assigned. For example, a first process assigned the first identifier may occupy a relatively larger area in the memory 130 than a second process assigned the second identifier.

예를 들어, 전자 장치(101)는, 제3 프로세스가 포어그라운드 모드로 프로세서(120)에 의해 실행 중인 때에, 상기 실행 중인 제3 프로세스에 대해, 제3 식별자를 할당할 수 있다. 예를 들어, 전자 장치(101)는, 실행 중인 제3 프로세스에 대해 adj 0을 할당할 수 있다. 예를 들어, 전자 장치(101)는, 제4 프로세스가 백그라운드 모드로 프로세서(120)에 의해 실행 중인 때에, adj 700 내지 adj 799를 할당할 수 있다. For example, when the third process is being executed by the processor 120 in the foreground mode, the electronic device 101 may assign a third identifier to the third process being executed. For example, the electronic device 101 may allocate adj 0 to the third process being executed. For example, the electronic device 101 may allocate adj 700 to adj 799 when the fourth process is being executed by the processor 120 in background mode.

일 실시 예에 따른, 전자 장치(101)는, 메모리(130)의 영역을 점유하는 제2 식별자가 할당된 제2 프로세스를 릴리즈할 수 있다. 예를 들어, 전자 장치(101)는, 제1 식별자가 할당된 제1 프로세스, 및 상기 제2 식별자가 할당된 상기 제2 프로세스에 의해 점유되는 메모리(130)의 영역을 식별할 수 있다. 전자 장치(101)는, 상기 제1 식별자가 할당된 제1 프로세스, 및 상기 제2 식별자가 할당된 제2 프로세스에 의해 점유되는 메모리(130)의 영역을 식별한 것에 기반하여, 상기 제1 식별자가 할당된 프로세스에 의해 점유되는 메모리(130)의 영역을 릴리즈할 수 있다. 전자 장치(101)는, 상기 제1 프로세스에 의해 점유되는 메모리(130)의 영역을 상기 제2 프로세스에 의해 점유되는 메모리(130)의 영역에 비해, 상대적으로 우선하여 릴리즈할 수 있다. 예를 들어, 전자 장치(101)는, 제1 식별자가 할당된 제1 프로세스에 제2 식별자가 할당된 제2 프로세스를 상대적으로 높은 순위로 지정할 수 있다. 전자 장치(101)는, 상기 지정된 순위에 기반하여, 상기 프로세스들이 메모리를 점유하는 영역을 릴리즈할 수 있다. 상술한 바와 같이, 일 실시 예에 따른, 전자 장치(101)는, 제1 식별자가 할당된 제1 프로세스에 의해 점유되는 메모리(130)의 제1 영역, 및 상기 제2 식별자가 할당된 제2 프로세스에 의해 점유되는 메모리(130)의 제2 영역 중에서, 상기 제1 영역을 릴리즈할 수 있다. 전자 장치(101)는, 상기 제1 식별자가 할당된 제1 프로세스에 의해 점유되는 메모리(130)의 제1 영역을 릴리즈 함으로써, 메모리(130) 내에 영역을 확보(secure)할 수 있다. According to one embodiment, the electronic device 101 may release a second process assigned a second identifier that occupies an area of the memory 130. For example, the electronic device 101 may identify an area of the memory 130 occupied by a first process to which a first identifier is assigned and a second process to which the second identifier is assigned. The electronic device 101 determines the first identifier based on identifying the area of the memory 130 occupied by the first process to which the first identifier is assigned and the second process to which the second identifier is assigned. The area of memory 130 occupied by the allocated process may be released. The electronic device 101 may release the area of the memory 130 occupied by the first process with relative priority over the area of the memory 130 occupied by the second process. For example, the electronic device 101 may assign a relatively high priority to the first process to which the first identifier is assigned and the second process to which the second identifier is assigned. The electronic device 101 may release the area in which the processes occupy memory based on the designated ranking. As described above, according to one embodiment, the electronic device 101 includes a first region of the memory 130 occupied by a first process to which the first identifier is assigned, and a second region to which the second identifier is assigned. Among the second areas of the memory 130 occupied by the process, the first area may be released. The electronic device 101 may secure an area in the memory 130 by releasing the first area of the memory 130 occupied by the first process to which the first identifier is assigned.

일 실시 예에 따른, 전자 장치(101)는, 식별자들의 개수를 조절할 수 있다. 예를 들어, 상기 식별자들의 개수는, 프로세스를 유지하는데 이용되는 임계치를 포함할 수 있다. 예를 들어, 상기 프로세스를 유지하는데 이용되는 임계치는, 메모리(130)의 일 영역을 점유하는 프로세스의 개수와 관련될 수 있다. According to one embodiment, the electronic device 101 can adjust the number of identifiers. For example, the number of identifiers may include a threshold used to maintain the process. For example, the threshold used to maintain the process may be related to the number of processes occupying an area of memory 130.

일 실시 예에 따른, 전자 장치(101)는, 제2 식별자가 할당된 제2 프로세스를 식별할 수 있다. 전자 장치(101)는, 상기 제2 식별자가 할당된 상기 제2 프로세스가 실행된 횟수를 식별할 수 있다. 전자 장치(101)는, 상기 제2 식별자가 할당된 상기 제2 프로세스의 실행 횟수를 식별한 것에 기반하여, 상기 제2 식별자가 할당된 상기 제2 프로세스를 포함하는 리스트를 획득할 수 있다. 예를 들어, 전자 장치(101)는, 지정된 횟수를 초과하는, 상기 제2 식별자가 할당된 제2 프로세스의 실행된 횟수를 식별한 것에 기반하여, 상기 제2 식별자가 할당된 제2 프로세스를 포함하는 리스트를 생성할 수 있다. 예를 들어, 상기 리스트는, 지정된 이벤트에 기반하여 생성될 수 있다. 예를 들어, 전자 장치(101)는, 상기 지정된 이벤트가 발생한 것에 기반하여, 상기 리스트를 생성할 수 있다. 예를 들어, 전자 장치(101)는, 상기 지정된 이벤트가 발생한 것에 기반하여, 상기 제2 식별자가 할당된 제2 프로세스의 실행 횟수를 식별할 수 있다. 전자 장치(101)는, 상기 지정된 이벤트가 발생한 것에 기반하여, 상기 제2 식별자가 할당된 상기 제2 프로세스의 실행 횟수를 식별한 것에 기반하여, 상기 리스트를 생성할 수 있다. 예를 들어, 상기 리스트는, 제2 프로세스를 포함한 5개의 프로세스를 포함할 수 있다. 하지만, 이에 제한되지 않는다. According to one embodiment, the electronic device 101 may identify a second process to which a second identifier is assigned. The electronic device 101 may identify the number of times the second process to which the second identifier is assigned has been executed. The electronic device 101 may obtain a list including the second process to which the second identifier is assigned based on identifying the number of executions of the second process to which the second identifier is assigned. For example, the electronic device 101 includes a second process assigned the second identifier based on identifying the number of executions of the second process assigned the second identifier that exceeds a specified number of times. You can create a list that does. For example, the list may be created based on a specified event. For example, the electronic device 101 may generate the list based on the occurrence of the specified event. For example, the electronic device 101 may identify the number of executions of the second process to which the second identifier is assigned, based on the occurrence of the specified event. The electronic device 101 may generate the list based on the occurrence of the specified event and identifying the number of executions of the second process to which the second identifier is assigned. For example, the list may include five processes including a second process. However, it is not limited to this.

상술한 바와 같이, 일 실시 예에 따른, 전자 장치(101)는, 메모리(130) 내의 영역들을 점유하는 복수의 프로세스들을 식별할 수 있다. 전자 장치(101)의 프로세서(120)는, 상기 복수의 프로세스들에 의해 상기 복수의 영역들이 점유되는 동안, 메모리(130) 내의 복수의 영역들로 액세스하는 것이 지연될 수 있다. 전자 장치(101)는, 상기 복수의 프로세스들을, 상기 메모리(130) 내에 형성된 영역들로부터 릴리즈하기 위해, 상기 복수의 프로세스들의 식별자들을 식별할 수 있다. 전자 장치(101)는, 상기 복수의 프로세스들의 상기 식별자들에 기반하여, 상기 복수의 프로세스들을 릴리즈하는 순서를 지정할 수 있다. 전자 장치(101)는, 상기 복수의 프로세스들을 릴리즈하는 순서를 지정한 것에 기반하여, 상기 순서에 따라 상기 복수의 프로세스들을 릴리즈할 수 있다. 예를 들어, 전자 장치(101)는, 제1 식별자가 할당된 제1 프로세스의 점유 영역을, 제2 식별자가 할당된 제2 프로세스의 점유 영역보다 우선적으로 릴리즈할 수 있다. 전자 장치(101)는, 상기 순서에 따라, 상기 복수의 프로세스들을 릴리즈함으로써, 상대적으로 더 많은 메모리(130)의 영역을 릴리즈할 수 있다. 전자 장치(101)는, 제1 식별자가 할당된 제1 프로세스를 릴리즈함으로써, 프로세서(120)의 연산 속도를 증가시킬 수 있다. As described above, according to one embodiment, the electronic device 101 may identify a plurality of processes occupying areas within the memory 130. The processor 120 of the electronic device 101 may be delayed in accessing a plurality of areas in the memory 130 while the plurality of areas are occupied by the plurality of processes. The electronic device 101 may identify identifiers of the plurality of processes in order to release the plurality of processes from areas formed within the memory 130 . The electronic device 101 may specify an order of releasing the plurality of processes based on the identifiers of the plurality of processes. The electronic device 101 may release the plurality of processes according to the order, based on designating the order of releasing the plurality of processes. For example, the electronic device 101 may release the area occupied by the first process to which the first identifier is assigned with priority over the area occupied by the second process to which the second identifier is assigned. The electronic device 101 may release a relatively larger area of the memory 130 by releasing the plurality of processes in the above order. The electronic device 101 may increase the operation speed of the processor 120 by releasing the first process to which the first identifier is assigned.

도 3은, 일 실시 예에 따른, 지정된 이벤트를 식별하는 전자 장치의 일 예를 도시한다. 도 3의 전자 장치(101)는 도 1, 및/또는 도 2의 전자 장치(101)의 일 예일 수 있다. 도 3의 동작들은 도 1, 및/또는 도 2의 프로세서(120)에 의해 실행될 수 있다. FIG. 3 illustrates an example of an electronic device that identifies a specified event, according to an embodiment. The electronic device 101 of FIG. 3 may be an example of the electronic device 101 of FIG. 1 and/or FIG. 2 . The operations of FIG. 3 may be executed by the processor 120 of FIG. 1 and/or FIG. 2 .

도 3을 참고하면, 일 실시 예에 따른, 전자 장치(101)는, 제1 어플리케이션(310)을 실행할 수 있다. 전자 장치(101)는, 상기 제1 어플리케이션(310)의 실행에 기반하여 발생된 지정된 이벤트(360)를 식별할 수 있다. 상기 지정된 이벤트(360)는, 브로드캐스트와 같은 지정된 인스트럭션과 관련될 수 있다. 전자 장치(101)는, 상기 지정된 이벤트(360)를 식별한 것에 기반하여, 상기 제1 어플리케이션(310)과 상이한 어플리케이션들(320, 330, 340, 350)로, 상기 지정된 이벤트(360)와 관련된 신호를 송신할 수 있다. 전자 장치(101)는, 상기 지정된 이벤트(360)와 관련된 신호에 기반하여, 상기 어플리케이션들(320, 330, 340, 350) 내에 상기 지정된 이벤트(360)와 관련된 오브젝트(예, 브로드캐스트 리시버(broadcast receiver))를 식별할 수 있다. 도 3을 참고하면, 제2 어플리케이션(320)은, 제1 오브젝트(371)를 포함할 수 있다. 제3 어플리케이션(330)은, 제2 오브젝트(372)를 포함할 수 있다. 제4 어플리케이션(340)은, 제3 오브젝트(373)를 포함할 수 있다. 제5 어플리케이션(350)은, 제4 오브젝트(374)를 포함할 수 있다. 도 3의 일 예에서, 제1 오브젝트(371), 및 제3 오브젝트(373)는, 상기 지정된 이벤트(360)와 관련된 오브젝트일 수 있다. 상기 지정된 이벤트(360)와 관련된 오브젝트인 상기 제1 오브젝트(371), 및/또는 상기 제3 오브젝트(373)는, 브로드캐스트 리시버를 포함할 수 있다. 예를 들어, 상기 제1 오브젝트(371)는, 상기 지정된 이벤트(360)의 발생에 기반하여, 상기 제2 어플리케이션(320)의 실행을 야기하기 위한 오브젝트를 포함할 수 있다. 예를 들어, 상기 제3 오브젝트(373)는, 상기 지정된 이벤트(360)의 발생에 기반하여, 상기 제4 어플리케이션(340)의 실행을 야기하기 위한 오브젝트를 포함할 수 있다. 상기 제2 오브젝트(372), 및/또는 상기 제4 오브젝트(374)는, 상기 지정된 이벤트(360)의 발생에 의해 실행되는 오브젝트(예, 브로드캐스트 리시버)를 포함하지 않을 수 있다. 상술한 예는, 일 예이며 상술한 바에 제한되지 않는다. Referring to FIG. 3 , according to one embodiment, the electronic device 101 may execute the first application 310. The electronic device 101 may identify a designated event 360 that occurs based on execution of the first application 310. The designated event 360 may be related to a designated instruction, such as a broadcast. Based on identifying the designated event 360, the electronic device 101 displays applications 320, 330, 340, and 350 different from the first application 310 related to the designated event 360. A signal can be transmitted. The electronic device 101 generates an object (e.g., broadcast receiver) related to the specified event 360 within the applications 320, 330, 340, and 350, based on a signal related to the specified event 360. receiver)) can be identified. Referring to FIG. 3 , the second application 320 may include a first object 371. The third application 330 may include a second object 372. The fourth application 340 may include a third object 373. The fifth application 350 may include a fourth object 374. In the example of FIG. 3 , the first object 371 and the third object 373 may be objects related to the specified event 360 . The first object 371 and/or the third object 373, which are objects related to the designated event 360, may include a broadcast receiver. For example, the first object 371 may include an object for causing execution of the second application 320 based on the occurrence of the specified event 360. For example, the third object 373 may include an object for causing execution of the fourth application 340 based on the occurrence of the designated event 360. The second object 372 and/or the fourth object 374 may not include an object (eg, broadcast receiver) that is executed when the specified event 360 occurs. The above-mentioned examples are examples and are not limited to the above-mentioned examples.

예를 들어, 전자 장치(101)는, 제1 어플리케이션(310)을 실행한 것에 기반하여 지정된 이벤트(360)를 식별할 수 있다. 전자 장치(101)는, 상기 지정된 이벤트(360)의 식별에 기반하여, 제2 어플리케이션(320), 및/또는 제4 어플리케이션(340)을 실행할 수 있다. 전자 장치(101)는, 상기 제2 어플리케이션(320), 및/또는 상기 제4 어플리케이션(340) 내에 포함된 제1 오브젝트(371), 및/또는 제3 오브젝트(373)를 식별한 것에 기반하여, 상기 제2 어플리케이션(320), 및/또는 상기 제4 어플리케이션(340)을 실행할 수 있다. For example, the electronic device 101 may identify a designated event 360 based on executing the first application 310. The electronic device 101 may execute the second application 320 and/or the fourth application 340 based on the identification of the designated event 360. The electronic device 101 based on identifying the first object 371 and/or third object 373 included in the second application 320 and/or the fourth application 340 , the second application 320, and/or the fourth application 340 may be executed.

예를 들어, 전자 장치(101)는, 상기 제2 어플리케이션(320), 및/또는 상기 제4 어플리케이션(340)의 실행에 기반하여, 복수의 프로세스들을 실행할 수 있다. 상기 복수의 프로세스들은, 상기 전자 장치(101)의 디스플레이를 제어하기 위한 화면과 독립적으로 실행될 수 있다. 상기 복수의 프로세스들은, 상기 전자 장치(101)의 디스플레이를 제어하기 위한 화면과 관련되어 실행될 수 있다. 일 실시 예에 따른, 전자 장치(101)는, 프로세스의 일 상태 내에서, 메모리(예, 도 1, 및/또는 메모리(130)) 내에 형성된 일 영역을 점유하도록 지정할 수 있다. 상기 일 영역을 점유하기 위해서, 전자 장치(101)는, 복수의 프로세스들 각각에 식별자를 할당할 수 있다. 프로세스의 일 상태 중 제1 상태는, 프로세서(120)에 의해 실행되는 상태를 포함할 수 있다. 프로세스의 일 상태 중 제2 상태는, 프로세서(120)에 의해 실행되는 상태와 상이한 상태를 포함할 수 있다. 예를 들어, 상기 제2 상태는, 상기 프로세서(120)에 의해 실행되는 상태와 상이한 상태 내에서, 메모리의 일 영역을 점유하는 상태를 포함할 수 있다. For example, the electronic device 101 may execute a plurality of processes based on execution of the second application 320 and/or the fourth application 340. The plurality of processes may be executed independently of the screen for controlling the display of the electronic device 101. The plurality of processes may be executed in relation to a screen for controlling the display of the electronic device 101. According to one embodiment, the electronic device 101 may designate to occupy an area formed in the memory (eg, FIG. 1 and/or the memory 130) within one state of the process. In order to occupy the area, the electronic device 101 may assign an identifier to each of a plurality of processes. The first state among the states of the process may include a state executed by the processor 120. The second state of one state of the process may include a state different from the state executed by the processor 120. For example, the second state may include a state that occupies an area of memory within a state that is different from the state executed by the processor 120.

일 실시 예에 따른, 전자 장치(101)는, 상기 제1 상태의 프로세스를 제2 상태의 프로세스로 스위칭할 수 있다. 예를 들어, 제1 상태의 프로세스와 관련된 어플리케이션의 종료에 기반하여, 상기 제1 상태의 프로세스를 상기 제2 상태의 프로세스로 스위칭할 수 있다. 도 3의 일 예에서, 전자 장치(101)는, 제2 어플리케이션(320), 및/또는 제4 어플리케이션(340)이 실행되는 동안, 복수의 프로세스들을 제1 상태로 실행할 수 있다. 전자 장치(101)는, 상기 제2 어플리케이션(320), 및/또는 상기 제4 어플리케이션(340)의 종료에 기반하여, 상기 복수의 프로세스들을, 상기 제1 상태로부터 상기 제2 상태로 스위칭할 수 있다. According to one embodiment, the electronic device 101 may switch the process in the first state to a process in the second state. For example, based on termination of an application related to a process in the first state, the process in the first state may be switched to a process in the second state. In the example of FIG. 3 , the electronic device 101 may execute a plurality of processes in a first state while the second application 320 and/or the fourth application 340 are executed. The electronic device 101 may switch the plurality of processes from the first state to the second state based on termination of the second application 320 and/or the fourth application 340. there is.

일 실시 예에 따른, 전자 장치(101)는, 메모리 내에 형성된 영역을 점유하는 제2 상태의 프로세스를 릴리즈할 수 있다. 예를 들어, 전자 장치(101)는, 상기 제2 상태의 프로세스를 릴리즈하기 위해 LMKD(low memory killer demon)와 같은, 기능을 실행할 수 있다. 예를 들어, 전자 장치(101)는, 상기 제2 상태의 프로세스를 릴리즈하기 위해 CPU scheduling과 같은, 기능을 실행할 수 있다. 예를 들어, 전자 장치(101)는, 상기 제2 상태의 프로세스를 릴리즈하기 위해, kswapd(kernel swap demon)와 같은, 기능을 실행할 수 있다. 하지만, 상술한 예에 제한되지 않는다. According to one embodiment, the electronic device 101 may release a process in the second state occupying an area formed in the memory. For example, the electronic device 101 may execute a function, such as a low memory killer demon (LMKD), to release the process in the second state. For example, the electronic device 101 may execute a function, such as CPU scheduling, to release the process in the second state. For example, the electronic device 101 may execute a function, such as kswapd (kernel swap daemon), to release the process in the second state. However, it is not limited to the above-described examples.

상술한 바와 같이, 일 실시 예에 따른, 전자 장치(101)는, 제1 어플리케이션(310)은 실행을 식별할 수 있다. 전자 장치(101)는, 상기 제1 어플리케이션(310)의 실행에 기반하여 지정된 이벤트(360)의 발생을 식별할 수 있다. 전자 장치(101)는, 상기 지정된 이벤트(360)의 발생을 식별한 것에 기반하여, 제2 어플리케이션(320) 내지 제5 어플리케이션(350) 내에 포함되는, 제1 오브젝트(371) 내지 제4 오브젝트(374)를 식별할 수 있다. 전자 장치(101)는, 제1 오브젝트(371) 내지 제4 오브젝트(374) 내에 지정된 이벤트(360)의 발생을 식별하기 위한 오브젝트를 포함하는지 여부를 식별할 수 있다. 전자 장치(101)는, 상기 제1 오브젝트(371) 내지 제4 오브젝트(374) 중 적어도 하나 내에 상기 지정된 이벤트(360)의 발생을 식별하기 위한 오브젝트를 포함한 것을 식별한 것에 기반하여, 상기 지정된 이벤트(360)의 발생을 식별하기 위한 오브젝트를 포함하는 어플리케이션을 실행할 수 있다. 예를 들어, 도 3에서 설명된 예시 내에서, 제1 오브젝트(371)는, 상기 지정된 이벤트(360)의 발생을 식별하기 위한 오브젝트를 포함할 수 있다. 제3 오브젝트(373)는, 상기 지정된 이벤트(360)의 발생을 식별하기 위한 오브젝트를 포함할 수 있다. 전자 장치(101)는, 상기 제1 오브젝트(371), 및/또는 상기 제3 오브젝트(373)에 기반하여, 상기 제2 어플리케이션(320), 및/또는 상기 제4 어플리케이션(340)을 실행할 수 있다. 전자 장치(101)는, 상기 제2 어플리케이션(320), 및/또는 상기 제4 어플리케이션(340)의 실행에 기반하여, 복수의 프로세스들을 실행할 수 있다. 전자 장치(101)는, 상기 지정된 이벤트(360)의 발생에 기반하여, 상기 복수의 프로세스들을 실행할 수 있다. 전자 장치(101)는, 지정된 이벤트(360)의 발생에 기반하여, 복수의 프로세스들을 실행함으로써, 전자 장치(101)의 보안을 강화할 수 있다. As described above, according to one embodiment, the electronic device 101 can identify the execution of the first application 310. The electronic device 101 may identify the occurrence of a designated event 360 based on execution of the first application 310. The electronic device 101, based on identifying the occurrence of the designated event 360, generates the first to fourth objects (371) included in the second to fifth applications (320) to (350). 374) can be identified. The electronic device 101 may identify whether the first object 371 to the fourth object 374 includes an object for identifying the occurrence of the specified event 360. The electronic device 101, based on identifying that at least one of the first object 371 to the fourth object 374 includes an object for identifying the occurrence of the specified event 360, detects the specified event 360. An application containing an object for identifying the occurrence of 360 may be executed. For example, in the example described in FIG. 3, the first object 371 may include an object for identifying the occurrence of the specified event 360. The third object 373 may include an object for identifying the occurrence of the specified event 360. The electronic device 101 may execute the second application 320 and/or the fourth application 340 based on the first object 371 and/or the third object 373. there is. The electronic device 101 may execute a plurality of processes based on execution of the second application 320 and/or the fourth application 340. The electronic device 101 may execute the plurality of processes based on the occurrence of the designated event 360. The electronic device 101 may strengthen the security of the electronic device 101 by executing a plurality of processes based on the occurrence of a designated event 360.

일 실시 예에 따른, 전자 장치(101)는, 제2 상태의 복수의 프로세스를 순차적으로 릴리즈할 수 있다. 전자 장치(101)는, 상기 제2 상태의 복수의 프로세스를 릴리즈할 때에, 순위를 지정하여 릴리즈할 수 있다. 상기 순위를 지정하여 릴리즈하는 동작을 도 4에서 후술한다. According to one embodiment, the electronic device 101 may sequentially release a plurality of processes in the second state. When releasing a plurality of processes in the second state, the electronic device 101 may release them by specifying a ranking. The operation of specifying and releasing the ranking will be described later with reference to FIG. 4.

도 4는, 일 실시 예에 따른, 전자 장치에 포함된 메모리 내의 영역들을 점유하는 프로세스들의 일 예를 도시한다. 도 4의 전자 장치(101)는, 도 1, 도 2, 및/또는 도 3의 전자 장치(101)의 일 예일 수 있다. 도 4의 동작들은, 도 1, 및/또는 도 2의 프로세서(120)에 의해 실행될 수 있다. FIG. 4 illustrates an example of processes occupying areas in a memory included in an electronic device, according to an embodiment. The electronic device 101 of FIG. 4 may be an example of the electronic device 101 of FIGS. 1, 2, and/or 3. The operations of FIG. 4 may be executed by the processor 120 of FIG. 1 and/or FIG. 2 .

도 4를 참조하면, 일 실시 예에 따른, 전자 장치(101)는, 지정된 이벤트(예, 도 3의 지정된 이벤트(360))를 식별할 수 있다. 전자 장치(101)는, 상기 지정된 이벤트를 식별한 것에 기반하여, 어플리케이션을 실행할 수 있다. 전자 장치(101)는, 상기 어플리케이션의 실행에 기반하여, 상기 어플리케이션과 관련된 프로세스를 실행할 수 있다. 예를 들어, 전자 장치(101)는, 지정된 이벤트를 식별한 것에 기반하여, 복수의 프로세스들을 실행할 수 있다. 전자 장치(101)의 메모리(130)는, 상기 복수의 프로세스들의 실행에 기반하여, 점유될 수 있다. 예를 들어, 메모리(130) 내의 복수의 영역들은, 상기 프로세스들의 실행에 의해 점유될 수 있다. 전자 장치(101)는, 프로세스를, 상기 복수의 영역들(410 내지 440) 중 적어도 하나를 점유하도록, 지정할 수 있다. 전자 장치(101)는, 상기 프로세스에 식별자를 할당하여 상기 복수의 영역들 중 상기 식별자에 대응하는 영역을 점유하도록 지정할 수 있다. 상기 할당된 식별자에 기반하여 프로세스는, 메모리(130)의 일 영역을 점유할 수 있다. 도 4의 예는, 프로세서에 의해 실행되는 제1 상태와 상이한 제2 상태의 프로세스와 관련된 일 예이며, 후술되는 예에 제한되지 않는다. Referring to FIG. 4 , according to one embodiment, the electronic device 101 may identify a designated event (eg, designated event 360 of FIG. 3 ). The electronic device 101 may execute an application based on identifying the designated event. The electronic device 101 may execute a process related to the application based on execution of the application. For example, the electronic device 101 may execute a plurality of processes based on identifying a designated event. The memory 130 of the electronic device 101 may be occupied based on execution of the plurality of processes. For example, multiple areas within memory 130 may be occupied by execution of the processes. The electronic device 101 may designate a process to occupy at least one of the plurality of areas 410 to 440. The electronic device 101 may assign an identifier to the process and designate it to occupy an area corresponding to the identifier among the plurality of areas. Based on the assigned identifier, a process may occupy an area of the memory 130. The example in FIG. 4 is an example involving a process in a second state different from the first state executed by a processor, and is not limited to the examples described below.

도 4를 참조하면, 일 실시 예에 따른, 전자 장치(101)는, 제2 상태의 프로세스 중 적어도 일부 프로세스에 제1 식별자를 할당할 수 있다. 상기 제1 식별자는, cch-act로 참조될 수 있다. 전자 장치(101)는, 제2 상태의 프로세스 중 적어도 일부 프로세스에 제2 식별자를 할당할 수 있다. 상기 제2 식별자는, cch-empty로 참조될 수 있다. 전자 장치(101)는, 제4 프로세스(421), 제5 프로세스(422), 제6 프로세스(423), 제10 프로세스(441), 제11 프로세스(442), 및 제12 프로세스(443)에 제1 식별자를 할당할 수 있다. 전자 장치(101)는, 제1 프로세스(411), 제2 프로세스(412), 제3 프로세스(413), 제7 프로세스(431), 제8 프로세스(432), 및 제9 프로세스(433)에 제2 식별자를 할당할 수 있다. 예를 들어, 상기 제1 식별자는, 제2 상태로 스위칭되기 이전에, 디스플레이를 제어하기 위한 화면과 관련된 프로세스에 할당될 수 있다. 예를 들어, 상기 제2 식별자는, 상기 제2 상태로 스위칭되기 이전에, 상기 디스플레이를 제어하기 위한 화면과 독립적으로 실행되었던 프로세스에 할당될 수 있다. 상기 독립적으로 실행되는 동작은, 상기 디스플레이를 통하여 화면에 표시되지 않은 상태 내에서, 프로세서에 의해 실행되는 동작을 포함할 수 있다. Referring to FIG. 4 , according to one embodiment, the electronic device 101 may assign a first identifier to at least some of the processes in the second state. The first identifier may be referred to as cch-act. The electronic device 101 may assign a second identifier to at least some of the processes in the second state. The second identifier may be referred to as cch-empty. The electronic device 101 performs the fourth process 421, the fifth process 422, the sixth process 423, the tenth process 441, the eleventh process 442, and the twelfth process 443. A first identifier may be assigned. The electronic device 101 performs a first process 411, a second process 412, a third process 413, a seventh process 431, an eighth process 432, and a ninth process 433. A second identifier may be assigned. For example, the first identifier may be assigned to a process associated with a screen for controlling the display before switching to the second state. For example, the second identifier may be assigned to a process that was executed independently of the screen for controlling the display before switching to the second state. The independently executed operation may include an operation executed by a processor in a state that is not displayed on the screen through the display.

일 실시 예에 따른, 전자 장치(101)는, 도 4 내에서 도시된 프로세스들(411, 412, 413, 421, 422, 423, 431, 432, 433, 441, 442, 443)과 상이한 복수의 프로세스들 중 적어도 하나가 실행되는 동안, 메모리(130)로 액세스하는 상기 복수의 프로세스들에 의해 야기된 지연을 나타내는 파라미터를 식별할 수 있다. 상기 복수의 프로세스들에 의해 야기된 지연을 나타내는 파라미터는, PSI로 참조될 수 있다. 상기 지연을 나타내는 파라미터와 관련된 설명은, 도 5에서 후술된다. 일 실시 예에 따른, 전자 장치(101)는, 지정된 파라미터를 초과하는 상기 파라미터를 식별할 수 있다. 상기 지정된 파라미터는, PSI 20으로 참조될 수 있다. 전자 장치(101)는, 상기 지정된 파라미터를 초과하는 상기 파라미터를 식별하는 것에 기반하여, 메모리(130) 내에 상기 프로세서에 의해 실행되었던 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절할 수 있다. According to one embodiment, the electronic device 101 includes a plurality of processes different from the processes 411, 412, 413, 421, 422, 423, 431, 432, 433, 441, 442, and 443 shown in FIG. 4. A parameter may be identified that represents the delay caused by the plurality of processes accessing memory 130 while at least one of the processes is executing. A parameter representing the delay caused by the plurality of processes may be referred to as PSI. A description related to the parameters representing the delay will be described later with reference to FIG. 5 . According to one embodiment, the electronic device 101 may identify the parameter that exceeds the specified parameter. The specified parameter may be referred to as PSI 20. The electronic device 101 may adjust the threshold used to maintain the process executed by the processor in the memory 130 in the second state based on identifying the parameter that exceeds the specified parameter.

예를 들어, 전자 장치(101)는, 제2 식별자가 할당된 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 증가시킬 수 있다. 예를 들어, 전자 장치(101)는, 상기 제2 식별자가 할당된 제2 상태의 프로세스를 유지하는데 이용되는 임계치를, 30의 2배인 60으로 조절할 수 있다. 예를 들어, 전자 장치(101)는, 제1 식별자가 할당된 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 감소시킬 수 있다. 예를 들어, 전자 장치(101)는, 상기 제1 식별자가 할당된 제2 상태의 프로세스를 유지하는데 이용되는 임계치를, 16의 1/4배인 4로 조절할 수 있다. 하지만, 상술한 예에 제한되지 않는다. 상기 임계치, 및 배수는, 예시적인 것일 뿐 이에 제한되지 않는다. 일 실시 예에 따른, 전자 장치(101)는, 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절한 것에 기반하여, 상기 제2 상태의 프로세스에 의해 점유된 일 영역을 릴리즈할 수 있다. 예를 들어, 전자 장치(101)는, 상기 제2 상태의 프로세스를 릴리즈할 때에, 순위를 지정하여 릴리즈할 수 있다. 예를 들어, 전자 장치(101)는, 제1 식별자가 할당된 제2 상태의 프로세스들(421, 422, 423, 441, 442, 443)에 의해 점유된 영역을, 제2 식별자가 할당된 제2 상태의 프로세스들(411, 412, 413, 431, 432, 433)에 의해 점유된 영역에 비해, 높은 순위로 릴리즈할 수 있다. 예를 들어, 전자 장치(101)는, 제2 영역(420)을 제1 순위로 지정할 수 있다. 전자 장치(101)는, 제4 영역(440)을 제2 순위로 지정할 수 있다. 전자 장치(101)는, 제1 영역(410)을 제3 순위로 지정할 수 있다. 전자 장치(101)는, 제3 영역(430)을 제4 순위로 지정할 수 있다. 전자 장치(101)는, 메모리의 영역들(410, 420, 430, 440)을 점유하는 프로세스들(411, 412, 413, 421, 422, 423, 431, 432, 433, 441, 442, 443)을 릴리즈할 때에, 상기 지정된 순위에 기반하여 릴리즈할 수 있다. 예를 들어, 전자 장치(101)는, 상기 지정된 순위에 기반하여, 순차적으로 프로세스들(411, 412, 413, 421, 422, 423, 431, 432, 433, 441, 442, 443)을 릴리즈할 수 있다. For example, the electronic device 101 may increase the threshold used to maintain the process in the second state to which the second identifier is assigned. For example, the electronic device 101 may adjust the threshold used to maintain the process in the second state to which the second identifier is assigned to 60, which is twice 30. For example, the electronic device 101 may decrease the threshold used to maintain the process in the second state to which the first identifier is assigned. For example, the electronic device 101 may adjust the threshold used to maintain the process in the second state to which the first identifier is assigned to 4, which is 1/4 times 16. However, it is not limited to the above-described examples. The above thresholds and multiples are illustrative only and are not limited thereto. According to one embodiment, the electronic device 101 may release an area occupied by a process in the second state based on adjusting the threshold used to maintain the process in the second state. For example, when releasing a process in the second state, the electronic device 101 may release it by specifying a priority. For example, the electronic device 101 divides the area occupied by the processes 421, 422, 423, 441, 442, and 443 in the second state to which the first identifier is assigned to the first identifier to which the second state is assigned. Compared to the area occupied by the two-state processes (411, 412, 413, 431, 432, and 433), it can be released at a high priority. For example, the electronic device 101 may designate the second area 420 as the first priority. The electronic device 101 may designate the fourth area 440 as the second priority. The electronic device 101 may designate the first area 410 as the third priority. The electronic device 101 may designate the third area 430 as the fourth priority. The electronic device 101 includes processes 411, 412, 413, 421, 422, 423, 431, 432, 433, 441, 442, 443 that occupy memory areas 410, 420, 430, and 440. When releasing, it can be released based on the ranking specified above. For example, the electronic device 101 sequentially releases processes 411, 412, 413, 421, 422, 423, 431, 432, 433, 441, 442, and 443, based on the specified ranking. You can.

일 실시 예에 따른, 전자 장치(101)는, 프로세서의 지연을 나타내는 파라미터가 지정된 파라미터인 제1 파라미터를 식별한 것에 기반하여, 제2 상태의 프로세스를 유지하는데 이용되는 제1 임계치로 조절할 수 있다. 상기 제1 파라미터는, PSI 20으로 참조될 수 있다. 하지만, 상술한 예에 제한되지 않는다. 전자 장치(101)는, 상기 제1 파라미터와 상이한 제2 파라미터를 식별한 것에 기반하여, 상기 조절된 제1 임계치를, 조절되기 이전의 임계치인 제2 임계치로 조절할 수 있다. 예를 들어, 상기 제2 파라미터는, PSI 10으로 참조될 수 있다. 상기 제2 임계치는, 예를 들어, 제1 식별자가 할당된 제2 프로세스를 유지하는데 이용되는 임계치인 경우, 16일 수 있다. 상기 제2 임계치는, 예를 들어, 제2 식별자가 할당된 제2 프로세스를 유지하는데 이용되는 임계치인 경우 30일 수 있다. 하지만, 이에 제한되지 않는다. According to one embodiment, the electronic device 101 may adjust the parameter representing the delay of the processor to the first threshold used to maintain the process in the second state based on identifying the first parameter, which is a designated parameter. . The first parameter may be referred to as PSI 20. However, it is not limited to the above-described examples. The electronic device 101 may adjust the adjusted first threshold to a second threshold that is the threshold before adjustment, based on identifying a second parameter that is different from the first parameter. For example, the second parameter may be referred to as PSI 10. The second threshold may be, for example, 16 if it is a threshold used to maintain the second process to which the first identifier is assigned. The second threshold may be, for example, 30 if it is a threshold used to maintain the second process to which the second identifier is assigned. However, it is not limited to this.

일 실시 예에 따른, 전자 장치(101)는, 조절된 임계치에 기반하여, 프로세스들을 릴리즈하는 상태 내에서, 지정된 기간(duration)을 초과한 것을 식별할 수 있다. 전자 장치(101)는, 상기 지정된 기간을 초과한 것을 식별한 것에 기반하여, 조절된 임계치인 제1 임계치를, 제2 임계치로 조절할 수 있다. 예를 들어, 상기 지정된 기간은, 약 1분을 포함할 수 있다. According to one embodiment, the electronic device 101 may identify processes that have exceeded a specified duration within a state of releasing processes based on the adjusted threshold. The electronic device 101 may adjust the first threshold, which is the adjusted threshold, to the second threshold based on identifying that the specified period has been exceeded. For example, the specified period of time may include approximately 1 minute.

일 실시 예에 따른, 전자 장치(101)는, 제2 상태의 프로세스가 실행된 횟수를 식별할 수 있다. 예를 들어, 전자 장치(101)는, 제2 식별자가 할당된 제2 상태의 프로세스가 실행된 횟수를 식별할 수 있다. 전자 장치(101)는, 상기 제2 상태의 프로세스가 실행된 횟수가 지정된 횟수를 초과하는 것을 식별할 수 있다. 전자 장치(101)는, 상기 지정된 횟수를 초과하는 제2 상태의 프로세스가 실행된 횟수를 식별한 것에 기반하여, 상기 지정된 횟수를 초과하여 실행된 제2 상태의 프로세스를 포함하는 리스트를 획득할 수 있다. 전자 장치(101)는, 상기 제2 상태의 프로세스를 포함하는 상기 리스트를 획득한 것에 기반하여, 상기 제2 상태의 프로세스에 의해 점유된 메모리의 일 영역을 유지할 수 있다. According to one embodiment, the electronic device 101 may identify the number of times the process in the second state has been executed. For example, the electronic device 101 may identify the number of times a process in the second state to which the second identifier is assigned has been executed. The electronic device 101 may identify that the number of times the process in the second state has been executed exceeds a specified number of times. The electronic device 101 may obtain a list including processes in the second state that have been executed more than the specified number of times, based on identifying the number of times that the process in the second state that has exceeded the specified number of times has been executed. there is. The electronic device 101 may maintain an area of memory occupied by a process in the second state based on obtaining the list including the process in the second state.

상술한 바와 같이, 일 실시 예에 따른, 전자 장치(101)는, 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절할 수 있다. 전자 장치(101)는, 상기 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 조절한 것에 기반하여, 상기 제2 상태의 프로세스에 의해 점유되는 메모리(130)의 일 영역을 릴리즈할 수 있다. 전자 장치(101)는, 상기 제2 상태의 프로세스에 의해 점유되는 일 영역을 릴리즈할 때에, 순위를 지정하여 릴리즈할 수 있다. 전자 장치(101)는, 상기 순위를 지정하여 릴리즈함으로써, 반복적인 프로세스의 실행을 감소시킬 수 있다. 전자 장치(101)는, 순위를 지정하여 릴리즈를 함으로써, 프로세서의 연산 속도를 증가시킬 수 있다. As described above, according to one embodiment, the electronic device 101 may adjust the threshold used to maintain the process in the second state. The electronic device 101 may release an area of the memory 130 occupied by the process in the second state based on adjusting the threshold used to maintain the process in the second state. When releasing an area occupied by a process in the second state, the electronic device 101 may release it by specifying a priority. The electronic device 101 can reduce the execution of repetitive processes by specifying and releasing the ranking. The electronic device 101 can increase the processing speed of the processor by specifying the ranking and releasing.

도 5는, 일 실시 예에 따른, 프로세스들에 의해 야기된 지연과 관련된 일 예를 도시한다. 도 5의 전자 장치(101)는, 도 1, 도 2, 도 3, 및/또는 도 4의 전자 장치(101)의 일 예일 수 있다. 도 5의 프로세서(120)는, 도 1, 및/또는 도 2의 프로세서(120)의 일 예일 수 있다. 도 5의 동작들은, 도 1, 도 2, 및/또는 도 5의 프로세서(120)에 의해 실행될 수 있다. Figure 5 shows an example related to delays caused by processes, according to one embodiment. The electronic device 101 of FIG. 5 may be an example of the electronic device 101 of FIGS. 1, 2, 3, and/or 4. The processor 120 of FIG. 5 may be an example of the processor 120 of FIG. 1 and/or FIG. 2 . The operations of Figure 5 may be executed by the processor 120 of Figures 1, 2, and/or 5.

도 5를 참조하면, 일 실시 예에 따른, 전자 장치(101)는, 프로세서(120)를 포함할 수 있다. 전자 장치(101)는, 상기 프로세서(120)를 이용하여, 메모리(예, 도 1, 및/또는 도 2의 메모리(130))로 액세스할 때에, 복수의 프로세스들에 의해 야기된 지연을 나타내는 파라미터를 식별할 수 있다. 예를 들어, 상기 파라미터는, PSI로 참조될 수 있다. 예를 들어, 상기 파라미터는, 지정된 기간(예, 약 1초, 또는 약 10초) 동안, 프로세서(120)의 동작이 적어도 일시적으로 중단된 기간과 관련될 수 있다. 예를 들어, 상기 지연은, 프로세서(120)가 메모리(130)로 액세스하는 동안, 상기 메모리(130)를 점유하는 복수의 프로세스들에 의해 야기될 수 있다. Referring to FIG. 5 , the electronic device 101 according to one embodiment may include a processor 120. The electronic device 101 uses the processor 120 to display a delay caused by a plurality of processes when accessing memory (e.g., memory 130 of FIG. 1 and/or FIG. 2). Parameters can be identified. For example, the parameter may be referred to as PSI. For example, the parameter may be related to a period in which operation of the processor 120 is at least temporarily suspended for a specified period of time (e.g., about 1 second, or about 10 seconds). For example, the delay may be caused by multiple processes occupying memory 130 while processor 120 accesses memory 130 .

예를 들어, 프로세서(120)가 상기 메모리(130)과 상이한 비휘발성 메모리로부터 데이터를 수신하는 동안, 상기 메모리(130)의 영역을 점유하는 복수의 프로세스들에 의해, 상기 비휘발성 메모리로부터 상기 메모리(130)로 데이터의 송신이 불가능할 때에, 상기 지연이 발생될 수 있다. 예를 들어, 프로세서(120)가 상기 비휘발성 메모리로 데이터를 송신하는 동안, 상기 메모리(130)의 영역을 점유하는 복수의 프로세스들에 의해, 상기 프로세서(120)로부터 상기 메모리(130)로 데이터의 송신이 불가능할 때에, 상기 지연이 발생할 수 있다. 예를 들어, 상기 지연은, 프로세서(120)가 캐시 메모리로부터, 메모리(130)의 일 영역에 액세스하는 동안, 상기 메모리(130) 내에 형성된 영역을 복수의 프로세스들이 점유한 것에 기반하여 발생될 수 있다. 예를 들어, 상기 지연은, 프로세서(120)로 페치된 인스트럭션의 실행을 위해 요구되는 데이터가, 프로세서(120) 내 캐시 메모리에 존재하지 않아(예, 캐시 미스(miss)), 휘발성 메모리, 및/또는 비휘발성 메모리로부터 상기 데이터를 가져오는 동안 발생될 수 있다. 예를 들어, 상기 지연은, 프로세서(120)가 특정 인스트럭션의 실행에 기반하여, 휘발성 메모리, 및 비휘발성 메모리 사이의 데이터의 이동, 및/또는 비휘발성 메모리 내에서의 데이터의 이동을 제어하는 상태 내에서, 상기 데이터의 이동이 완료될 때까지 상기 특정 인스트럭션 이후의 다른 인스트럭션을 실행하지 않음에 의하여, 발생될 수 있다. 상기 지연에 의해 프로세서(120)의 동작이 적어도 일시적으로 중단될 수 있다. 상기 지연은, 상술한 예시에 의해 제한되지 않는다. For example, while the processor 120 is receiving data from a non-volatile memory different from the memory 130, the memory may be transferred from the non-volatile memory by a plurality of processes occupying an area of the memory 130. When transmission of data to 130 is not possible, the delay may occur. For example, while the processor 120 is transmitting data to the non-volatile memory, data is transferred from the processor 120 to the memory 130 by a plurality of processes occupying areas of the memory 130. The delay may occur when transmission of is not possible. For example, the delay may occur based on a plurality of processes occupying an area formed within the memory 130 while the processor 120 accesses an area of the memory 130 from the cache memory. there is. For example, the delay may occur because data required for execution of an instruction fetched to the processor 120 is not present in the cache memory within the processor 120 (e.g., a cache miss), volatile memory, and /or may occur while retrieving the data from non-volatile memory. For example, the delay may be a condition in which the processor 120 controls the movement of data between volatile memory and non-volatile memory, and/or the movement of data within non-volatile memory, based on the execution of a specific instruction. This can occur by not executing other instructions after the specific instruction until the data movement is completed. Due to the delay, the operation of the processor 120 may be at least temporarily stopped. The delay is not limited by the examples described above.

도 5를 참조하면, 프로세서(120)는, 지정된 기간인 제1 기간(510)을 식별할 수 있다. 프로세서(120)는, 복수의 프로세스들에 의해 야기된 것에 기반하여, 지연된 제2 기간(520)을 식별할 수 있다. 프로세서(120)는, 복수의 프로세스들에 의해 지연된 기간과 상이한 기간인 제3 기간(530)을 식별할 수 있다. 프로세서(120)는, 상기 제1 기간(510)에 대한 상기 제2 기간(520)의 비율에 기반하여, 파라미터를 획득할 수 있다. 예를 들어, 파라미터는, 제2 기간(520)을 제1 기간(510)으로 나눈 값에 100을 곱한 값을 통해 나타낼 수 있다. 상기 비율에 기반하여 획득된 파라미터를 식별한 프로세서(120)는, 복수의 프로세스들이 점유하는 메모리 내에 형성된 영역을 조절할 수 있다. Referring to FIG. 5, the processor 120 may identify a first period 510, which is a designated period. Processor 120 may identify a second period of delay 520 based on that caused by a plurality of processes. The processor 120 may identify a third period 530 that is different from the period delayed by the plurality of processes. The processor 120 may obtain a parameter based on the ratio of the second period 520 to the first period 510. For example, the parameter can be expressed as a value obtained by dividing the second period 520 by the first period 510 and multiplying it by 100. The processor 120, which identifies the parameters obtained based on the ratio, can adjust the area formed in the memory occupied by a plurality of processes.

일 실시 예에 따른, 프로세서(120)는, 상기 파라미터가 지정된 파라미터인 제1 파라미터를 초과하는 것을 식별할 수 있다. 프로세서(120)는, 상기 제1 파라미터를 식별한 것에 기반하여, 복수의 프로세스들에 의해 점유되는 메모리 내에 형성된 영역을 조절할 수 있다. 프로세서(120)는, 상기 제1 파라미터를 식별한 것에 기반하여, 상기 메모리 내에 형성된 영역을 지정하기 위한 임계치를 조절할 수 있다. 프로세서(120)는, 프로세서(120)에 의해 실행되는 제1 상태와 상이한 제2 상태의 프로세스에 할당할 수 있는 식별자의 개수를 조절할 수 있다. 프로세서(120)는, 상기 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절할 수 있다. 상기 임계치는, 상기 제2 상태의 프로세스에 할당된 식별자에 따라 상이해질 수 있다. According to one embodiment, the processor 120 may identify that the parameter exceeds a first parameter, which is a designated parameter. The processor 120 may adjust the area formed in the memory occupied by a plurality of processes based on identifying the first parameter. The processor 120 may adjust a threshold for designating an area formed in the memory based on identifying the first parameter. The processor 120 may adjust the number of identifiers that can be assigned to processes in a second state that are different from the first state executed by the processor 120. The processor 120 may adjust the threshold used to maintain the process in the second state. The threshold may vary depending on the identifier assigned to the process in the second state.

일 실시 예에 따른, 프로세서(120)는, 메모리 내에 형성된 영역에 복수의 프로세스들을 할당할 수 있는 부분 영역의 개수를 조절할 수 있다. 예를 들어, 프로세서(120)는, 디스플레이를 제어하기 위한 화면과 관련된 프로세스에 제1 식별자를 할당할 수 있다. 프로세서(120)는, 디스플레이를 제어하기 위한 화면과 독립적으로 실행되는 프로세스에 제2 식별자를 할당할 수 있다. 프로세서(120)는, 제1 파라미터를 식별한 것에 기반하여, 상기 제1 식별자가 할당된 제2 상태의 프로세스를, 상기 제2 식별자가 할당된 제2 상태의 프로세스보다 우선적으로 릴리즈할 수 있다. According to one embodiment, the processor 120 may adjust the number of partial regions to which a plurality of processes can be assigned to a region formed in the memory. For example, the processor 120 may assign a first identifier to a process related to a screen for controlling the display. The processor 120 may assign a second identifier to a process that runs independently of the screen for controlling the display. Based on identifying the first parameter, the processor 120 may release a process in the second state to which the first identifier is assigned with priority over a process in the second state to which the second identifier is assigned.

상술한 바와 같이, 일 실시 예에 따른, 전자 장치(101)는, 메모리로 액세스 복수의 프로세서들에 의해 야기된 지연을 식별할 수 있다. 전자 장치(101)는, 상기 지연을 나타내는 파라미터를 식별할 수 있다. 전자 장치(101)는, 상기 지연을 나타내는 파라미터를 식별한 것에 기반하여, 지정된 파라미터인 제1 파라미터를 초과하는 파라미터를 식별할 수 있다. 전자 장치(101)는, 상기 제1 파라미터를 초과하는 파라미터를 식별한 것에 기반하여, 메모리 내에 프로세서(120)에 의해 실행되는 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절할 수 있다. 전자 장치(101)는, 상기 임계치를 조절하는 동안, 상기 제2 상태의 프로세스들을 메모리로부터 릴리즈할 수 있다. 전자 장치(101)는, 상기 제2 상태의 프로세스들을 메모리로부터 릴리즈할 때에, 순위를 정하여 릴리즈할 수 있다. 전자 장치(101)는, 제1 식별자가 할당된 제2 상태의 프로세스를, 제2 식별자가 할당된 제2 상태의 프로세스에 비해 우선적으로 릴리즈할 수 있다. 전자 장치(101)는, 상기 제1 식별자가 할당된 제2 상태의 프로세스를 우선적으로 릴리즈함으로써, 프로세서(120)의 연산 속도를 증가시킬 수 있다. As described above, according to one embodiment, the electronic device 101 may identify a delay caused by a plurality of processors accessing memory. The electronic device 101 may identify a parameter indicating the delay. The electronic device 101 may identify a parameter that exceeds the first parameter, which is a designated parameter, based on identifying the parameter indicating the delay. The electronic device 101 may adjust the threshold used to maintain the process in the second state executed by the processor 120 in the memory based on identifying the parameter exceeding the first parameter. The electronic device 101 may release processes in the second state from memory while adjusting the threshold. When releasing the processes in the second state from memory, the electronic device 101 may determine their priority and release them. The electronic device 101 may release a process in the second state to which the first identifier is assigned preferentially compared to a process in the second state to which the second identifier is assigned. The electronic device 101 may increase the operation speed of the processor 120 by preferentially releasing a process in the second state to which the first identifier is assigned.

도 6은, 일 실시 예에 따른, 전자 장치의 동작에 관한 흐름도의 일 예를 도시한다. 도 6의 전자 장치는, 도 1, 도 2, 도 3, 도 4, 및/또는 도 5의 전자 장치(101)의 일 예일 수 있다. 도 6의 동작들은, 도 1, 도 2, 및/또는 도 5의 프로세서(120)의 일 예일 수 있다. 도 6의 동작들은, 도 1, 도 2, 및/또는 도 5의 프로세서(120)에 의해 실행될 수 있다. 이하 실시 예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. Figure 6 shows an example of a flowchart regarding the operation of an electronic device, according to an embodiment. The electronic device of FIG. 6 may be an example of the electronic device 101 of FIGS. 1, 2, 3, 4, and/or 5. The operations of FIG. 6 may be an example of the processor 120 of FIGS. 1, 2, and/or 5. The operations of Figure 6 may be executed by the processor 120 of Figures 1, 2, and/or 5. In the following embodiments, each operation may be performed sequentially, but is not necessarily performed sequentially. For example, the order of each operation may be changed, and at least two operations may be performed in parallel.

도 6을 참조하면, 동작 601에서, 일 실시 예에 따른, 전자 장치는, 제1 어플리케이션을 실행할 수 있다. 전자 장치는, 상기 제1 어플리케이션의 실행에 기반하여, 상기 제1 어플리케이션과 상이한 복수의 어플리케이션의 실행을 위한 지정된 이벤트를 식별할 수 있다. 지정된 이벤트는, 브로드캐스트로 참조될 수 있다. 전자 장치는, 상기 지정된 이벤트를 식별한 것에 기반하여, 복수의 어플리케이션의 실행과 함께, 복수의 프로세스들을 실행할 수 있다. Referring to FIG. 6, in operation 601, according to one embodiment, the electronic device may execute a first application. Based on the execution of the first application, the electronic device may identify a designated event for execution of a plurality of applications different from the first application. The specified event may be referenced as a broadcast. The electronic device may execute a plurality of processes along with execution of a plurality of applications based on identifying the designated event.

동작 603에서, 일 실시 예에 따른, 전자 장치는, 지정된 이벤트(예, 브로드캐스트)를 식별할 수 있다. 전자 장치는, 상기 지정된 이벤트의 식별에 기반하여, 복수의 프로세스들을 실행할 수 있다. 상기 복수의 프로세스들 중 적어도 일부는, 포어그라운드 모드로 실행될 수 있다. 상기 복수의 프로세스들 중 적어도 일부는, 백그라운드 모드로 실행될 수 있다. 예를 들어, 상기 포어그라운드 모드로 실행되는 적어도 일부의 프로세스, 및 상기 백그라운드 모드로 실행되는 적어도 일부의 프로세스는, 제1 상태의 프로세스로 참조될 수 있다. 예를 들어, 복수의 프로세스들 중 적어도 일부는, 상기 제1 상태와 상이한 제2 상태로 메모리(예, 도 1, 및/또는 도 2의 메모리(130)) 내에 형성된 일 영역을 점유할 수 있다. 전자 장치는, 메모리로 액세스하는 동안, 상기 제2 상태의 프로세스들에 의해 점유된 영역에 기반하여, 지연이 야기될 수 있다. In operation 603, according to one embodiment, the electronic device may identify a designated event (eg, broadcast). The electronic device may execute a plurality of processes based on the identification of the specified event. At least some of the plurality of processes may be executed in foreground mode. At least some of the plurality of processes may be executed in background mode. For example, at least some processes running in the foreground mode and at least some processes running in the background mode may be referred to as processes in the first state. For example, at least some of the plurality of processes may occupy an area formed in the memory (e.g., memory 130 of FIG. 1 and/or FIG. 2) in a second state that is different from the first state. . The electronic device may experience delays while accessing memory, based on the area occupied by processes in the second state.

동작 605에서, 일 실시 예에 따른, 전자 장치는, 복수의 프로세스들 중 적어도 하나가 실행되는 것을 식별할 수 있다. 전자 장치는, 복수의 프로세스들 중 적어도 하나가 실행되는 동안, 메모리로 액세스하는 복수의 프로세스들에 의해 야기된 지연을 식별할 수 있다. 전자 장치는, 메모리로 액세스하는 복수의 프로세스들에 의해 야기된 지연을 나타내는 파라미터를 식별할 수 있다. 예를 들어, 상기 지연을 나타내는 파라미터는, PSI로 참조될 수 있다. 상기 PSI는, 지정된 기간, 및 프로세서(예, 도 1, 및/또는 도 2의 프로세서(120))의 코어 중 적어도 일부가, 적어도 일시적으로 중단된 기간 사이의 비율과 관련될 수 있다. 전자 장치는, 상기 파라미터가 지정된 파라미터를 초과하는 것을 식별할 수 있다. In operation 605, according to one embodiment, the electronic device may identify that at least one of a plurality of processes is being executed. The electronic device may identify a delay caused by a plurality of processes accessing memory while at least one of the plurality of processes is executing. The electronic device can identify a parameter that indicates the delay caused by a plurality of processes accessing the memory. For example, the parameter representing the delay may be referred to as PSI. The PSI may be related to a ratio between a specified period of time and a period of time during which at least some of the cores of a processor (e.g., processor 120 of FIGS. 1 and/or 2) are at least temporarily suspended. The electronic device can identify that the parameter exceeds a specified parameter.

동작 607에서, 일 실시 예에 따른, 전자 장치는, 지정된 파라미터를 초과하는 파라미터를 식별할 수 있다. 전자 장치는, 상기 지정된 파라미터를 초과하는 파라미터를 식별하는 것에 기반하여, 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절할 수 있다. 전자 장치는, 지정된 파라미터를 초과하는 파라미터를 식별하는 것에 기반하여, 메모리 내에 프로세서에 의해 실행되는 제1 상태와 상이한 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절할 수 있다. In operation 607, according to one embodiment, the electronic device may identify a parameter that exceeds a specified parameter. The electronic device may adjust the threshold used to maintain the process in the second state based on identifying parameters that exceed the specified parameters. The electronic device may adjust the threshold used to maintain the process in a second state that is different from the first state being executed by the processor in memory based on identifying the parameter that exceeds the specified parameter.

예를 들어, 전자 장치는, 제1 식별자가 할당된 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 감소시킬 수 있다. 예를 들어, 전자 장치는, 제2 식별자가 할당된 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 증가시킬 수 있다. 전자 장치는, 상기 임계치를 조절한 것에 기반하여, 상기 제1 식별자가 할당된 제2 상태의 프로세스, 및 상기 제2 식별자가 할당된 제2 상태의 프로세스를, 메모리로부터 릴리즈할 수 있다. 전자 장치는, 제2 상태의 프로세스를 릴리즈할 때에, 제1 식별자가 할당된 제2 상태의 프로세스를, 제2 식별자가 할당된 제2 상태의 프로세스에 비해 우선적으로 릴리즈할 수 있다. 전자 장치는, 상기 제1 식별자가 할당된 제2 상태의 프로세스를 상기 제2 식별자가 할당된 제2 상태의 프로세스에 비해 우선적으로 릴리즈함으로써, 메모리로 액세스할 때에, 더 빠르게 액세스할 수 있다. For example, the electronic device may decrease the threshold used to maintain the process in the second state to which the first identifier is assigned. For example, the electronic device may increase the threshold used to maintain the process in the second state to which the second identifier is assigned. Based on adjusting the threshold, the electronic device may release the process in the second state to which the first identifier is assigned and the process in the second state to which the second identifier is assigned from memory. When releasing a process in the second state, the electronic device may release the process in the second state to which the first identifier is assigned with priority over the process to the second state to which the second identifier is assigned. The electronic device can access memory more quickly by releasing the process in the second state to which the first identifier is assigned preferentially compared to the process in the second state to which the second identifier is assigned.

동작 609에서, 일 실시 예에 따른, 전자 장치는, 복수의 프로세스들에 의해 점유된 일 영역(an area)을 릴리즈할 수 있다. 전자 장치는, 복수의 프로세스들 중에서, 제2 상태로 스위칭 되는 프로세스를 식별할 수 있다. 전자 장치는, 복수의 프로세스들 중에서, 상기 제2 상태로 스위칭 되는 프로세스를 식별하는 것에 기반하여, 상기 제2 상태로 스위칭된 프로세스에 의해 점유된 일 영역을 릴리즈할 수 있다. 전자 장치는, 상기 복수의 프로세스들 중에서, 제2 상태로 스위칭 되는 프로세스를 식별하는 것에 기반하여, 조절된 임계치에 기반하여, 복수의 프로세스들에 의해 점유된 복수의 영역들 중에서 제2 상태로 스위칭된 프로세스에 의해 점유된 일 영역을 릴리즈할 수 있다. In operation 609, according to one embodiment, the electronic device may release an area occupied by a plurality of processes. The electronic device can identify a process that switches to the second state among a plurality of processes. The electronic device may release an area occupied by a process switched to the second state based on identifying the process switched to the second state among a plurality of processes. The electronic device switches to a second state among a plurality of regions occupied by a plurality of processes based on an adjusted threshold, based on identifying a process to be switched to the second state among the plurality of processes. The area occupied by the processed process can be released.

상술한 바와 같이, 일 실시 예에 따른, 전자 장치는, 복수의 프로세스들 중 적어도 하나가 실행되는 동안, 메모리로 액세스하는 상기 복수의 프로세스들에 의해 야기된 지연을 나타내는 파라미터를 식별할 수 있다. 전자 장치는, 지정된 파라미터를 초과하는 상기 파라미터를 식별하는 것에 기반하여, 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절할 수 있다. 전자 장치는, 상기 복수의 프로세스들 중에서 상기 제2 상태로 스위칭되는 프로세스를 식별하는 것에 기반하여, 상기 조절된 임계치에 기반하여, 메모리 내에 형성된 복수의 영역들 중에서 제2 상태로 스위칭된 프로세스에 의해 점유된 일 영역을 릴리즈할 수 있다. 전자 장치는, 제2 상태의 프로세스 중 제1 식별자가 할당된 제2 상태의 프로세스를 릴리즈할 수 있다. 전자 장치는, 상기 제1 식별자가 할당된 제2 상태의 프로세스를 릴리즈함으로써, 프로세서의 연산 속도를 증가시킬 수 있다. As described above, according to one embodiment, the electronic device may identify a parameter indicating a delay caused by a plurality of processes accessing memory while at least one of the plurality of processes is executed. The electronic device may adjust the threshold used to maintain the process in the second state based on identifying the parameter that exceeds the specified parameter. Based on identifying the process switched to the second state among the plurality of processes, the electronic device determines the process switched to the second state among the plurality of areas formed in the memory, based on the adjusted threshold. An occupied area can be released. The electronic device may release a process in the second state to which the first identifier is assigned among processes in the second state. The electronic device may increase the operation speed of the processor by releasing the process in the second state to which the first identifier is assigned.

상술한 바와 같이, 일 실시 예에 따른, 전자 장치는, 어플리케이션의 실행에 기반하여, 지정된 이벤트를 식별할 수 있다. 전자 장치는, 상기 지정된 이벤트의 식별에 기반하여, 상기 지정된 이벤트와 관련된 복수의 프로세스들을 실행할 수 있다. 전자 장치는, 상기 복수의 프로세스들이 프로세서에 의해 실행되는 제1 상태와 상이한 제2 상태로 스위칭할 수 있다. 전자 장치는, 상기 제2 상태의 복수의 프로세스들이 메모리 내에 형성된 일 영역을 점유하는 것을 식별할 수 있다. 전자 장치는, 상기 제2 상태의 복수의 프로세스들이 일 영역을 점유하는 동안, 상기 메모리로 액세스하기 위해 상기 제2 상태의 복수의 프로세스들 중 적어도 일부의 릴리즈를 필요로 할 수 있다. As described above, according to one embodiment, an electronic device may identify a designated event based on execution of an application. The electronic device may execute a plurality of processes related to the specified event based on identification of the specified event. The electronic device may switch to a second state that is different from the first state in which the plurality of processes are executed by a processor. The electronic device may identify that a plurality of processes in the second state occupy an area formed in the memory. The electronic device may require release of at least some of the plurality of processes in the second state to access the memory while the plurality of processes in the second state occupy an area.

상술한 바와 같이, 일 실시 예에 따른, 전자 장치(101)(electronic device)는, 메모리(130), 및 프로세서(120)를 포함할 수 있다. 상기 프로세서(120)는, 제1 어플리케이션(310)의 실행에 기반하여, 상기 제1 어플리케이션(310)과 상이한 복수의 어플리케이션들의 실행을 위한 지정된 이벤트를 식별할 수 있다. 상기 프로세서는, 상기 지정된 이벤트의 식별에 기반하여, 복수의 프로세스들을 실행할 수 있다. 상기 프로세서는, 상기 복수의 프로세스들 중 적어도 하나가 실행되는 동안, 상기 메모리(130)로 액세스하는 상기 복수의 프로세스들에 의해 야기된 지연을 나타내는 파라미터를 식별할 수 있다. 상기 프로세서(120)는, 지정된 파라미터를 초과하는 상기 파라미터를 식별하는 것에 기반하여, 상기 메모리(130) 내에 상기 프로세서(120)에 의해 실행되는 제1 상태와 상이한 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절할 수 있다. 상기 프로세서는, 상기 복수의 프로세스들 중에서, 상기 제2 상태로 스위칭되는 프로세스를 식별하는 것에 기반하여, 상기 조절된 임계치에 기반하여, 상기 복수의 프로세스들의 실행에 의해 점유된 복수의 영역들(410; 420; 430; 440) 중에서 상기 제2 상태로 스위칭된 상기 프로세스에 의해 점유된 일 영역(an area)을 릴리즈할 수 있다. As described above, according to one embodiment, the electronic device 101 may include a memory 130 and a processor 120. The processor 120 may identify a designated event for execution of a plurality of applications different from the first application 310, based on the execution of the first application 310. The processor may execute a plurality of processes based on the identification of the designated event. The processor may identify a parameter indicating a delay caused by the plurality of processes accessing the memory 130 while at least one of the plurality of processes is executing. The processor 120 is used to maintain a process in the memory 130 in a second state that is different from the first state being executed by the processor 120, based on identifying the parameter exceeding a specified parameter. The threshold can be adjusted. The processor determines, based on identifying a process switching to the second state among the plurality of processes, based on the adjusted threshold, a plurality of regions occupied by execution of the plurality of processes (410). ; 420; 430; 440), an area occupied by the process switched to the second state may be released.

전자 장치는, 상기 복수의 프로세스들 중 적어도 일부의 릴리즈를 수행하기 위해 순위를 지정하여 릴리즈할 수 있다. 전자 장치는, 순위를 지정하여 상기 제2 상태의 복수의 프로세스들을 해제함으로써, 메모리로 액세스할 때에, 효율적으로 액세스할 수 있다. The electronic device may specify a ranking to release at least some of the plurality of processes. The electronic device can efficiently access memory by assigning a priority and releasing a plurality of processes in the second state.

일 실시 예에 따른, 전자 장치(101)는, 디스플레이(210)를 포함할 수 있다. 상기 제2 상태의 프로세스는, 상기 제2 상태로 스위칭되기 이전에, 상기 디스플레이(210)를 제어하기 위한 화면과 독립적으로 실행되었던 프로세스일 수 있다. According to one embodiment, the electronic device 101 may include a display 210. The process in the second state may be a process that was executed independently of the screen for controlling the display 210 before switching to the second state.

일 실시 예에 따른, 전자 장치(101)는, 디스플레이(210)를 포함할 수 있다. 상기 제2 상태의 프로세스는, 상기 제2 상태로 스위칭되기 이전에, 상기 디스플레이(210)를 제어하기 위한 화면과 관련된 프로세스일 수 있다. According to one embodiment, the electronic device 101 may include a display 210. The process in the second state may be a process related to a screen for controlling the display 210 before switching to the second state.

일 실시 예에 따른, 상기 프로세서(120)는, 상기 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 증가시킬 수 있다. According to one embodiment, the processor 120 may increase the threshold used to maintain the process in the second state.

일 실시 예에 따른, 상기 프로세서(120)는, 상기 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 감소시킬 수 있다. According to one embodiment, the processor 120 may decrease the threshold used to maintain the process in the second state.

일 실시 예에 따른, 상기 프로세서(120)는, 상기 제1 상태의 프로세스를, 포어그라운드 모드, 또는 백그라운드 모드 중 적어도 하나에 기반하여, 실행할 수 있다. According to one embodiment, the processor 120 may execute the process in the first state based on at least one of a foreground mode or a background mode.

일 실시 예에 따른, 상기 프로세서(120)는, 제1 지정된 파라미터인 상기 지정된 파라미터와 상이한 제2 지정된 파라미터를 식별한 것에 기반하여, 제1 임계치인 상기 조절된 임계치를, 조절되기 이전의 제2 임계치로 변경할 수 있다. According to one embodiment, the processor 120, based on identifying a second designated parameter that is different from the designated parameter that is a first designated parameter, sets the adjusted threshold, which is a first threshold, to the second designated parameter before being adjusted. It can be changed to a threshold value.

일 실시 예에 따른, 전자 장치(101)는, 디스플레이(210)를 포함할 수 있다. 상기 프로세서(120)는, 상기 제2 상태로 스위칭되기 이전에, 상기 디스플레이(210)를 제어하기 위한 화면과 독립적으로 실행되었던 제1 프로세스, 및 상기 디스플레이(210)를 제어하기 위한 상기 화면과 관련된 제2 프로세스를 식별할 수 있다. 상기 프로세서(120)는, 상기 제2 프로세스에 의해 점유된 영역을 릴리즈할 수 있다. According to one embodiment, the electronic device 101 may include a display 210. The processor 120 includes a first process that was executed independently of the screen for controlling the display 210 before switching to the second state, and a process associated with the screen for controlling the display 210. A second process can be identified. The processor 120 may release the area occupied by the second process.

일 실시 예에 따른, 상기 프로세서(120)는, 상기 제2 상태의 프로세스가 실행된 횟수를 식별할 수 있다. 상기 프로세서(120)는, 지정된 횟수를 초과하는 상기 횟수를 식별한 것에 기반하여, 상기 지정된 횟수를 초과하여 실행된 상기 제2 상태의 프로세스를 포함하는 리스트를 획득할 수 있다. According to one embodiment, the processor 120 may identify the number of times the process in the second state has been executed. The processor 120 may obtain a list including processes in the second state that have been executed more than the specified number of times, based on identifying the number of times that exceeds the specified number of times.

상술한 바와 같이, 일 실시 예에 따른, 전자 장치(101)(electronic device)의 방법은, 제1 어플리케이션(310)의 실행에 기반하여, 상기 제1 어플리케이션(310)과 상이한 복수의 어플리케이션들의 실행을 위한 지정된 이벤트를 식별하는 동작을 포함할 수 있다. 상기 전자 장치의 상기 방법은, 상기 지정된 이벤트의 식별에 기반하여, 복수의 프로세스들을 실행하는 동작을 포함할 수 있다. 상기 전자 장치(101)의 상기 방법은, 상기 복수의 프로세스들 중 적어도 하나가 실행되는 동안, 상기 메모리(130)로 액세스하는 상기 복수의 프로세스들에 의해 야기된 지연을 나타내는 파라미터를 식별하는 동작을 포함할 수 있다. 상기 전자 장치(101)의 상기 방법은, 지정된 파라미터를 초과하는 상기 파라미터를 식별하는 것에 기반하여, 상기 메모리(130) 내에 프로세서(120)에 의해 실행되는 제1 상태와 상이한 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절하는 동작을 포함할 수 있다. 상기 전자 장치(101)의 상기 방법은, 상기 복수의 프로세스들 중에서, 상기 제2 상태로 스위칭되는 프로세스를 식별하는 것에 기반하여, 상기 조절된 임계치에 기반하여, 상기 복수의 프로세스들의 실행에 의해 점유된 복수의 영역들(410; 420; 430; 440) 중에서 상기 제2 상태로 스위칭된 상기 프로세스에 의해 점유된 일 영역(an area)을 릴리즈하는 동작을 포함할 수 있다. As described above, according to an embodiment, the method of the electronic device 101 executes a plurality of applications different from the first application 310 based on the execution of the first application 310. May include actions that identify designated events for . The method of the electronic device may include executing a plurality of processes based on identification of the specified event. The method of the electronic device 101 includes identifying a parameter indicating a delay caused by the plurality of processes accessing the memory 130 while at least one of the plurality of processes is executing. It can be included. The method of the electronic device 101 generates a process in a second state different from the first state executed by the processor 120 in the memory 130 based on identifying the parameter exceeding a specified parameter. It may include an operation to adjust the threshold used to maintain. The method of the electronic device 101 is based on identifying, among the plurality of processes, a process that switches to the second state and, based on the adjusted threshold, is occupied by execution of the plurality of processes. It may include an operation of releasing an area occupied by the process switched to the second state among the plurality of areas 410; 420; 430; 440.

일 실시 예에 따른, 상기 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절하는 동작은, 상기 제2 상태로 스위칭되기 이전에, 디스플레이(210)를 제어하기 위한 화면과 독립적으로 실행되었던 프로세스인 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 조절하는 동작을 포함할 수 있다. According to one embodiment, the operation of adjusting the threshold used to maintain the process in the second state is a process that was executed independently of the screen for controlling the display 210 before switching to the second state. An operation may be included to adjust the threshold used to maintain the process in the second state.

일 실시 예에 따른, 상기 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절하는 동작은, 상기 제2 상태로 스위칭되기 이전에, 디스플레이(210)를 제어하기 위한 화면과 관련된 프로세스인, 상기 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 조절하는 동작을 포함할 수 있다. According to one embodiment, the operation of adjusting the threshold used to maintain the process in the second state is a process related to a screen for controlling the display 210 before switching to the second state. It may include an operation of adjusting the threshold used to maintain a two-state process.

일 실시 예에 따른, 상기 전자 장치(101)의 상기 방법은, 상기 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 증가시키는 동작을 포함할 수 있다. According to one embodiment, the method of the electronic device 101 may include increasing the threshold used to maintain the process in the second state.

일 실시 예에 따른, 상기 전자 장치(101)의 상기 방법은, 상기 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 감소시키는 동작을 포함할 수 있다. According to one embodiment, the method of the electronic device 101 may include an operation of decreasing the threshold used to maintain the process in the second state.

일 실시 예에 따른, 상기 전자 장치(101)의 상기 방법은, 상기 제1 상태의 프로세스를, 포어그라운드 모드, 또는 백그라운드 모드 중 적어도 하나에 기반하여 실행하는 동작을 포함할 수 있다. According to one embodiment, the method of the electronic device 101 may include executing the process in the first state based on at least one of a foreground mode and a background mode.

일 실시 예에 따른, 상기 전자 장치(101)의 상기 방법은, 제1 지정된 파라미터인 상기 지정된 파라미터와 상이한 제2 파라미터를 식별한 것에 기반하여, 제1 임계치인 상기 조절된 임계치를, 조절되기 이전의 제2 임계치로 변경하는 동작을 포함할 수 있다. According to one embodiment, the method of the electronic device 101 sets the adjusted threshold, which is a first threshold, based on identifying a second parameter that is different from the designated parameter, which is a first designated parameter, before being adjusted. It may include an operation of changing to the second threshold.

일 실시 예에 따른, 상기 전자 장치(101)의 상기 방법은, 상기 제2 상태로 스위칭되기 이전에 디스플레이(210)를 제어하기 위한 화면과 독립적으로 실행되었던 제1 프로세스, 및 상기 디스플레이(210)를 제어하기 위한 상기 화면과 관련된 제2 프로세스를 식별하는 동작을 포함할 수 있다. 상기 전자 장치(101)의 상기 방법은, 상기 제2 프로세스에 의해 점유된 영역을 릴리즈하는 동작을 포함할 수 있다. According to one embodiment, the method of the electronic device 101 includes a first process that is executed independently of a screen for controlling the display 210 before switching to the second state, and the display 210 It may include an operation of identifying a second process related to the screen for controlling . The method of the electronic device 101 may include an operation of releasing an area occupied by the second process.

일 실시 예에 따른, 상기 전자 장치(101)의 상기 방법은, 상기 제2 상태의 프로세스가 실행된 횟수를 식별하는 동작을 포함할 수 있다. 상기 전자 장치(101)의 상기 방법은, 지정된 횟수를 초과하는 상기 횟수를 식별한 것에 기반하여, 상기 지정된 횟수를 초과하여 실행된 상기 제2 상태의 프로세스를 포함하는 리스트를 획득하는 동작을 포함할 수 있다. According to one embodiment, the method of the electronic device 101 may include an operation of identifying the number of times the process in the second state has been executed. The method of the electronic device 101 may include an operation of obtaining a list including processes in the second state that have been executed more than the specified number of times, based on identifying the number of times exceeding the specified number of times. You can.

상술한 바와 같이, 일 실시 예에 따른, 하나 이상의 프로그램들을 저장하는 컴퓨터 판독가능 저장 매체에 있어서, 상기 하나 이상의 프로그램들은, 전자 장치(101)의 프로세서(120)에 의해 실행될 때에, 제1 어플리케이션(310)의 실행에 기반하여, 상기 제1 어플리케이션(310)과 상이한 복수의 어플리케이션들의 실행을 위한 지정된 이벤트를 식별하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기할 수 있다. 상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에, 상기 지정된 이벤트의 식별에 기반하여, 복수의 프로세스들을 실행하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기할 수 있다. 상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에, 상기 복수의 프로세스들 중 적어도 하나가 실행되는 동안, 상기 메모리(130)로 액세스하는 상기 복수의 프로세스들에 의해 야기된 지연을 나타내는 파라미터를 식별하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기할 수 있다. 상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에, 지정된 파라미터를 초과하는 상기 파라미터를 식별하는 것에 기반하여, 상기 메모리(130) 내에 상기 프로세서(120)에 의해 실행되는 제1 상태와 상이한 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기할 수 있다. 상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에, 상기 복수의 프로세스들 중에서, 상기 제2 상태로 스위칭되는 프로세스를 식별하는 것에 기반하여, 상기 조절된 임계치에 기반하여, 상기 복수의 프로세스들의 실행에 의해 점유된 복수의 영역들(410; 420; 430; 440) 중에서 상기 제2 상태로 스위칭된 상기 프로세스에 의해 점유된 일 영역을 릴리즈하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기할 수 있다. As described above, according to one embodiment, in a computer-readable storage medium storing one or more programs, the one or more programs, when executed by the processor 120 of the electronic device 101, generate a first application ( Based on the execution of 310), the processor 120 of the electronic device 101 may be triggered to identify a designated event for execution of a plurality of applications different from the first application 310. The one or more programs, when executed by the processor 120 of the electronic device 101, are configured to execute a plurality of processes based on the identification of the specified event. ) can cause. When executed by the processor 120 of the electronic device 101, the one or more programs access the memory 130 while at least one of the plurality of processes is running. may cause the processor 120 of the electronic device 101 to identify a parameter indicative of the delay caused by the delay. The one or more programs, when executed by the processor 120 of the electronic device 101, are stored by the processor 120 in the memory 130 based on identifying the parameter that exceeds a specified parameter. This may cause the processor 120 of the electronic device 101 to adjust a threshold used to maintain the process in a second state that is different from the first state in which it is being executed. The one or more programs, when executed by the processor 120 of the electronic device 101, are configured to respond to the adjusted threshold based on identifying a process that switches to the second state among the plurality of processes. Based on this, the electronic device ( 101) may cause the processor 120.

일 실시 예에 따른, 상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에, 상기 제2 상태로 스위칭되기 이전에, 디스플레이(210)를 제어하기 위한 화면과 독립적으로 실행되었던 프로세스인 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 조절하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기할 수 있다. According to one embodiment, the one or more programs, when executed by the processor 120 of the electronic device 101, are independent of the screen for controlling the display 210 before switching to the second state. This may cause the processor 120 of the electronic device 101 to adjust the threshold used to maintain the process in the second state, which is the process that was executed.

일 실시 예에 따른, 상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에, 상기 제2 상태로 스위칭되기 이전에, 디스플레이(210)를 제어하기 위한 화면과 관련된 프로세스인, 상기 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 조절하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기할 수 있다. According to one embodiment, the one or more programs, when executed by the processor 120 of the electronic device 101, are related to a screen for controlling the display 210 before switching to the second state. process, may cause the processor 120 of the electronic device 101 to adjust the threshold used to maintain the process in the second state.

일 실시 예에 따른, 상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에, 상기 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 증가시키도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기할 수 있다. According to one embodiment, the one or more programs, when executed by the processor 120 of the electronic device 101, are configured to increase the threshold used to maintain the process in the second state. This may cause the processor 120 of 101.

일 실시 예에 따른, 상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에, 상기 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 감소시키도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기할 수 있다. According to one embodiment, the one or more programs, when executed by the processor 120 of the electronic device 101, are configured to reduce the threshold used to maintain the process in the second state. This may cause the processor 120 of 101.

일 실시 예에 따른, 상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에, 상기 제1 상태의 프로세스를, 포어그라운드 모드, 또는 백그라운드 모드 중 적어도 하나에 기반하여 실행하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기할 수 있다. According to one embodiment, when the one or more programs are executed by the processor 120 of the electronic device 101, the process in the first state is based on at least one of the foreground mode and the background mode. This may cause the processor 120 of the electronic device 101 to execute.

일 실시 예에 따른, 상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에, 제1 지정된 파라미터인 상기 지정된 파라미터와 상이한 제2 지정된 파라미터를 식별한 것에 기반하여, 제1 임계치인 상기 조절된 임계치를, 조절되기 이전의 제2 임계치로 변경하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기할 수 있다. According to one embodiment, when the one or more programs are executed by the processor 120 of the electronic device 101, based on identifying a second designated parameter that is different from the designated parameter that is a first designated parameter, This may cause the processor 120 of the electronic device 101 to change the adjusted threshold, which is a first threshold, to a second threshold before adjustment.

일 실시 예에 따른, 상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에, 상기 제2 상태로 스위칭되기 이전에, 디스플레이(210)를 제어하기 위한 화면과 독립적으로 실행되었던 제1 프로세스, 및 상기 디스플레이(210)를 제어하기 위한 상기 화면과 관련된 제2 프로세스를 식별하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기할 수 있다. 상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에, 상기 제2 프로세스에 의해 점유된 영역을 릴리즈하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기할 수 있다. According to one embodiment, the one or more programs, when executed by the processor 120 of the electronic device 101, are independent of the screen for controlling the display 210 before switching to the second state. may cause the processor 120 of the electronic device 101 to identify a first process that was executed and a second process associated with the screen for controlling the display 210. The one or more programs, when executed by the processor 120 of the electronic device 101, cause the processor 120 of the electronic device 101 to release the area occupied by the second process. can do.

일 실시 예에 따른, 상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에, 상기 제2 상태의 프로세스가 실행된 횟수를 식별하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기할 수 있다. 상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에, 지정된 횟수를 초과하는 상기 횟수를 식별한 것에 기반하여, 상기 지정된 횟수를 초과하여 실행된 상기 제2 상태의 프로세스를 포함하는 리스트를 획득하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기할 수 있다. According to one embodiment, the one or more programs, when executed by the processor 120 of the electronic device 101, are configured to identify the number of times the process in the second state has been executed. The processor 120 may cause this. The one or more programs, when executed by the processor 120 of the electronic device 101, are in the second state executed more than the specified number of times, based on identifying the number of times exceeding the specified number of times. This may cause the processor 120 of the electronic device 101 to obtain a list containing a process.

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 전자 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.Electronic devices according to various embodiments disclosed in this document may be of various types. Electronic devices may include, for example, portable communication devices (e.g., smartphones), computer devices, portable multimedia devices, portable medical devices, cameras, electronic devices, or home appliances. Electronic devices according to embodiments of this document are not limited to the above-described devices.

본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.The various embodiments of this document and the terms used herein are not intended to limit the technical features described in this document to specific embodiments, but should be understood to include various changes, equivalents, or replacements of the embodiments. In connection with the description of the drawings, similar reference numbers may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of the items, unless the relevant context clearly indicates otherwise. As used herein, “A or B”, “at least one of A and B”, “at least one of A or B”, “A, B or C”, “at least one of A, B and C”, and “A Each of phrases such as “at least one of , B, or C” may include any one of the items listed together in the corresponding phrase, or any possible combination thereof. Terms such as "first", "second", or "first" or "second" may be used simply to distinguish one component from another, and to refer to those components in other respects (e.g., importance or order) is not limited. One (e.g., first) component is said to be “coupled” or “connected” to another (e.g., second) component, with or without the terms “functionally” or “communicatively.” Where mentioned, it means that any of the components can be connected to the other components directly (e.g. wired), wirelessly, or through a third component.

본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term “module” used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as logic, logic block, component, or circuit, for example. It can be used as A module may be an integrated part or a minimum unit of the parts or a part thereof that performs one or more functions. For example, according to one embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).

본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of the present document are one or more instructions stored in a storage medium (e.g., built-in memory 136 or external memory 138) that can be read by a machine (e.g., electronic device 101). It may be implemented as software (e.g., program 140) including these. For example, a processor (e.g., processor 120) of a device (e.g., electronic device 101) may call at least one command among one or more commands stored from a storage medium and execute it. This allows the device to be operated to perform at least one function according to the at least one instruction called. The one or more instructions may include code generated by a compiler or code that can be executed by an interpreter. A storage medium that can be read by a device may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' only means that the storage medium is a tangible device and does not contain signals (e.g. electromagnetic waves). This term refers to cases where data is stored semi-permanently in the storage medium. There is no distinction between temporary storage cases.

일 실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어™)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, methods according to various embodiments disclosed in this document may be provided and included in a computer program product. Computer program products are commodities and can be traded between sellers and buyers. The computer program product may be distributed in the form of a machine-readable storage medium (e.g. compact disc read only memory (CD-ROM)) or through an application store (e.g. Play Store™) or on two user devices (e.g. It can be distributed (e.g. downloaded or uploaded) directly between smart phones) or online. In the case of online distribution, at least a portion of the computer program product may be at least temporarily stored or temporarily created in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or a relay server.

다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다. According to various embodiments, each component (e.g., module or program) of the above-described components may include a single or plural entity, and some of the plurality of entities may be separately placed in other components. there is. According to various embodiments, one or more of the components or operations described above may be omitted, or one or more other components or operations may be added. Alternatively or additionally, multiple components (eg, modules or programs) may be integrated into a single component. In this case, the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by the corresponding component of the plurality of components prior to the integration. . According to various embodiments, operations performed by a module, program, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, or omitted. Alternatively, one or more other operations may be added.

Claims (27)

전자 장치(101)(electronic device)에 있어서,
메모리(130); 및
프로세서(120)를 포함하고,
상기 프로세서(120)는,
제1 어플리케이션(310)의 실행에 기반하여, 상기 제1 어플리케이션(310)과 상이한 복수의 어플리케이션들의 실행을 위한 지정된 이벤트를 식별하고;
상기 지정된 이벤트의 식별에 기반하여, 복수의 프로세스들을 실행하고;
상기 복수의 프로세스들 중 적어도 하나가 실행되는 동안, 상기 메모리(130)로 액세스하는 상기 복수의 프로세스들에 의해 야기된 지연을 나타내는 파라미터를 식별하고;
지정된 파라미터를 초과하는 상기 파라미터를 식별하는 것에 기반하여, 상기 메모리(130) 내에 상기 프로세서(120)에 의해 실행되는 제1 상태와 상이한 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절하고; 및
상기 복수의 프로세스들 중에서, 상기 제2 상태로 스위칭되는 프로세스를 식별하는 것에 기반하여, 상기 조절된 임계치에 기반하여, 상기 복수의 프로세스들의 실행에 의해 점유된 복수의 영역들(410; 420; 430; 440) 중에서 상기 제2 상태로 스위칭된 상기 프로세스에 의해 점유된 일 영역(an area)을 릴리즈하도록, 구성된,
전자 장치(101).
In the electronic device 101,
memory (130); and
Includes a processor 120,
The processor 120,
Based on the execution of the first application 310, identify a designated event for execution of a plurality of applications different from the first application 310;
execute a plurality of processes based on the identification of the designated event;
identify a parameter indicative of a delay caused by the plurality of processes accessing the memory (130) while at least one of the plurality of processes is executing;
adjust a threshold used to maintain a process in the memory (130) in a second state that is different from the first state being executed by the processor (120) based on identifying the parameter that exceeds a specified parameter; and
Based on identifying, among the plurality of processes, a process switching to the second state, based on the adjusted threshold, a plurality of regions (410; 420; 430) occupied by execution of the plurality of processes. 440) configured to release an area occupied by the process switched to the second state;
Electronic device (101).
제1 항에 있어서,
디스플레이(210)를 더 포함하고,
상기 제2 상태의 프로세스는,
상기 제2 상태로 스위칭되기 이전에, 상기 디스플레이(210)를 제어하기 위한 화면과 독립적으로 실행되었던 프로세스인,
전자 장치(101).
According to claim 1,
Further comprising a display 210,
The process in the second state is,
A process that was executed independently of the screen for controlling the display 210 before switching to the second state,
Electronic device (101).
제1 항 내지 제2 항 중 어느 한 항에 있어서,
디스플레이(210)를 더 포함하고,
상기 제2 상태의 프로세스는,
상기 제2 상태로 스위칭되기 이전에, 상기 디스플레이(210)를 제어하기 위한 화면과 관련된 프로세스인,
전자 장치(101).
The method according to any one of claims 1 to 2,
Further comprising a display 210,
The process in the second state is,
A process related to a screen for controlling the display 210 before switching to the second state,
Electronic device (101).
제1 항 내지 제3 항 중 어느 한 항에 있어서,
상기 프로세서(120)는,
상기 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 증가시키도록, 구성된,
전자 장치(101).
According to any one of claims 1 to 3,
The processor 120,
configured to increase the threshold used to maintain the process in the second state,
Electronic device (101).
제1 항 내지 제4 항 중 어느 한 항에 있어서,
상기 프로세서(120)는,
상기 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 감소시키도록, 구성된,
전자 장치(101).
According to any one of claims 1 to 4,
The processor 120,
configured to reduce the threshold used to maintain the process in the second state,
Electronic device (101).
제1 항 내지 제5 항 중 어느 한 항에 있어서,
상기 프로세서(120)는,
상기 제1 상태의 프로세스를, 포어그라운드 모드, 또는 백그라운드 모드 중 적어도 하나에 기반하여, 실행하도록, 구성된,
전자 장치(101).
According to any one of claims 1 to 5,
The processor 120,
configured to execute the process in the first state based on at least one of a foreground mode and a background mode,
Electronic device (101).
제1 항 내지 제6 항 중 어느 한 항에 있어서,
상기 프로세서(120)는,
제1 지정된 파라미터인 상기 지정된 파라미터와 상이한 제2 지정된 파라미터를 식별한 것에 기반하여, 제1 임계치인 상기 조절된 임계치를, 조절되기 이전의 제2 임계치로 변경하도록, 구성된,
전자 장치(101).
The method according to any one of claims 1 to 6,
The processor 120,
configured to change the adjusted threshold, which is a first threshold, to a second threshold prior to being adjusted, based on identifying a second designated parameter that is different from the designated parameter, which is a first designated parameter.
Electronic device (101).
제1 항 내지 제7 항 중 어느 한 항에 있어서,
디스플레이(210)를 더 포함하고,
상기 프로세서(120)는,
상기 제2 상태로 스위칭되기 이전에, 상기 디스플레이(210)를 제어하기 위한 화면과 독립적으로 실행되었던 제1 프로세스, 및 상기 디스플레이(210)를 제어하기 위한 상기 화면과 관련된 제2 프로세스를 식별하고; 및
상기 제2 프로세스에 의해 점유된 영역을 릴리즈하도록, 구성된,
전자 장치(101).
The method according to any one of claims 1 to 7,
Further comprising a display 210,
The processor 120,
identify a first process that was running independently of the screen for controlling the display (210) before switching to the second state, and a second process associated with the screen for controlling the display (210); and
configured to release an area occupied by the second process,
Electronic device (101).
제1 항 내지 제8 항 중 어느 한 항에 있어서,
상기 프로세서(120)는,
상기 제2 상태의 프로세스가 실행된 횟수를 식별하고; 및
지정된 횟수를 초과하는 상기 횟수를 식별한 것에 기반하여, 상기 지정된 횟수를 초과하여 실행된 상기 제2 상태의 프로세스를 포함하는 리스트를 획득하도록, 구성된,
전자 장치(101).
The method according to any one of claims 1 to 8,
The processor 120,
identify the number of times the process in the second state has been executed; and
configured to, based on identifying the number of times greater than the specified number of times, obtain a list including processes in the second state that have been executed more than the specified number of times.
Electronic device (101).
전자 장치(101)(electronic device)의 방법에 있어서,
제1 어플리케이션(310)의 실행에 기반하여, 상기 제1 어플리케이션(310)과 상이한 복수의 어플리케이션들의 실행을 위한 지정된 이벤트를 식별하는 동작;
상기 지정된 이벤트의 식별에 기반하여, 복수의 프로세스들을 실행하는 동작;
상기 복수의 프로세스들 중 적어도 하나가 실행되는 동안, 상기 메모리(130)로 액세스하는 상기 복수의 프로세스들에 의해 야기된 지연을 나타내는 파라미터를 식별하는 동작;
지정된 파라미터를 초과하는 상기 파라미터를 식별하는 것에 기반하여, 상기 메모리(130) 내에 프로세서(120)에 의해 실행되는 제1 상태와 상이한 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절하는 동작; 및
상기 복수의 프로세스들 중에서, 상기 제2 상태로 스위칭되는 프로세스를 식별하는 것에 기반하여, 상기 조절된 임계치에 기반하여, 상기 복수의 프로세스들의 실행에 의해 점유된 복수의 영역들(410; 420; 430; 440) 중에서 상기 제2 상태로 스위칭된 상기 프로세스에 의해 점유된 일 영역(an area)을 릴리즈하는 동작을 포함하는,
방법.
In the method of the electronic device 101,
Based on the execution of the first application 310, identifying a designated event for execution of a plurality of applications different from the first application 310;
executing a plurality of processes based on identification of the specified event;
identifying a parameter indicative of a delay caused by the plurality of processes accessing the memory (130) while at least one of the plurality of processes is executing;
adjusting a threshold used to maintain a process in the memory (130) in a second state that is different from the first state being executed by the processor (120) based on identifying the parameter that exceeds a specified parameter; and
Based on identifying, among the plurality of processes, a process switching to the second state, based on the adjusted threshold, a plurality of regions (410; 420; 430) occupied by execution of the plurality of processes. ; 440), which includes releasing an area occupied by the process switched to the second state.
method.
제10 항에 있어서,
상기 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절하는 동작은,
상기 제2 상태로 스위칭되기 이전에, 디스플레이(210)를 제어하기 위한 화면과 독립적으로 실행되었던 프로세스인 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 조절하는 동작을 더 포함하는,
방법.
According to claim 10,
The operation of adjusting the threshold used to maintain the process in the second state includes:
Further comprising the operation of adjusting the threshold used to maintain the process in the second state, which is a process that was executed independently of the screen for controlling the display 210 before switching to the second state,
method.
제10 항 내지 제11 항 중 어느 한 항에 있어서,
상기 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절하는 동작은,
상기 제2 상태로 스위칭되기 이전에, 디스플레이(210)를 제어하기 위한 화면과 관련된 프로세스인, 상기 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 조절하는 동작을 더 포함하는,
방법.
The method according to any one of claims 10 to 11,
The operation of adjusting the threshold used to maintain the process in the second state includes:
Before switching to the second state, further comprising adjusting the threshold used to maintain the process in the second state, which is a process related to a screen for controlling the display 210,
method.
제10 항 내지 제12 항 중 어느 한 항에 있어서,
상기 전자 장치(101)의 상기 방법은,
상기 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 증가시키는 동작을 포함하는,
방법.
The method according to any one of claims 10 to 12,
The method of the electronic device 101 includes:
increasing the threshold used to maintain the process in the second state,
method.
제10 항 내지 제13 항 중 어느 한 항에 있어서,
상기 전자 장치(101)의 상기 방법은,
상기 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 감소시키는 동작을 포함하는,
방법.
The method according to any one of claims 10 to 13,
The method of the electronic device 101 includes:
reducing the threshold used to maintain the process in the second state,
method.
제10 항 내지 제14 항 중 어느 한 항에 있어서,
상기 전자 장치(101)의 상기 방법은,
상기 제1 상태의 프로세스를, 포어그라운드 모드, 또는 백그라운드 모드 중 적어도 하나에 기반하여 실행하는 동작을 포함하는,
방법.
The method according to any one of claims 10 to 14,
The method of the electronic device 101 includes:
Comprising the operation of executing the process in the first state based on at least one of a foreground mode or a background mode,
method.
제10 항 내지 제15 항 중 어느 한 항에 있어서,
상기 전자 장치(101)의 상기 방법은,
제1 지정된 파라미터인 상기 지정된 파라미터와 상이한 제2 파라미터를 식별한 것에 기반하여, 제1 임계치인 상기 조절된 임계치를, 조절되기 이전의 제2 임계치로 변경하는 동작을 포함하는,
방법.
The method according to any one of claims 10 to 15,
The method of the electronic device 101 includes:
An operation of changing the adjusted threshold, which is a first threshold, to a second threshold before adjustment, based on identifying a second parameter that is different from the designated parameter, which is a first designated parameter.
method.
제10 항 내지 제16 항 중 어느 한 항에 있어서,
상기 전자 장치(101)의 상기 방법은,
상기 제2 상태로 스위칭되기 이전에 디스플레이(210)를 제어하기 위한 화면과 독립적으로 실행되었던 제1 프로세스, 및 상기 디스플레이(210)를 제어하기 위한 상기 화면과 관련된 제2 프로세스를 식별하는 동작; 및
상기 제2 프로세스에 의해 점유된 영역을 릴리즈하는 동작을 포함하는,
방법.
The method according to any one of claims 10 to 16,
The method of the electronic device 101 includes:
identifying a first process that was executed independently of the screen for controlling the display 210 before switching to the second state, and a second process associated with the screen for controlling the display 210; and
Including releasing an area occupied by the second process,
method.
제10 항 내지 제17 항 중 어느 한 항에 있어서,
상기 전자 장치(101)의 상기 방법은,
상기 제2 상태의 프로세스가 실행된 횟수를 식별하는 동작; 및
지정된 횟수를 초과하는 상기 횟수를 식별한 것에 기반하여, 상기 지정된 횟수를 초과하여 실행된 상기 제2 상태의 프로세스를 포함하는 리스트를 획득하는 동작을 포함하는,
방법.
The method according to any one of claims 10 to 17,
The method of the electronic device 101 includes:
identifying the number of times the process in the second state has been executed; and
Obtaining a list including processes in the second state that have been executed more than the specified number of times, based on identifying the number of times that exceeds the specified number of times,
method.
하나 이상의 프로그램들을 저장하는 컴퓨터 판독가능 저장 매체에 있어서,
상기 하나 이상의 프로그램들은, 전자 장치(101)의 프로세서(120)에 의해 실행될 때에,
제1 어플리케이션(310)의 실행에 기반하여, 상기 제1 어플리케이션(310)과 상이한 복수의 어플리케이션들의 실행을 위한 지정된 이벤트를 식별하고;
상기 지정된 이벤트의 식별에 기반하여, 복수의 프로세스들을 실행하고;
상기 복수의 프로세스들 중 적어도 하나가 실행되는 동안, 상기 메모리(130)로 액세스하는 상기 복수의 프로세스들에 의해 야기된 지연을 나타내는 파라미터를 식별하고;
지정된 파라미터를 초과하는 상기 파라미터를 식별하는 것에 기반하여, 상기 메모리(130) 내에 상기 프로세서(120)에 의해 실행되는 제1 상태와 상이한 제2 상태의 프로세스를 유지하는데 이용되는 임계치를 조절하고; 및
상기 복수의 프로세스들 중에서, 상기 제2 상태로 스위칭되는 프로세스를 식별하는 것에 기반하여, 상기 조절된 임계치에 기반하여, 상기 복수의 프로세스들의 실행에 의해 점유된 복수의 영역들(410; 420; 430; 440) 중에서 상기 제2 상태로 스위칭된 상기 프로세스에 의해 점유된 일 영역을 릴리즈하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기하는,
컴퓨터 판독가능 저장 매체.
A computer-readable storage medium storing one or more programs,
When the one or more programs are executed by the processor 120 of the electronic device 101,
Based on the execution of the first application 310, identify a designated event for execution of a plurality of applications different from the first application 310;
execute a plurality of processes based on the identification of the designated event;
identify a parameter indicative of a delay caused by the plurality of processes accessing the memory (130) while at least one of the plurality of processes is executing;
adjust a threshold used to maintain a process in the memory (130) in a second state that is different from the first state being executed by the processor (120) based on identifying the parameter that exceeds a specified parameter; and
Based on identifying, among the plurality of processes, a process switching to the second state, based on the adjusted threshold, a plurality of regions (410; 420; 430) occupied by execution of the plurality of processes. ; 440), causing the processor 120 of the electronic device 101 to release an area occupied by the process switched to the second state.
Computer readable storage medium.
제19 항에 있어서,
상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에,
상기 제2 상태로 스위칭되기 이전에, 디스플레이(210)를 제어하기 위한 화면과 독립적으로 실행되었던 프로세스인 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 조절하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기하는,
컴퓨터 판독가능 저장 매체.
According to clause 19,
When the one or more programs are executed by the processor 120 of the electronic device 101,
The electronic device 101 is configured to adjust the threshold used to maintain a process in the second state, which is a process that was executed independently of the screen for controlling the display 210 before switching to the second state. causing processor 120,
Computer readable storage medium.
제19 항 내지 제20 항 중 어느 한 항에 있어서,
상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에,
상기 제2 상태로 스위칭되기 이전에, 디스플레이(210)를 제어하기 위한 화면과 관련된 프로세스인, 상기 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 조절하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기하는,
컴퓨터 판독가능 저장 매체.
The method according to any one of claims 19 to 20,
When the one or more programs are executed by the processor 120 of the electronic device 101,
The processor of the electronic device 101 to adjust the threshold used to maintain a process in the second state, which is a process related to a screen for controlling the display 210, before switching to the second state. causing (120),
Computer readable storage medium.
제19 항 내지 제21 항 중 어느 한 항에 있어서,
상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에,
상기 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 증가시키도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기하는,
컴퓨터 판독가능 저장 매체.
The method according to any one of claims 19 to 21,
When the one or more programs are executed by the processor 120 of the electronic device 101,
causing the processor 120 of the electronic device 101 to increase the threshold used to maintain the process in the second state,
Computer readable storage medium.
제19 항 내지 제22 항 중 어느 한 항에 있어서,
상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에,
상기 제2 상태의 프로세스를 유지하는데 이용되는 상기 임계치를 감소시키도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기하는,
컴퓨터 판독가능 저장 매체.
The method according to any one of claims 19 to 22,
When the one or more programs are executed by the processor 120 of the electronic device 101,
causing the processor 120 of the electronic device 101 to decrease the threshold used to maintain the process in the second state,
Computer readable storage medium.
제19 항 내지 제23 항 중 어느 한 항에 있어서,
상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에,
상기 제1 상태의 프로세스를, 포어그라운드 모드, 또는 백그라운드 모드 중 적어도 하나에 기반하여 실행하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기하는,
컴퓨터 판독가능 저장 매체.
The method according to any one of claims 19 to 23,
When the one or more programs are executed by the processor 120 of the electronic device 101,
causing the processor 120 of the electronic device 101 to execute a process in the first state based on at least one of a foreground mode or a background mode,
Computer readable storage medium.
제19 항 내지 제24 항 중 어느 한 항에 있어서,
상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에,
제1 지정된 파라미터인 상기 지정된 파라미터와 상이한 제2 지정된 파라미터를 식별한 것에 기반하여, 제1 임계치인 상기 조절된 임계치를, 조절되기 이전의 제2 임계치로 변경하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기하는,
컴퓨터 판독가능 저장 매체.
The method according to any one of claims 19 to 24,
When the one or more programs are executed by the processor 120 of the electronic device 101,
Based on identifying a second designated parameter that is different from the designated parameter that is a first designated parameter, change the adjusted threshold, which is a first threshold, to a second threshold before being adjusted. causing processor 120,
Computer readable storage medium.
제19 항 내지 제25 항 중 어느 한 항에 있어서,
상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에,
상기 제2 상태로 스위칭되기 이전에, 디스플레이(210)를 제어하기 위한 화면과 독립적으로 실행되었던 제1 프로세스, 및 상기 디스플레이(210)를 제어하기 위한 상기 화면과 관련된 제2 프로세스를 식별하고;
상기 제2 프로세스에 의해 점유된 영역을 릴리즈하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기하는,
컴퓨터 판독가능 저장 매체.
The method according to any one of claims 19 to 25,
When the one or more programs are executed by the processor 120 of the electronic device 101,
identify a first process that was running independently of the screen for controlling the display (210) before switching to the second state, and a second process associated with the screen for controlling the display (210);
causing the processor 120 of the electronic device 101 to release the area occupied by the second process,
Computer readable storage medium.
제19 항 내지 제26 항 중 어느 한 항에 있어서,
상기 하나 이상의 프로그램들은, 상기 전자 장치(101)의 상기 프로세서(120)에 의해 실행될 때에,
상기 제2 상태의 프로세스가 실행된 횟수를 식별하고; 및
지정된 횟수를 초과하는 상기 횟수를 식별한 것에 기반하여, 상기 지정된 횟수를 초과하여 실행된 상기 제2 상태의 프로세스를 포함하는 리스트를 획득하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기하는,
컴퓨터 판독가능 저장 매체.
The method according to any one of claims 19 to 26,
When the one or more programs are executed by the processor 120 of the electronic device 101,
identify the number of times the process in the second state has been executed; and
Cause the processor 120 of the electronic device 101 to obtain a list containing processes in the second state that have been executed more than the specified number of times, based on identifying the number of times exceeding the specified number of times. doing,
Computer readable storage medium.
KR1020220143181A 2022-10-06 2022-10-31 Electronic device for controlling release of plurality of processes and method thereof KR20240048432A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/KR2023/014573 WO2024076068A1 (en) 2022-10-06 2023-09-22 Electronic device for controlling release of plurality of processes and method therefor

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020220128218 2022-10-06
KR20220128218 2022-10-06

Publications (1)

Publication Number Publication Date
KR20240048432A true KR20240048432A (en) 2024-04-15

Family

ID=90715698

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220143181A KR20240048432A (en) 2022-10-06 2022-10-31 Electronic device for controlling release of plurality of processes and method thereof

Country Status (1)

Country Link
KR (1) KR20240048432A (en)

Similar Documents

Publication Publication Date Title
KR102256681B1 (en) Method for controlling window and an electronic device
EP4181516A1 (en) Method and apparatus for controlling connection of wireless audio output device
US20230289200A1 (en) Electronic device and multi-window control method of electronic device
KR20240048432A (en) Electronic device for controlling release of plurality of processes and method thereof
KR20220118047A (en) Processor for initializing model file of application and elecronic device including same
KR20220064655A (en) Electronic device and method for executing application thereof
KR20220016727A (en) Method for capturing images for multi windows and electronic device therefor
WO2024076068A1 (en) Electronic device for controlling release of plurality of processes and method therefor
KR20240076332A (en) Electronic device for controlling function of process corresponding to one or more messenger datasets and method thereof
KR20230022772A (en) Electronic device for changing screen based on swipe input and method of opearating the same
US20230247249A1 (en) Method of controlling display module and electronic device performing the method
US20230281036A1 (en) Electronic device for handling bottleneck in system and operating method thereof
WO2024112075A1 (en) Electronic device for controlling function of process corresponding to one or more messenger data sets, and method thereof
KR20240051776A (en) Electronic device, method, and computer-readable storage media for displaying visual object based on state connected to external electronic device
US20230199878A1 (en) Method and apparatus for controlling plurality of devices
KR20230155921A (en) Electronic device and method for processing touch input
KR20230130493A (en) Electronic device for handling bottleneck in system and operating method thereof
KR20230168560A (en) Method for controlling display and electronic device supporting the same
KR20240013621A (en) Electronic device and method for controlling signal transmitted to external electronic device
KR20240056364A (en) Electronic device and mehtod controlling foldable display
KR20230017464A (en) Electronic device for controlling a plurality of cluster to perform thermal controlling and manage schedule of process and method for operating thereof
KR20240021084A (en) Electronic device including a plurality of displays and method for reducing image quality deviation of the plurality of displays
KR20240084408A (en) Electronic device and operation method of electronic device displaying battery information
KR20230043549A (en) Method for displaying execution screen of application and electronic device supporting the same
KR20220121574A (en) Electronic device providing ar/vr environment and operating method thereof