KR20220017105A - Apparatus and method of processing data - Google Patents

Apparatus and method of processing data Download PDF

Info

Publication number
KR20220017105A
KR20220017105A KR1020200097192A KR20200097192A KR20220017105A KR 20220017105 A KR20220017105 A KR 20220017105A KR 1020200097192 A KR1020200097192 A KR 1020200097192A KR 20200097192 A KR20200097192 A KR 20200097192A KR 20220017105 A KR20220017105 A KR 20220017105A
Authority
KR
South Korea
Prior art keywords
command
electronic device
execution
group
processor
Prior art date
Application number
KR1020200097192A
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 KR1020200097192A priority Critical patent/KR20220017105A/en
Priority to PCT/KR2021/009791 priority patent/WO2022030866A1/en
Publication of KR20220017105A publication Critical patent/KR20220017105A/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/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3442Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for planning or managing the needed capacity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/3017Runtime instruction translation, e.g. macros
    • 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/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/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]
    • 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/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load

Abstract

In accordance with one embodiment of the present disclosure, a device includes a memory and at least one processor executing at least one command stored in the memory. The at least one processor can be configured to: store a log about the executed at least one command; acquire load information about the at least one command; determine a command commit including the at least one command; determine a first partial commit including at least one of the at least one command based on the load information in response to an execution cancellation command or a re-execution command on the command commit; and, when an execution cancelation operation of making a return to a before-execution state of the at least one command included in the first partial commit or a re-execution operation of re-executing the command is completed, update a view of the electronic device based on the execution cancelation operation or the re-execution operation. Besides, various embodiments identified through the present specification can be possible. Therefore, the present invention is capable of accurately determining a time to send a change event related with view update.

Description

데이터 처리 장치 및 방법 {APPARATUS AND METHOD OF PROCESSING DATA}Data processing apparatus and method {APPARATUS AND METHOD OF PROCESSING DATA}

본 개시에 따른 다양한 실시 예들은 데이터 처리하는 장치 및 방법에 관한 것으로, 보다 상세하게는 ANR( application not responding)이 발생하지 않도록 데이터 양을 나눠서 처리하는 전자 장치 및 방법에 관한 것이다.Various embodiments according to the present disclosure relate to an apparatus and method for processing data, and more particularly, ANR ( The present invention relates to an electronic device and method for dividing and processing data so that application not responding) does not occur.

프로세서를 포함하는 전자 장치는 여러 가지 명령들을 실행하여 데이터를 처리하고, 명령들의 실행 결과가 반영된 데이터를 출력할 수 있다. 전자 장치는 사용자가 전자 장치의 상태를 복구할 수 있도록 하기 위하여, 명령이 실행되기 이전 상태로 되돌리기 위해 실행되었던 명령을 취소하는 실행 취소(undo) 동작 또는 실행되었던 동작을 다시 실행하도록 하는 재실행(redo) 동작을 수행할 수 있다. 전자 장치는 복수 개의 명령을 수행한 이후에 복수 개의 명령을 하나의 그룹으로 설정하여 일시에 실행 취소(undo) 또는 재실행(undo)할 수 있다.The electronic device including the processor may process data by executing various instructions, and may output data in which execution results of the instructions are reflected. In order to allow the user to restore the state of the electronic device, the electronic device performs an undo operation for undoing an executed command or redo for re-executing an executed operation to return to a state before the command was executed. ) can be performed. After executing the plurality of commands, the electronic device may set the plurality of commands as a group to undo or redo them at once.

종래의 소프트웨어 어플리케이션에서는 커밋(commit)에 많은 명령이 있는 경우 한번에 실행취소 또는 재실행을 하게 되면, 모델(model)과 뷰(view)에 의해 업데이트 되어야 할 데이터의 양이 많아 ANR(application not responding)을 유발할 수 있다.In a conventional software application, if there are many commands in a commit and undo or redo at once, the amount of data to be updated by the model and the view is large, resulting in application not responding (ANR). can cause

따라서, 본 개시에 따른 다양한 실시 예에서는 실행 취소 또는 재실행을 수행하는 과정에서 ANR이 유발하지 않도록 해야 한다.Accordingly, in various embodiments according to the present disclosure, ANR should not be caused in the process of undoing or re-executing execution.

일 실시 예에서의 전자 장치는, 메모리 및 상기 메모리에 저장된 적어도 하나의 명령(command)을 실행하는 적어도 하나의 프로세서를 포함하고, 상기 적어도 하나의 프로세서는, 상기 실행된 적어도 하나의 명령에 대한 로그를 저장하고, 상기 적어도 하나의 명령에 대한 부하 정보를 획득하며, 상기 적어도 하나의 명령을 포함하는 명령어 그룹(commit)을 결정하고, 상기 명령어 그룹에 대한 실행 취소 명령 또는 재실행 명령에 응답하여, 상기 부하 정보에 기초하여 상기 적어도 하나의 명령 중에서 적어도 하나를 포함하는 제1 부분 그룹을 결정하며, 상기 제1 부분 그룹에 포함된 적어도 하나의 명령의 실행 이전 상태로 복귀하는 실행 취소 동작 또는 다시 실행하는 재실행 동작이 완료되면, 상기 실행 취소 동작 또는 상기 재실행 동작 이후의 상태에 기초하여 상기 전자 장치의 뷰(view)를 업데이트하도록 구성될 수 있다.The electronic device according to an embodiment includes a memory and at least one processor executing at least one command stored in the memory, wherein the at least one processor includes a log of the at least one executed command. stores, obtains load information for the at least one command, determines a command group (commit) including the at least one command, and responds to an undo command or a redo command for the command group, wherein the determining a first partial group including at least one of the at least one command based on the load information, and performing an undo operation or redo to return to a state prior to execution of the at least one command included in the first partial group When the redo operation is completed, the view of the electronic device may be updated based on the undo operation or a state after the redo operation.

일 실시 예에서의 전자 장치의 동작 방법은, 메모리에 저장된 적어도 하나의 명령(command)을 실행하는 동작, 상기 실행된 적어도 하나의 명령에 대한 로그를 저장하는 동작, 상기 적어도 하나의 명령에 대한 부하 정보를 획득하는 동작, 상기 적어도 하나의 명령을 포함하는 명령어 그룹(commit)을 결정하는 동작, 상기 명령어 그룹에 대한 실행 취소 명령 또는 재실행 명령에 응답하여, 상기 부하 정보에 기초하여 상기 적어도 하나의 명령 중에서 적어도 하나를 포함하는 제1 부분 그룹을 결정하는 동작 및 상기 제1 부분 그룹에 포함된 적어도 하나의 명령의 실행 이전 상태로 복귀하는 실행 취소 동작 또는 다시 실행하는 재실행 동작이 완료되면, 상기 실행 취소 동작 또는 상기 재실행 동작 이후의 상태에 기초하여 상기 전자 장치의 뷰(view)를 업데이트하는 동작을 포함할 수 있다.An operating method of an electronic device according to an embodiment includes an operation of executing at least one command stored in a memory, an operation of storing a log of the executed at least one command, and a load on the at least one command Obtaining information, determining a command group (commit) including the at least one command, in response to an undo command or a redo command for the command group, the at least one command based on the load information Upon completion of an operation of determining a first partial group including at least one of, an undo operation of returning to a state prior to execution of at least one command included in the first partial group, or a redo operation of re-executing, the undo The method may include updating a view of the electronic device based on an operation or a state after the re-execution operation.

본 개시에 따른 다양한 실시 예에서의 전자 장치 및 방법은, 많은 명령을 포함한 커밋을 실행취소 또는 재실행 할 때 뷰 업데이트와 관련된 변경 이벤트를 보낼 시기를 정확하게 결정할 수 있다. 또한, 모든 시나리오에서 1 회의 동작만으로 커밋을 실행취소 또는 재실행할 수 있다. 동시에, 실행취소 또는 재실행되는 명령을 적절한 수로 나눔에 따라서 ANR이 발생하는 문제를 해결할 수 있다.The electronic device and method according to various embodiments of the present disclosure may accurately determine when to send a view update-related change event when undoing or redoing a commit including many commands. Also, in all scenarios, you can undo or redo a commit with just one action. At the same time, it is possible to solve the problem that ANR occurs by dividing the undo or redo orders by an appropriate number.

도 1은 일 실시 예에 따른 전자 장치의 하드웨어 구성의 블록도이다.
도 2는 일 실시 예에 따른 데이터를 처리하는 흐름도이다.
도 3은 일 실시 예에 따른 전자 장치에서 실행 취소 또는 재실행 하기 위한 사용자 인터페이스 요소를 나타내는 도면이다.
도 4는 일 실시 예에 따른 데이터 처리시스템의 데이터 처리과정을 설명하기 위한 참고도이다.
도 5는 일 실시 예에 따른 데이터 처리시스템의 데이터 처리과정을 설명하기 위한 참고도이다.
도 6은 일 실시 예에 따른 데이터 처리시스템의 데이터 처리과정을 설명하기 위한 참고도이다.
도 7은 일 실시 예에 따른 전자 장치에서, 데이터를 실행시간을 기준으로 나눠서 처리하는 동작 방법을 나타내는 흐름도이다.
도 8은 다른 실시 예에 따른 전자 장치에서, 데이터를 실행 개수를 기준으로 나눠서 처리하는 동작 방법을 나타내는 흐름도이다.
도 9는 일 실시 예에 다른 네트워크 환경 내의 전자 장치의 블록도이다.
1 is a block diagram of a hardware configuration of an electronic device according to an embodiment.
2 is a flowchart of processing data according to an exemplary embodiment.
3 is a diagram illustrating a user interface element for undoing or redoing an operation in an electronic device according to an exemplary embodiment.
4 is a reference diagram for explaining a data processing process of a data processing system according to an exemplary embodiment.
5 is a reference diagram for explaining a data processing process of a data processing system according to an exemplary embodiment.
6 is a reference diagram for explaining a data processing process of a data processing system according to an exemplary embodiment.
7 is a flowchart illustrating an operation method of dividing and processing data based on an execution time in an electronic device according to an exemplary embodiment.
8 is a flowchart illustrating an operation method of dividing and processing data based on the number of executions in an electronic device according to another exemplary embodiment.
9 is a block diagram of an electronic device in a network environment according to an embodiment.

도 1은 일 실시 예에 따른 전자 장치의 하드웨어 구성의 블록도이다.1 is a block diagram of a hardware configuration of an electronic device according to an exemplary embodiment.

도 1을 참조하면, 전자 장치(100)는 프로세서(110), 메모리(120), 및 디스플레이(130)를 포함할 수 있다. 다양한 실시 예에서, 전자 장치(100)는 도 1에 도시된 구성요소 외에 추가적인 구성요소를 포함하거나, 도 1에 도시된 구성요소 중 적어도 하나를 생략할 수 있다.Referring to FIG. 1 , the electronic device 100 may include a processor 110 , a memory 120 , and a display 130 . In various embodiments, the electronic device 100 may include additional components in addition to the components illustrated in FIG. 1 , or may omit at least one of the components illustrated in FIG. 1 .

프로세서(110)는 메모리(120)에 저장된 어플리케이션을 구동하여 전자 장치(100)의 적어도 하나의 구성 요소를 제어하거나, 다양한 데이터를 처리하여 디스플레이(130)가 정보를 표시하도록 제어할 수 있다. 프로세서(110)의 상세한 설명은 도 9에서 후술하여 중복되는 설명은 생략한다.The processor 110 may control at least one component of the electronic device 100 by driving an application stored in the memory 120 , or process various data to control the display 130 to display information. A detailed description of the processor 110 will be described later with reference to FIG. 9 , and a redundant description thereof will be omitted.

모델-뷰-컨트롤러(model-view-controller, MVC)는 소프트웨어 공학에서 사용되는 소프트웨어 디자인 패턴을 의미한다. 모델(model)은 데이터베이스, 초기화 값, 변수와 같은 어플리케이션의 정보 또는 데이터를 의미한다. 뷰(view)는 모델에서 전달받은 데이터를 출력하는 사용자 인터페이스 요소를 의미한다. 컨트롤러(controller)는 모델과 뷰 사이에서 동작하며, 사용자의 입력처리와 흐름 제어를 담당하는 부분을 의미한다.Model-view-controller (MVC) refers to a software design pattern used in software engineering. A model refers to information or data of an application such as a database, initialization values, and variables. A view refers to a user interface element that outputs data received from the model. The controller operates between the model and the view, and refers to the part in charge of processing user input and controlling the flow.

MVC 패턴에 따른 소프트웨어 어플리케이션에서 컨트롤러가 모델을 변경하는 명령을 실행하면 뷰가 모델의 변경된 데이터에 따라 업데이트될 수 있다. 전자 장치는 실행된 명령들 중 적어도 일부를 그룹화할 수 있다. 실행된 명령들 중 적어도 일부를 포함하는 그룹은 커밋(commit)이라고 언급될 수 있다.In a software application according to the MVC pattern, when the controller executes a command to change the model, the view can be updated according to the changed data of the model. The electronic device may group at least some of the executed commands. A group including at least some of the executed instructions may be referred to as a commit.

사용자로부터 커밋(commit)을 실행 취소(undo)하도록 하는 사용자 입력이 수신되면 전자 장치는 해당 커밋(commit)의 모든 명령이 실행되지 않고 이전 상태로 모델(model)을 변경할 수 있다. 실행 취소 동작이 완료되면 변경 이벤트가 뷰(view)로 전송되어 모델(model)이 명령이 실행되기 이전 상태로 업데이트 될 수 있다.When a user input for undoing a commit is received from the user, the electronic device may change the model to a previous state without executing all commands of the corresponding commit. When the undo operation is complete, a change event is sent to the view so that the model can be updated to the state before the command was executed.

사용자로부터 커밋(commit)을 재실행(redo)하도록 하는 사용자 입력이 수신되면 전자 장치는 해당 커밋(commit)의 모든 명령을 재실행할 수 있다. 재실행 동작이 완료되면 변경 이벤트가 뷰(view)로 전송되어 전자 장치는 최신 상태로 모델(model)을 업데이트 할 수 있다.When a user input to redo a commit is received from the user, the electronic device may re-execute all commands of the corresponding commit. When the re-execution operation is completed, a change event is transmitted to the view so that the electronic device can update the model to the latest state.

일 실시 예에 따르면, 프로세서(110)는 실행된 적어도 하나의 명령에 대한 로그를 저장하고, 상기 적어도 하나의 명령에 대한 부하 정보를 획득하며, 적어도 하나의 명령을 포함하는 명령어 그룹(commit)을 결정하고, 상기 명령어 그룹에 대한 실행 취소 명령 또는 재실행 명령에 응답하여, 상기 부하 정보에 기초하여 상기 적어도 하나의 명령 중에서 적어도 하나를 포함하는 제1 부분 그룹을 결정하며, 상기 제1 부분 그룹에 포함된 적어도 하나의 명령의 실행 이전 상태로 복귀하는 실행 취소 동작 또는 다시 실행하는 재실행 동작이 완료되면, 상기 실행 취소 동작 또는 상기 재실행 동작 이후의 상태에 기초하여 상기 전자 장치의 뷰(view)를 업데이트하도록 제어할 수 있다.According to an embodiment, the processor 110 stores a log of at least one executed instruction, obtains load information for the at least one instruction, and executes an instruction group (commit) including at least one instruction. determine, in response to an undo command or a redo command for the group of commands, determine a first subgroup including at least one of the at least one command based on the load information, including in the first subgroup to update the view of the electronic device based on the state after the undo operation or the redo operation when an undo operation of returning to a state before the execution of at least one command or a redo operation of redo is completed; can be controlled

메모리(120)는 전자 장치(100)의 적어도 하나의 구성요소에 의해 사용되는 다양한 데이터, 예를 들어, 소프트웨어, 명령에 대한 입력 데이터 또는 출력 데이터를 저장할 수 있다. 메모리(120)의 상세한 설명은 도 9에서 후술하여 중복되는 설명은 생략한다.The memory 120 may store various data used by at least one component of the electronic device 100 , for example, input data or output data for software and commands. A detailed description of the memory 120 will be described later with reference to FIG. 9 , and a redundant description thereof will be omitted.

일 실시 예에 따르면, 메모리(120)는 사용자의 동작에 대응하는 명령(command)을 저장할 수 있다. 일 실시 예에 따르면, 메모리(120)는 최근에 실행된 순서의 오름차순으로 명령어 객체를 저장할 수 있다. 실행된 순서에 기초하여 누적하여 저장된 명령어 객체들의 집합은 스택(stack)이라고 언급될 수 있다.According to an embodiment, the memory 120 may store a command corresponding to a user's operation. According to an embodiment, the memory 120 may store the instruction objects in an ascending order of the most recently executed order. A set of stored instruction objects accumulated based on the order in which they are executed may be referred to as a stack.

디스플레이(130)는 전자 장치(100)의 적어도 하나의 구성요소에 의해 사용되는 다양한 데이터, 예를 들어, 소프트웨어, 명령에 대한 입력 데이터 또는 출력 데이터를 표시할 수 있다.The display 130 may display various data used by at least one component of the electronic device 100 , for example, input data or output data for software and commands.

일 실시 예에 따르면, 디스플레이(130)는 커맨드의 상태에 기초하여 업데이트된 뷰(view)를 사용자에게 시각적으로 제공할 수 있다. 일 실시 예에서, 디스플레이(130)는 커맨드에 대한 실행 취소(undo) 또는 재실행(redo) 동작이 완료된 경우 완료된 상태의 뷰를 사용자에게 제공할 수 있다. 일 실시 예에서, 디스플레이(130)는 커맨드에 대한 실행 취소(undo) 또는 재실행(redo) 동작이 완료되지 않은 경우 완료되지 않은 상태의 뷰를 사용자에게 제공할 수 있다.According to an embodiment, the display 130 may visually provide an updated view to the user based on the state of the command. In an embodiment, when an undo or redo operation for a command is completed, the display 130 may provide a view of a completed state to the user. In an embodiment, when an undo or redo operation for a command is not completed, the display 130 may provide a view in an incomplete state to the user.

도 2는 일 실시 예에 따른 데이터를 처리하는 흐름도이다.2 is a flowchart of processing data according to an exemplary embodiment.

일 실시 예에 따르면, 동작 210에서, 전자 장치(예: 도1의 전자 장치(100))는 메모리에 저장된 커맨드를 실행할 수 있다. 일 실시 예에 따르면, 전자 장치(100)는 프로세서(예: 도 1의 프로세서(110))를 통하여 사용자의 명령에 응답하여 메모리(예: 도 1의 메모리(120))에 저장된 명령(command)를 실행하도록 제어할 수 있다.According to an embodiment, in operation 210 , the electronic device (eg, the electronic device 100 of FIG. 1 ) may execute a command stored in the memory. According to an embodiment, the electronic device 100 responds to a user's command through a processor (eg, the processor 110 of FIG. 1 ) to a command stored in a memory (eg, the memory 120 of FIG. 1 ). can be controlled to run.

일 실시 예에 따르면, 동작 220에서, 전자 장치(100)는 실행된 커맨드에 대한 로그를 저장할 수 있다. 일 실시 예에 따르면, 전자 장치(100)는 명령에 대한 부하 정보를 획득할 수 있다. According to an embodiment, in operation 220 , the electronic device 100 may store a log of the executed command. According to an embodiment, the electronic device 100 may obtain load information for a command.

일 실시 예에 따르면, 전자 장치(100)는 커맨드가 실행되는데 소요되는 시간을 저장할 수 있다. 일 실시 예에 따르면, 커맨드가 실행되는데 걸리는 시간은 해당 명령을 실행 한 시작 시간(start time)과 종료 시간(end time) 사이의 지속 시간으로 계산될 수 있다. 일 실시 예에 따르면, 시작 시간(start time)과 종료 시간(end time)은 프로그래밍 언어에서 제공하는 타임 스탬프(time stamp)에 대한 함수를 이용하여 결정될 수 있다. 예를 들어, 타임 스탬프(time stamp) 함수는 커맨드의 실행 이벤트가 발생하는 시간을 시작 시간(start time)으로 결정하고, 커맨드의 실행 완료 이벤트가 발생하는 시간을 종료 시간(end time)으로 결정할 수 있다.According to an embodiment, the electronic device 100 may store a time required to execute a command. According to an embodiment, the time it takes for a command to be executed may be calculated as a duration between a start time and an end time for executing the command. According to an embodiment, a start time and an end time may be determined using a function for a time stamp provided by a programming language. For example, the time stamp function may determine the time at which the execution event of the command occurs as the start time, and the time at which the execution completion event of the command occurs as the end time. have.

일 실시 예에 따르면 커맨드가 실행되는데 걸리는 시간은 커맨드의 실행이 완료되는데 소요되는 시간, 모델(model)이 업데이트 되는 시간 및 뷰(view)가 업데이트 되는 시간을 포함할 수 있다.According to an embodiment, the time it takes to execute the command may include the time it takes to complete the execution of the command, the time when the model is updated, and the time when the view is updated.

일 실시 예에 따르면, 동작 230에서, 전자 장치(100)는 명령어 그룹을 결정할 수 있다.According to an embodiment, in operation 230 , the electronic device 100 may determine a command group.

일 실시 예에 따르면, 전자 장치(100)는 프로세서(110)에 의해 실행된 적어도 하나의 사용자 명령(command)을 메모리(120)의 리스트 상에 객체로서 저장할 수 있다. 전자 장치(100)는 리스트에 포함된 사용자 명령들의 객체들 중에서 적어도 하나를 포함하는 명령어 그룹(commit)을 결정할 수 있다. 일 실시 예에 따르면, 사용자 명령은 가장 최근에 실행된 순서대로 오름차순으로 저장될 수 있다. 일 실시 예에 따르면, 전자 장치(100)는 리스트 상에서 인접한 커맨드 객체를 연결(linking)할 수 있다. 일 실시 예에 따르면, 명령어 그룹에 포함된 사용자 명령들의 객체들은 최근에 실행된 사용자 명령들에 대한 객체부터 순차적으로 포함될 수 있다.According to an embodiment, the electronic device 100 may store at least one user command executed by the processor 110 as an object on the list of the memory 120 . The electronic device 100 may determine a command group (commit) including at least one among objects of user commands included in the list. According to an embodiment, user commands may be stored in an ascending order in the order in which they were most recently executed. According to an embodiment, the electronic device 100 may link adjacent command objects on the list. According to an embodiment, objects of user commands included in the command group may be sequentially included starting with objects of recently executed user commands.

일 실시 예에 따르면, 전자 장치(100)는 명령어 그룹(commit)을 메모리(120)의 리스트 상에 객체로서 저장할 수 있다. 일 실시 예에 따르면, 명령어 그룹(commit)은 가장 최근에 실행된 순서대로 오름차순으로 저장될 수 있다. 일 실시 예에 따르면, 전자 장치(100)는 리스트 상에서 인접한 명령어 그룹(commit) 객체를 연결(linking)할 수 있다.According to an embodiment, the electronic device 100 may store a command group (commit) as an object on the list of the memory 120 . According to an embodiment, command groups (commit) may be stored in an ascending order in the order in which they were most recently executed. According to an embodiment, the electronic device 100 may link adjacent command group (commit) objects on the list.

일 실시 예에 따르면, 전자 장치(100)는 리스트에 포함된 명령의 객체들 중에서 가장 마지막에 실행된 명령의 객체를 가리키는 커서를 설정할 수 있다.According to an embodiment, the electronic device 100 may set a cursor pointing to the object of the last executed command among the command objects included in the list.

일 실시 예에 따르면, 동작 240에서, 전자 장치(100)는 프로세서를 통해 명령어 그룹에 대한 실행 취소 또는 재실행 명령을 사용자로부터 수신할 수 있다.According to an embodiment, in operation 240 , the electronic device 100 may receive an undo or redo command for a command group from a user through the processor.

일 실시 예에 따르면, 실행 취소 또는 재실행 명령은 사용자입력에 의해 수행될 수 있다. 예를 들어, 사용자 입력은 사용자 인터페이스와의 상호작용을 포함할 수 있다. 사용자 입력에 관한 구체적인 설명은 도 3에 대한 설명에서 후술하기로 한다.According to an embodiment, the undo or redo command may be performed by a user input. For example, user input may include interaction with a user interface. A detailed description of the user input will be described later with reference to FIG. 3 .

일 실시 예에 따르면, 동작 250에서, 전자 장치(100)는 사용자 명령에 응답하여 제1 그룹을 결정할 수 있다. 예를 들어, 사용자 명령은 실행 취소 또는 재실행 명령일 수 있다.According to an embodiment, in operation 250 , the electronic device 100 may determine the first group in response to a user command. For example, the user command may be an undo or redo command.

일 실시 예에 따르면, 제1 그룹은 명령(command)에 대한 부하 정보를 기반으로 결정될 수 있다. 부하 정보는 전자 장치가 명령을 실행하기 위해 요구되는 부하의 양을 나타내는 정보를 의미할 수 있다. 예를 들어, 부하 정보는 명령이 실행되는데 소요되는 시간에 대한 정보를 포함할 수 있다. 다른 예에서, 부하 정보는 실행되는 명령의 개수에 대한 정보를 포함할 수 있다.According to an embodiment, the first group may be determined based on load information for a command. The load information may refer to information indicating an amount of load required for the electronic device to execute a command. For example, the load information may include information about a time taken for the command to be executed. In another example, the load information may include information about the number of instructions to be executed.

일 실시 예에 따르면, 전자 장치(100)는 제1 그룹을, 프로세서(110)에 의해 획득된 명령의 부하 정보와 기준 값을 비교하여 결정할 수 있다. 예를 들어, 각 명령(command)을 가장 최근에 실행되었던 순서대로 실행 취소 또는 재실행을 하는데 소요되는 시간의 합과 기준 시간을 비교하여 결정될 수 있다. 다른 예에서, 제1 그룹은 가장 최근에 실행되었던 순서대로 실행 취소 또는 재실행을 하는 명령의 개수와 기준 개수를 비교하여 결정될 수 있다. 명령의 부하 정보와 기준 값을 비교하여 제1 그룹을 결정하는 동작에 관한 구체적인 설명은 도 5에서 후술하기로 한다.According to an embodiment, the electronic device 100 may determine the first group by comparing the load information of the command acquired by the processor 110 with a reference value. For example, it may be determined by comparing the sum of the time required to undo or redo each command in the order in which it was most recently executed and a reference time. In another example, the first group may be determined by comparing the reference number with the number of instructions for undoing or redoing in the order in which they were most recently executed. A detailed description of the operation of determining the first group by comparing the command load information with the reference value will be described later with reference to FIG. 5 .

일 실시 예에 따르면, 동작 260에서, 전자 장치(100)는 제1 그룹에 포함된 명령(command)의 실행 취소 또는 재실행 동작을 수행할 수 있다.According to an embodiment, in operation 260 , the electronic device 100 may perform an undo or redo operation of a command included in the first group.

일 실시 예에 따르면, 제1 그룹에 대한 실행 취소 또는 재실행 동작이 완료하여 각 커맨드에 대한 사용자의 명령의 영향을 되돌릴 수 있다. 예를 들어, 제1 그룹에 대한 실행 취소 동작이 완료된 경우, 실행되었던 명령에 대한 효과가 되돌려질 수 있다. 다른 예에서, 제1 그룹에 대한 재실행 동작이 완료된 경우, 실행 취소되었던 명령에 대한 효과가 되돌려질 수 있다.According to an embodiment, the undo or redo operation for the first group is completed, so that the influence of the user's command on each command can be reversed. For example, when the undo operation for the first group is completed, the effect on the command that was executed may be reversed. In another example, when the redo operation for the first group is completed, the effect of the command that was undone may be reversed.

일 실시 예에 따르면, 명령어 그룹에 포함된 모든 사용자 명령들에 대한 실행 취소 또는 재실행 동작이 완료되지 않은 경우, 전자 장치(100)는 나머지 사용자 명령들에 대하여 동작 250 내지 동작 270을 반복할 수 있다. 전자 장치(100)는 명령어 그룹에 포함된 사용자 명령 중 일부에 대해서 실행 취소 또는 재실행 동작이 완료될 때마다 뷰를 업데이트하므로, 뷰가 업데이트되기까지 과도한 시간이 소요됨으로 인해서 발생하는 ANR의 발생이 방지될 수 있다.According to an embodiment, when the undo or redo operation for all user commands included in the command group is not completed, the electronic device 100 may repeat operations 250 to 270 for the remaining user commands. . Since the electronic device 100 updates the view every time an undo or redo operation is completed for some of the user commands included in the command group, the occurrence of ANR caused by excessive time required for the view to be updated is prevented can be

일 실시 예에 따르면, 실행 취소 또는 재실행 동작이 완료된 후에는 어플리케이션에서 다른 작업이 진행될 수 있다.According to an embodiment, after the undo or redo operation is completed, another task may be performed in the application.

일 실시 예에 따르면, 동작 270에서, 전자 장치(100)는 실행 취소 또는 재실행 이후의 상태에 기초하여 뷰(view)를 업데이트 할 수 있다.According to an embodiment, in operation 270 , the electronic device 100 may update a view based on a state after undo or redo.

일 실시 예에 따르면, 업데이트 된 뷰(view)는 디스플레이를 통해 사용자에게 제공될 수 있다. 예를 들어, 뷰의 업데이트는 객체의 크기 조정, 이미지 추가 또는 삭제, 스트로크 추가 또는 삭제와 같은 업데이트를 포함할 수 있다.According to an embodiment, the updated view may be provided to the user through the display. For example, an update of a view may include an update such as resizing an object, adding or deleting an image, or adding or deleting a stroke.

도 3은 일 실시 예에 따른 전자 장치에서 실행 취소 또는 재실행 하기 위한 사용자 인터페이스 요소를 나타내는 도면이다.3 is a diagram illustrating a user interface element for undoing or redoing an operation in an electronic device according to an exemplary embodiment.

도 3을 참조하면, 사용자 인터페이스는 실행 취소 및 재실행 명령의 각각을 실행하도록 동작할 수 있는 버튼을 표시할 수 있다. 일 실시 예에 따르면, 실행 취소 버튼(310)과 재실행 버튼(320)은 연속적으로 복수의 실행 취소 혹은 재실행을 실행하기 위해 복수 횟수 동작할 수 있다. Referring to FIG. 3 , the user interface may display buttons operable to execute each of the undo and redo commands. According to an embodiment, the undo button 310 and the redo button 320 may operate a plurality of times to continuously undo or redo a plurality of undos.

일 실시 예에 따르면, 사용자는 가장 최근의 명령 하나만을 실행 취소하도록 한정되지 않고 또한 가장 최근 삭제된 명령 하나만을 재실행 하도록 제한되지 않는다.According to an embodiment, the user is not limited to undoing only one of the most recent commands, and is not limited to redoing only one of the most recently deleted commands.

일 실시 예에 따르면, 실행 취소 버튼(310)을 길게 누르는 경우 복수개의 명령이 연속적으로 실행취소 될 수 있고 재실행 버튼(320)을 길게 누르는 경우 복수개의 명령이 연속적으로 재실행될 수 있다.According to an embodiment, when the undo button 310 is pressed and held, a plurality of commands may be continuously undone, and when the redo button 320 is long pressed, a plurality of commands may be continuously re-executed.

도 4는 일 실시 예에 따른 데이터 처리시스템의 데이터 처리과정을 설명하기 위한 참고도이다. 도 4에 대한 설명과 관련하여 전술한 내용과 중복되는 내용은 간략히 하거나 생략될 수 있다.4 is a reference diagram for explaining a data processing process of a data processing system according to an exemplary embodiment. In relation to the description of FIG. 4 , the content overlapping with the above may be simplified or omitted.

도 4를 참조하면, 일 실시 예에 따른 전자 장치는, 프로세서(110)를 통하여 사용자 명령을 수신할 수 있다(410). 예를 들어, 사용자 명령은 터치 패널을 통해 입력된 스트로크(stroke)가 전자 문서 내에 입력되어 있는 경우 스트로크(stroke)를 선택하거나 옮기는 동작을 포함할 수 있다.Referring to FIG. 4 , the electronic device according to an embodiment may receive a user command through the processor 110 ( 410 ). For example, when a stroke input through the touch panel is input in the electronic document, the user command may include an operation of selecting or moving the stroke.

일 실시 예에 따르면, 사용자 명령 각각에 대한 커맨드가 만들어질 수 있다. 예를 들어, 사용자가 선택하고 옮기는 스트로크의 개수에 대응하는 수의 커맨드가 만들어질 수 있다(420).According to an embodiment, a command for each user command may be created. For example, a number of commands corresponding to the number of strokes the user selects and moves may be generated ( 420 ).

일 실시 예에 따르면, 전자 장치(예: 도1의 전자 장치(100))는 만들어진 커맨드를 실행할 수 있다(430). 일 실시 예에 따르면, 전자 장치(100)는 프로세서(예: 도 1의 프로세서(110))를 통하여 사용자의 명령에 응답하여 메모리(예: 도 1의 메모리(120))에 저장된 명령(command)를 실행하도록 제어할 수 있다.According to an embodiment, the electronic device (eg, the electronic device 100 of FIG. 1 ) may execute the created command ( 430 ). According to an embodiment, the electronic device 100 responds to a user's command through a processor (eg, the processor 110 of FIG. 1 ) to a command stored in a memory (eg, the memory 120 of FIG. 1 ). can be controlled to run.

일 실시 예에 따르면, 전자 장치(100)는 프로세서(110)를 통하여 커맨드가 실행되는데 소요되는 시간을 계산할 수 있다. 일 실시 예에 따르면, 커맨드가 실행되는데 걸리는 시간은 해당 명령을 실행 한 시작 시간(start time)(401)과 종료 시간(end time)(402) 사이의 지속 시간으로 계산될 수 있다.According to an embodiment, the electronic device 100 may calculate a time required to execute a command through the processor 110 . According to an embodiment, the time it takes to execute a command may be calculated as a duration between a start time 401 and an end time 402 at which the command is executed.

일 실시 예에 따르면, 프로세서(110)는 실행된 명령(command)을 명령어 그룹에 저장할 수 있다(440). 일 실시 예에 따르면, 프로세서(110)는 명령을 저장하는 경우 가장 먼저 실행된 명령부터 아래에서부터 위를 향하는 방향으로 스택(stack)할 수 있다. 일 실시 예에 따르면, 전자 장치(100)는 프로세서(110)에 의해 계산된 커맨드가 실행되는데 소요되는 시간을 명령어 그룹(commit)에 저장할 수 있다.According to an embodiment, the processor 110 may store an executed command in a command group ( 440 ). According to an embodiment, when storing instructions, the processor 110 may stack the instructions from the bottom to the top from the first executed instruction. According to an embodiment, the electronic device 100 may store a time required to execute a command calculated by the processor 110 in a command group (commit).

도 5는 일 실시 예에 따른 데이터 처리시스템의 데이터 처리과정을 설명하기 위한 참고도이다. 도 5에 대한 설명과 관련하여 전술한 내용과 중복되는 내용은 간략히 기술되거나 생략될 수 있다.5 is a reference diagram for explaining a data processing process of a data processing system according to an exemplary embodiment. Content overlapping with the above in relation to the description of FIG. 5 may be briefly described or omitted.

도 5를 참조하면, 일 실시 예에 따른 전자 장치(예: 도 1의 전자 장치(100))는 명령어 그룹(commit)에 남아있는 커맨드를 실행 취소(undo) 또는 재실행(redo) 할 수 있다.Referring to FIG. 5 , the electronic device (eg, the electronic device 100 of FIG. 1 ) according to an embodiment may undo or redo a command remaining in a command group (commit).

일 실시 예에 따르면, 전자 장치(100)는 명령어 그룹에 남아있는 커맨드 중 실행 취소가 완료되지 않은 각 명령(command)을 가장 최근에 실행되었던 순서대로 실행 취소할 수 있다. 다른 실시 예에 따르면, 전자 장치(100)는 명령어 그룹에 남아있는 커맨드 중 재실행 완료가 되지 않은 각 명령을 가장 먼저 실행했던 순서대로 다시 실행할 수 있다.According to an embodiment, the electronic device 100 may undo each of the commands for which undo is not completed among commands remaining in the command group in the order in which they were most recently executed. According to another embodiment, the electronic device 100 may re-execute each of the commands that are not re-executed among the commands remaining in the command group in the order in which they were first executed.

일 실시 예에 따르면, 전자 장치(100)는 각 커맨드에 대하여 저장된 부하정보를 기초로 실행 취소 또는 재실행 여부를 결정할 수 있다. According to an embodiment, the electronic device 100 may determine whether to cancel or redo execution based on load information stored for each command.

일 실시 예에 따르면, 각 커맨드를 가장 최근에 실행되었던 순서대로 실행 취소 또는 재실행을 할 때 각 커맨드에 대하여 저장된 부하정보와 기준 값을 비교하여 각 커맨드의 실행 취소 또는 재실행 여부를 결정할 수 있다. 예를 들어, 부하 정보는 명령이 실행되는데 소요되는 시간에 대한 정보를 포함할 수 있다. 다른 예에서, 부하 정보는 실행되는 명령의 개수에 대한 정보를 포함할 수 있다.According to an embodiment, when undoing or re-executing each command in the order in which it was most recently executed, it is possible to determine whether to undo or re-execute each command by comparing the load information stored for each command with a reference value. For example, the load information may include information about a time taken for the command to be executed. In another example, the load information may include information about the number of instructions to be executed.

일 실시 예에 따르면, 기준 값은 어플리케이션의 실행 단계 초기에 설정될 수 있다. 다른 실시 예에 따르면, 기준 값은 어플리케이션에서 작업이 진행되는 중에 환경설정을 통해 설정될 수 있다. According to an embodiment, the reference value may be set at the beginning of the execution phase of the application. According to another embodiment, the reference value may be set through environment setting while a job is in progress in the application.

일 실시 예에 따르면, 기준 값은 기준 시간 또는 기준 개수일 수 있다. 예를 들어, 기준 시간은 ANR(application not responding)이 발생하기 전까지 명령을 실행하는데 소요될 수 있는 시간일 수 있다. 다른 예에서, 기준 개수는 ANR(application not responding) 이 발생하기 전까지 실행될 수 있는 명령의 개수일 수 있다. According to an embodiment, the reference value may be a reference time or a reference number. For example, the reference time may be the time it may take to execute the command before an application not responding (ANR) occurs. In another example, the reference number may be the number of commands that may be executed before an application not responding (ANR) occurs.

일 실시 예에 따르면, 전자 장치(100)는 명령어 그룹의 모든 커맨드의 실행 취소가 완료될 때까지 가장 최근에 실행되었던 순서대로 각 커맨드의 실행 취소 여부를 결정할 수 있다. 다른 실시 예에 따르면, 전자 장치(100)는 명령어 그룹의 모든 커맨드의 재실행이 완료될 때까지 가장 먼저 실행되었던 순서대로 각 커맨드의 재실행 여부를 결정할 수 있다. According to an embodiment, the electronic device 100 may determine whether to undo each command in the order in which it was most recently executed until the undo of all commands in the command group is completed. According to another embodiment, the electronic device 100 may determine whether to re-execute each command in the order in which it was first executed until the re-execution of all commands in the command group is completed.

도 6은 일 실시 예에 따른 데이터 처리시스템의 데이터 처리과정을 설명하기 위한 참고도이다. 도 6에 대한 설명과 관련하여 전술한 내용과 중복되는 내용은 간략히 하거나 생략될 수 있다.6 is a reference diagram for explaining a data processing process of a data processing system according to an exemplary embodiment. In relation to the description of FIG. 6 , the content overlapping with the above may be simplified or omitted.

도 6을 참조하면, 일 실시 예에 따른 전자 장치(예: 도 1의 전자 장치(100))의 MVC(model-view-control) 소프트웨어 어플리케이션에서, 사용자는 동작을 수행하기 위해 API(application programming interface)를 호출할 수 있다.Referring to FIG. 6 , in a model-view-control (MVC) software application of an electronic device (eg, the electronic device 100 of FIG. 1 ) according to an embodiment, a user performs an operation through an application programming interface (API) ) can be called.

일 실시 예에 따르면, 명령(command)을 그룹화하여 명령어 그룹을 만들 수 있다. 일 실시 예에 따르면, 사용자가 명령어 그룹에 대하여 실행 취소 또는 재실행 명령을 하면 명령어 그룹에 포함된 모든 커맨드가 실행 취소 또는 재실행 될 수 있다.According to an embodiment, a command group may be created by grouping commands. According to an embodiment, when the user issues an undo or redo command with respect to a command group, all commands included in the command group may be undoed or re-executed.

일 실시 예에 따르면, 명령어 그룹에 대하여 실행 취소 명령을 하면 해당 명령어 그룹의 모든 명령을 실행 취소하고 모델(model)을 업데이트 이전 상태로 변경될 수 있다.According to an embodiment, when an undo command is issued to a command group, all commands of the command group are canceled and the model is changed to a state before the update.

일 실시 예에 따르면, 실행 취소가 완료되면 변경 이벤트가 뷰(view)로 전송되어 최신 상태의 모델(model)로 업데이트 될 수 있다.According to an embodiment, when undo is completed, a change event may be transmitted to a view to be updated with the latest model.

일 실시 예에 따르면, 명령어 그룹에 대하여 다시 실행하는 명령을 하면 해당 명령어 그룹의 모든 명령이 다시 실행되고 모델(model)을 업데이트 이후 상태로 변경될 수 있다.According to an embodiment, when a command to be executed again is given for a command group, all commands of the command group are executed again, and the model may be changed to a state after updating.

일 실시 예에 따르면, 재실행이 완료되면 변경 이벤트가 뷰(view)로 전송되어 최신 상태의 모델(model)로 업데이트 될 수 있다.According to an embodiment, when re-execution is completed, a change event may be transmitted to a view to be updated with the latest model.

도 7은 일 실시 예에 따른 전자 장치에서, 데이터를 실행시간을 기준으로 나눠서 처리하는 동작 방법을 나타내는 흐름도이다. 이하 실시 예에서, 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 예시된 동작도의 동작 주체는 전자 장치(100) 또는 전자 장치(100)의 구성요소(예: 프로세서(110), 메모리(120), 또는 디스플레이(130))로 이해될 수 있다.7 is a flowchart illustrating an operation method of dividing and processing data based on an execution time in an electronic device according to an exemplary embodiment. In the following embodiment, 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. An operating subject of the illustrated operation diagram may be understood as the electronic device 100 or a component of the electronic device 100 (eg, the processor 110 , the memory 120 , or the display 130 ).

도 7을 참조하면, 프로세서(예: 도 1의 프로세서(110))는 동작 701에서 명령어 그룹(commit)에 명령어 객체가 존재하는지 판단할 수 있다. 예를 들어, 프로세서(110)는 명령어 그룹에 실행 취소(undo) 또는 재실행(redo) 완료되지 않은 명령이 존재하는지 여부를 판단할 수 있다.Referring to FIG. 7 , the processor (eg, the processor 110 of FIG. 1 ) may determine whether an instruction object exists in an instruction group (commit) in operation 701 . For example, the processor 110 may determine whether an undo or redo uncompleted instruction exists in the instruction group.

일 실시 예에 따르면, 전자장치(100)는 명령어 그룹에 명령어 객체가 존재하는 경우 동작 703에서 초기 시간 값을 0으로 설정할 수 있다.According to an embodiment, when the command object exists in the command group, the electronic device 100 may set the initial time value to 0 in operation 703 .

일 실시 예에 따르면, 프로세서(110)는 동작 705에서 초기 시간 값을 0으로 설정한 후에 각 커맨드를 최근에 실행된 순서대로 실행 취소할 수 있다. 다른 실시 예에 따르면, 프로세서(110)는 동작 705에서 초기 시간 값을 0으로 설정한 후에 각 커맨드를 가장 먼저 실행된 순서대로 다시 실행할 수 있다. 일 실시 예에 따르면, 프로세서(110)는 초기 시간 값에 각 커맨드를 실행 취소 또는 재실행하는데 걸린 시간을 순서대로 더할 수 있다. 일 실시 예에 따르면, 프로세서(110)는 초기 시간 값에 각 커맨드를 실행 취소 또는 재실행하는데 걸린 시간을 순서대로 더한 시간 값을 산출할 수 있다.According to an embodiment, after setting the initial time value to 0 in operation 705 , the processor 110 may undo each command in the order in which it was recently executed. According to another embodiment, after setting the initial time value to 0 in operation 705 , the processor 110 may re-execute each command in the order in which it was first executed. According to an embodiment, the processor 110 may sequentially add the time taken to undo or re-execute each command to the initial time value. According to an embodiment, the processor 110 may calculate a time value obtained by sequentially adding a time taken to undo or re-execute each command to an initial time value.

일 실시 예에 따르면, 프로세서(110)는 동작 707에서, 동작 705에서 산출한 시간 값과 기준 시간을 비교할 수 있다. 예를 들어, 프로세서(110)는 동작 705에서 산출한 시간 값이 기준 시간보다 작거나 같은지 여부를 확인할 수 있다. 일 실시 예에 따르면, 기준 시간은 어플리케이션의 실행 단계 초기에 설정될 수 있다. 다른 실시 예에 따르면, 기준 시간은 어플리케이션에서 작업이 진행되는 중에 환경설정을 통해 설정될 수 있다.According to an embodiment, in operation 707, the processor 110 may compare the time value calculated in operation 705 with the reference time. For example, the processor 110 may determine whether the time value calculated in operation 705 is less than or equal to the reference time. According to an embodiment, the reference time may be set at the beginning of the execution phase of the application. According to another embodiment, the reference time may be set through environment setting while a job is being performed in the application.

일 실시 예에 따르면, 기준 시간은 ANR(application not responding)이 발생하기 전까지 명령을 실행 취소 또는 재실행 하는데 소요되는 시간일 수 있다. 예를 들어, 기준 시간은 5~6초 내의 시간일 수 있다.According to an embodiment, the reference time may be a time taken for undoing or re-executing a command before an application not responding (ANR) occurs. For example, the reference time may be within 5 to 6 seconds.

일 실시 예에 따르면, 전자 장치(100)는 동작 707에서, 동작 705에서 산출한 시간 값이 기준 시간보다 작거나 같고 명령어 그룹에 실행 취소 또는 재실행되지 않은 커맨드가 존재한다고 판단된 경우 동작 703으로 진행하여 상술한 동작들을 반복할 수 있다. According to an embodiment, when it is determined in operation 707 that the time value calculated in operation 705 is less than or equal to the reference time and there is a command that has not been undone or reexecuted in the command group, the electronic device 100 proceeds to operation 703 Thus, the above-described operations can be repeated.

일 실시 예에 따르면, 동작 707에서, 동작 705에서 산출한 시간 값이 기준 시간보다 크다고 판단된 경우, 동작 709에서 명령어 그룹에 실행취소 또는 재실행 되지 않은 커맨드가 존재하는지 여부를 판단할 수 있다. According to an embodiment, when it is determined in operation 707 that the time value calculated in operation 705 is greater than the reference time, in operation 709 , it may be determined whether a command that has not been undone or re-executed exists in the command group.

일 실시 예에 따르면, 동작 709에서 프로세서(110)가 명령어 그룹에 실행 취소 또는 재실행 완료되지 않은 커맨드가 존재한다고 판단한 경우에는, 실행 취소 또는 재실행 상태를 미완료 상태로 설정할 수 있다. 반면에, 프로세서(110)는 동작 709에서 명령어 그룹에 실행 취소 또는 재실행 완료되지 않은 커맨드가 존재하지 않는다고 판단한 경우에는 실행 취소 또는 재실행 상태를 완료 상태로 설정할 수 있다.According to an embodiment, when the processor 110 determines that a command that has not been undoed or re-executed exists in the command group in operation 709, the undo or re-execution state may be set to the incomplete state. On the other hand, when it is determined in operation 709 that a command that has not been undoed or re-executed does not exist in the command group, the processor 110 may set the undo or redo state to the completed state.

일 실시 예에 따르면, 프로세서(110)는 동작 715에서 커맨드의 실행 취소 또는 재실행 상태에 따라서 뷰(view)를 업데이트 할 수 있다. 예를 들어, 커맨드가 실행 취소 또는 재실행 완료 상태인 경우에는 완료 상태에 기반하여 뷰를 업데이트 할 수 있다. 다른 예에서, 커맨드가 실행 취소 또는 재실행 미완료 상태인 경우에는 미완료 상태에 기반하여 뷰(view)를 업데이트 할 수 있다.According to an embodiment, the processor 110 may update the view according to the undo or re-execution state of the command in operation 715 . For example, if a command is in the undo or redo complete state, the view can be updated based on the completion state. In another example, when the command is in an undo or redo incomplete state, the view may be updated based on the incomplete state.

일 실시 예에 따르면, 업데이트 된 뷰(view)는 디스플레이를 통해 사용자에게 제공될 수 있다. 예를 들어, 뷰의 업데이트는 객체의 크기 조정, 이미지 추가 또는 삭제, 스트로크 추가 또는 삭제와 같은 업데이트를 포함할 수 있다.According to an embodiment, the updated view may be provided to the user through the display. For example, an update of a view may include an update such as resizing an object, adding or deleting an image, or adding or deleting a stroke.

일 실시 예에 따르면, 프로세서(110)는 동작 717에서 명령어 그룹의 실행 취소 또는 재실행 상태를 확인할 수 있다. 예를 들어, 프로세서(110)는 명령어 그룹의 상태가 실행 취소 또는 재실행이 완료된 상태인지 여부를 확인할 수 있다. According to an embodiment, the processor 110 may check the undo or re-execution state of the instruction group in operation 717 . For example, the processor 110 may check whether the state of the instruction group is a state in which undo or re-execution is completed.

일 실시 예에 따르면, 프로세서(110)는, 명령어 그룹의 상태가 실행 취소 또는 재실행이 완료된 상태라고 판단되는 경우 본 발명의 한 실시 예에 따른 데이터 처리 절차를 종료할 수 있다.According to an embodiment, the processor 110 may terminate the data processing procedure according to an embodiment of the present invention when it is determined that the state of the instruction group is a state in which undo or re-execution is completed.

일 실시 예에 따르면, 프로세서(110)는, 명령어 그룹의 상태가 실행 취소 또는 재실행이 미완료된 상태라고 판단되는 경우 동작 719에서 어플리케이션의 실행에 오류가 있는지 여부를 확인할 수 있다.According to an embodiment, when it is determined that the state of the instruction group is a state in which undo or re-execution is not completed, the processor 110 may check whether there is an error in the execution of the application in operation 719 .

일 실시 예에 따르면, 프로세서(110)는 어플리케이션의 실행에 오류가 있다고 판단되는 경우 어플리케이션을 강제 종료할 수 있다.According to an embodiment, when it is determined that there is an error in the execution of the application, the processor 110 may forcibly terminate the application.

일 실시 예에 따르면, 프로세서(110)는 어플리케이션의 실행에 오류가 없다고 판단되는 경우 동작 703으로 진행하여 상술한 동작을 반복할 수 있다.According to an embodiment, when it is determined that there is no error in the execution of the application, the processor 110 proceeds to operation 703 and repeats the above-described operation.

도 8은 다른 실시 예에 따른 전자 장치에서, 데이터를 실행 개수를 기준으로 나눠서 처리하는 동작 방법을 나타내는 흐름도이다. 이하 실시 예에서, 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 예시된 동작도의 동작 주체는 전자 장치(100) 또는 전자 장치(100)의 구성요소(예: 프로세서(110), 메모리(120), 또는 디스플레이(130))로 이해될 수 있다.8 is a flowchart illustrating an operation method of dividing and processing data based on the number of executions in an electronic device according to another exemplary embodiment. In the following embodiment, 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. An operating subject of the illustrated operation diagram may be understood as the electronic device 100 or a component of the electronic device 100 (eg, the processor 110 , the memory 120 , or the display 130 ).

도 8을 참조하면, 프로세서(예: 도 1의 프로세서(110))는 동작 801에서 명령어 그룹(commit)에 명령어 객체가 존재하는지 판단할 수 있다. 예를 들어, 프로세서(110)는 명령어 그룹에 실행 취소(undo) 또는 재실행(redo) 완료되지 않은 명령이 존재하는지 여부를 판단할 수 있다.Referring to FIG. 8 , the processor (eg, the processor 110 of FIG. 1 ) may determine whether an instruction object exists in an instruction group (commit) in operation 801 . For example, the processor 110 may determine whether an undo or redo uncompleted instruction exists in the instruction group.

일 실시 예에 따르면, 전자장치(100)는 명령어 그룹에 명령어 객체가 존재하는 경우 동작 803에서 각 커맨드를 최근에 실행된 순서대로 실행 취소할 수 있다. 다른 실시 예에 따르면, 전자 장치(100)는 명령어 그룹에 명령어 객체가 존재하는 경우 동작 803에서 각 커맨드를 가장 먼저 실행된 순서대로 다시 실행할 수 있다.According to an embodiment, when the command object exists in the command group, the electronic device 100 may cancel each command in the order in which it was recently executed in operation 803 . According to another embodiment, when a command object exists in the command group, the electronic device 100 may re-execute each command in the order in which it was first executed in operation 803 .

일 실시 예에 따르면, 프로세서(110)는 동작 805에서, 실행 취소 또는 재실행하는 명령의 개수와 기준 개수를 비교할 수 있다. 예를 들어, 프로세서(110)는 실행취소 또는 재실행되는 명령의 개수가 기준 개수보다 작거나 같은지 여부를 확인할 수 있다. 일 실시 예에 따르면, 기준 개수는 어플리케이션의 실행 단계 초기에 설정될 수 있다. 다른 실시 예에 따르면, 기준 개수는 어플리케이션에서 작업이 진행되는 중에 환경설정을 통해 설정될 수 있다.According to an embodiment, in operation 805 , the processor 110 may compare the number of instructions to be undone or re-executed with a reference number. For example, the processor 110 may determine whether the number of undoed or re-executed instructions is less than or equal to a reference number. According to an embodiment, the reference number may be set at the beginning of the execution phase of the application. According to another embodiment, the reference number may be set through environment setting while a job is in progress in the application.

일 실시 예에 따르면, 기준 개수는 ANR(application not responding)이 발생하기 전까지 실행 취소 또는 재실행될 수 있는 명령의 개수일 수 있다.According to an embodiment, the reference number may be the number of commands that can be undone or re-executed before an application not responding (ANR) occurs.

일 실시 예에 따르면, 전자 장치(100)는 동작 805에서, 실행 취소 또는 재실행하는 명령의 개수가 기준 개수보다 작거나 같고 명령어 그룹에 실행 취소 또는 재실행되지 않은 커맨드가 존재한다고 판단된 경우 동작 803으로 진행하여 상술한 동작들을 반복할 수 있다. According to an embodiment, in operation 805 , the electronic device 100 proceeds to operation 803 when it is determined that the number of commands to be undone or re-executed is less than or equal to the reference number and there is a command that has not been undone or re-executed in the command group. In the process, the above-described operations may be repeated.

반면에, 프로세서(110)는 상기 동작 805에서, 실행 취소 또는 재실행하는 명령의 개수가 기준 개수보다 크다고 판단된 경우 동작 807에서 명령어 그룹에 실행취소 또는 재실행 되지 않은 커맨드가 존재하는지 여부를 판단할 수 있다. On the other hand, if it is determined in operation 805 that the number of commands to be undo or re-executed is greater than the reference number, the processor 110 may determine whether a command that has not been undone or re-executed exists in the instruction group in operation 807. have.

일 실시 예에 따르면, 동작 807에서 프로세서(110)가 명령어 그룹에 실행 취소 또는 재실행 완료되지 않은 커맨드가 존재한다고 판단한 경우에는, 실행 취소 또는 재실행 상태를 미완료 상태로 설정할 수 있다. 반면에, 프로세서(110)는 동작 807에서 명령어 그룹에 실행 취소 또는 재실행 완료되지 않은 커맨드가 존재하지 않는다고 판단한 경우에는 실행 취소 또는 재실행 상태를 완료 상태로 설정할 수 있다.According to an embodiment, when the processor 110 determines that a command that has not been undoed or re-executed exists in the command group in operation 807, the undo or re-execution state may be set to an incomplete state. On the other hand, when it is determined in operation 807 that a command that has not been undoed or re-executed does not exist in the instruction group, the processor 110 may set the undo or redo state to the completed state.

일 실시 예에 따르면, 프로세서(110)는 동작 813에서 커맨드의 실행 취소 또는 재실행 상태에 따라서 뷰(view)를 업데이트 할 수 있다. 예를 들어, 커맨드가 실행 취소 또는 재실행 완료 상태인 경우에는 완료 상태에 기반하여 뷰(view)를 업데이트 할 수 있다. 다른 예에서, 커맨드가 실행 취소 또는 재실행 미완료 상태인 경우에는 미완료 상태에 기반하여 뷰(view)를 업데이트 할 수 있다.According to an embodiment, the processor 110 may update the view according to the undo or re-execution state of the command in operation 813 . For example, when the command is in the undo or redo completion state, the view may be updated based on the completion state. In another example, when the command is in an undo or redo incomplete state, the view may be updated based on the incomplete state.

일 실시 예에 따르면, 업데이트 된 뷰(view)는 디스플레이를 통해 사용자에게 제공될 수 있다. 예를 들어, 뷰의 업데이트는 객체의 크기 조정, 이미지 추가 또는 삭제, 스트로크 추가 또는 삭제와 같은 업데이트를 포함할 수 있다.According to an embodiment, the updated view may be provided to the user through the display. For example, an update of a view may include an update such as resizing an object, adding or deleting an image, or adding or deleting a stroke.

일 실시 예에 따르면, 프로세서(110)는 동작 815에서 명령어 그룹의 실행 취소 또는 재실행 상태를 확인할 수 있다. 예를 들어, 프로세서(110)는 명령어 그룹의 상태가 실행 취소 또는 재실행이 완료된 상태인지 여부를 확인할 수 있다. According to an embodiment, the processor 110 may check the undo or re-execution state of the instruction group in operation 815 . For example, the processor 110 may check whether the state of the instruction group is a state in which undo or re-execution is completed.

일 실시 예에 따르면, 프로세서(110)는, 명령어 그룹의 상태가 실행 취소 또는 재실행이 완료된 상태라고 판단되는 경우 본 발명의 한 실시 예에 따른 데이터 처리 절차를 종료할 수 있다.According to an embodiment, the processor 110 may terminate the data processing procedure according to an embodiment of the present invention when it is determined that the state of the instruction group is a state in which undo or re-execution is completed.

일 실시 예에 따르면, 프로세서(110)는, 명령어 그룹의 상태가 실행 취소 또는 재실행이 미완료된 상태라고 판단되는 경우 동작 817에서 어플리케이션의 실행에 오류가 있는지 여부를 확인할 수 있다.According to an embodiment, when it is determined that the state of the instruction group is a state in which undo or re-execution is not completed, the processor 110 may check whether there is an error in the execution of the application in operation 817 .

일 실시 예에 따르면, 프로세서(110)는 어플리케이션의 실행에 오류가 있다고 판단되는 경우 어플리케이션을 강제 종료할 수 있다.According to an embodiment, when it is determined that there is an error in the execution of the application, the processor 110 may forcibly terminate the application.

일 실시 예에 따르면, 프로세서(110)는 어플리케이션의 실행에 오류가 없다고 판단되는 경우 동작 803으로 진행하여 상술한 동작을 반복할 수 있다.According to an embodiment, when it is determined that there is no error in the execution of the application, the processor 110 proceeds to operation 803 and repeats the above-described operation.

도 9는, 다양한 실시 예들에 따른, 네트워크 환경(900) 내의 전자 장치(901)의 블록도이다. 9 is a block diagram of an electronic device 901 in a network environment 900 according to various embodiments of the present disclosure.

도 9를 참조하면, 네트워크 환경(900)에서 전자 장치(901)는 제 1 네트워크(998)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(902)와 통신하거나, 또는 제 2 네트워크(999)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(904) 또는 서버(908)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(901)는 서버(908)를 통하여 전자 장치(904)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(901)는 프로세서(920), 메모리(930), 입력 모듈(950), 음향 출력 모듈(955), 디스플레이 모듈(960), 오디오 모듈(970), 센서 모듈(976), 인터페이스(977), 연결 단자(978), 햅틱 모듈(979), 카메라 모듈(980), 전력 관리 모듈(988), 배터리(989), 통신 모듈(990), 가입자 식별 모듈(996), 또는 안테나 모듈(997)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(901)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(978))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(976), 카메라 모듈(980), 또는 안테나 모듈(997))은 하나의 구성요소(예: 디스플레이 모듈(960))로 통합될 수 있다.Referring to FIG. 9 , in a network environment 900 , the electronic device 901 communicates with the electronic device 902 through a first network 998 (eg, a short-range wireless communication network) or a second network 999 . It may communicate with the electronic device 904 or the server 908 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 901 may communicate with the electronic device 904 through the server 908 . According to an embodiment, the electronic device 901 includes a processor 920 , a memory 930 , an input module 950 , a sound output module 955 , a display module 960 , an audio module 970 , and a sensor module ( 976), interface 977, connection terminal 978, haptic module 979, camera module 980, power management module 988, battery 989, communication module 990, subscriber identification module 996 , or an antenna module 997 . In some embodiments, at least one of these components (eg, the connection terminal 978 ) may be omitted or one or more other components may be added to the electronic device 901 . In some embodiments, some of these components (eg, sensor module 976 , camera module 980 , or antenna module 997 ) are integrated into one component (eg, display module 960 ). can be

프로세서(920)는, 예를 들면, 소프트웨어(예: 프로그램(940))를 실행하여 프로세서(920)에 연결된 전자 장치(901)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(920)는 다른 구성요소(예: 센서 모듈(976) 또는 통신 모듈(990))로부터 수신된 명령 또는 데이터를 휘발성 메모리(932)에 저장하고, 휘발성 메모리(932)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(934)에 저장할 수 있다. 일실시예에 따르면, 프로세서(920)는 메인 프로세서(921)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(923)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(901)가 메인 프로세서(921) 및 보조 프로세서(923)를 포함하는 경우, 보조 프로세서(923)는 메인 프로세서(921)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(923)는 메인 프로세서(921)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 920, for example, executes software (eg, a program 940) to execute at least one other component (eg, a hardware or software component) of the electronic device 901 connected to the processor 920 . It can control and perform various data processing or operations. According to one embodiment, as at least part of data processing or computation, the processor 920 converts commands or data received from other components (eg, the sensor module 976 or the communication module 990 ) to the volatile memory 932 . may store the command or data stored in the volatile memory 932 , and store the resulting data in the non-volatile memory 934 . According to one embodiment, the processor 920 is a main processor 921 (eg, central processing unit or application processor) or a secondary processor 923 (eg, a graphics processing unit, a neural network processing unit) a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor). For example, when the electronic device 901 includes a main processor 921 and a sub-processor 923 , the sub-processor 923 uses less power than the main processor 921 or is set to be specialized for a specified function. can The coprocessor 923 may be implemented separately from or as part of the main processor 921 .

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

다양한 실시예에 따르면, 안테나 모듈(997)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 997 may form a mmWave antenna module. According to one embodiment, the mmWave antenna module comprises a printed circuit board, an RFIC disposed on or adjacent to a first side (eg, bottom side) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, an array antenna) disposed on or adjacent to a second side (eg, top or side) of the printed circuit board and capable of transmitting or receiving signals of 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 (eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and a signal ( eg commands or data) can be exchanged with each other.

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

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.The electronic device according to various embodiments disclosed in this document may have various types of devices. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device. The electronic device according to the embodiment of the present document is 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 therein are not intended to limit the technical features described in this document to specific embodiments, but it should be understood to include various modifications, equivalents, or substitutions of the embodiments. In connection with the description of the drawings, like reference numerals may be used for similar or related components. The singular form of the noun corresponding to the item may include one or more of the item, unless the relevant context clearly dictates 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 , B, or C" each may include any one of the items listed together in the corresponding one of the phrases, or all possible combinations thereof. Terms such as "first", "second", or "first" or "second" may be used simply to distinguish the element from other elements in question, and may refer to elements in other aspects (e.g., importance or order) is not limited. It is said that one (eg, first) component is "coupled" or "connected" to another (eg, second) component, with or without the terms "functionally" or "communicatively". When referenced, it means that one component can be connected to the other component directly (eg by wire), 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, for example, logic, logic block, component, or circuit. can be used as A module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions. For example, according to an embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).

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

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

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

상술한 바와 같이, 일 실시 예에 따른 전자 장치(예: 도 1의 전자 장치(100))는, 메모리(예: 도 1의 메모리(120)) 및 상기 메모리에 저장된 적어도 하나의 명령(command)을 실행하는 프로세서(예: 도 1의 프로세서(110))를 포함하고, 상기 프로세서는, 상기 실행된 적어도 하나의 명령에 대한 로그를 저장하고, 상기 적어도 하나의 명령에 대한 부하 정보를 획득하며, 상기 적어도 하나의 명령을 포함하는 명령어 그룹(commit)을 결정하고, 상기 명령어 그룹에 대한 실행 취소 명령 또는 재실행 명령에 응답하여, 상기 부하 정보에 기초하여 상기 적어도 하나의 명령 중에서 적어도 하나를 포함하는 제1 부분 그룹을 결정하며, 상기 제1 부분 그룹에 포함된 적어도 하나의 명령의 실행 이전 상태로 복귀하는 실행 취소 동작 또는 다시 실행하는 재실행 동작이 완료되면, 상기 실행 취소 동작 또는 상기 재실행 동작 이후의 상태에 기초하여 상기 전자 장치의 뷰(view)를 업데이트하도록 구성될 수 있다.As described above, the electronic device (eg, the electronic device 100 of FIG. 1 ) according to an embodiment includes a memory (eg, the memory 120 of FIG. 1 ) and at least one command stored in the memory. includes a processor (eg, the processor 110 of FIG. 1 ) executing Determine a command group (commit) including the at least one command, and in response to an undo command or a redo command for the command group, a first command including at least one of the at least one command based on the load information One partial group is determined, and when an undo operation of returning to a state before the execution of at least one command included in the first partial group or a redo operation of redoing is completed, the state after the undo operation or the redo operation It may be configured to update a view of the electronic device based on

일 실시 예에 따르면, 상기 부하 정보는 상기 적어도 하나의 명령의 실행을 완료하는 과정에 소요되는 시간에 대한 시간 정보를 포함할 수 있다.According to an embodiment, the load information may include time information about a time required for a process of completing the execution of the at least one command.

일 실시 예에 따르면, 상기 실행을 완료하는 과정에 소요되는 시간은 상기 선택된 각 명령의 실행시간, 모델 변화 과정에 소요되는 시간 및 상기 뷰가 업데이트되는 과정에 소요되는 시간을 포함할 수 있다.According to an embodiment, the time required for the process of completing the execution may include an execution time of each of the selected commands, a time taken for a model change process, and a time taken for a process of updating the view.

일 실시 예에 따르면, 상기 적어도 하나의 프로세서는 상기 제1 부분 그룹에 포함된 상기 명령의 실행을 완료하는 과정에 소요되는 시간을 모두 합한 시간이 기준 시간을 넘지 않도록 상기 제1 부분 그룹을 결정할 수 있다.According to an embodiment, the at least one processor may determine the first partial group so that the sum of the time required for the process of completing the execution of the instruction included in the first partial group does not exceed a reference time. have.

일 실시 예에 따르면, 상기 적어도 하나의 프로세서는, 상기 명령어 그룹에 포함된 상기 적어도 하나의 명령 중에서 지정된 수량 이하의 명령어가 상기 제1 부분 그룹에 포함되도록 상기 제1 부분 그룹을 결정할 수 있다.According to an embodiment of the present disclosure, the at least one processor may determine the first partial group such that instructions less than or equal to a specified quantity among the at least one instruction included in the instruction group are included in the first partial group.

일 실시 예에 따르면, 전자 장치는 디스플레이(예: 도 1의 디스플레이(130))를 더 포함하고, 상기 적어도 하나의 프로세서는, 상기 전자 장치의 상기 업데이트된 뷰(view)가 표시되도록 상기 디스플레이를 제어하도록 구성될 수 있다.According to an embodiment, the electronic device further includes a display (eg, the display 130 of FIG. 1 ), and the at least one processor configures the display to display the updated view of the electronic device. can be configured to control.

일 실시 예에 따르면, 상기 적어도 하나의 프로세서는, 상기 명령어 그룹에 상기 제1 부분 그룹에 포함되지 않는 적어도 하나의 명령이 존재하는 경우 상기 적어도 하나의 명령 중 적어도 하나의 명령을 포함하는 제2 부분 그룹을 결정하고, 상기 전자 장치의 뷰를 업데이트한 이후에 상기 제2 부분 그룹에 포함된 적어도 하나의 명령의 실행 이전 상태로 복귀하는 실행 취소 동작 또는 다시 실행하는 재실행 동작을 수행할 수 있다.According to an embodiment, when at least one instruction not included in the first partial group exists in the instruction group, the at least one processor includes a second portion including at least one instruction among the at least one instruction After determining a group and updating the view of the electronic device, an undo operation of returning to a state prior to execution of at least one command included in the second partial group or a redo operation of re-executing may be performed.

일 실시 예에 따르면, 상기 저장되는 로그는, 상기 적어도 하나의 프로세서에 의해 실행된 적어도 하나의 명령에 대한 적어도 하나의 명령어 객체의 리스트를 포함할 수 있다. According to an embodiment, the stored log may include a list of at least one instruction object for at least one instruction executed by the at least one processor.

일 실시 예에 따르면, 상기 리스트는 상기 적어도 하나의 명령이 실행된 순서대로 누적된 스택을 포함할 수 있다.According to an embodiment, the list may include a stack accumulated in the order in which the at least one command is executed.

일 실시 예에 따르면, 상기 부하 정보는 상기 적어도 하나의 명령을 실행하기 위해 요구되는 연산량 또는 실행 취소하기 위해 요구되는 연산량에 대한 정보를 포함할 수 있다.According to an embodiment, the load information may include information on the amount of computation required to execute or cancel the at least one command.

상술한 바와 같이, 일 실시 예에 따른 전자 장치(예: 도 1의 전자 장치)의 방법은, 메모리(예: 도 1의 메모리(120))에 저장된 적어도 하나의 명령(command)을 실행하는 동작, 상기 실행된 적어도 하나의 명령에 대한 로그를 저장하는 동작, 상기 적어도 하나의 명령에 대한 부하 정보를 획득하는 동작, 상기 적어도 하나의 명령을 포함하는 명령어 그룹(commit)을 결정하는 동작, 상기 명령어 그룹에 대한 실행 취소 명령 또는 재실행 명령에 응답하여, 상기 부하 정보에 기초하여 상기 적어도 하나의 명령 중에서 적어도 하나를 포함하는 제1 부분 그룹을 결정하는 동작 및 상기 제1 부분 그룹에 포함된 적어도 하나의 명령의 실행 이전 상태로 복귀하는 실행 취소 동작 또는 다시 실행하는 재실행 동작이 완료되면, 상기 실행 취소 동작 또는 상기 재실행 동작 이후의 상태에 기초하여 상기 전자 장치의 뷰(view)를 업데이트하는 동작을 포함할 수 있다.As described above, the method of the electronic device (eg, the electronic device of FIG. 1 ) according to an embodiment executes at least one command stored in a memory (eg, the memory 120 of FIG. 1 ). , an operation of storing a log for the at least one executed command, an operation of obtaining load information for the at least one command, an operation of determining a command group (commit) including the at least one command, the command determining a first subgroup including at least one of the at least one command based on the load information in response to an undo command or a redo command for the group; and at least one of the at least one subgroup included in the first subgroup and updating the view of the electronic device based on the state after the undo operation or the redo operation when the undo operation of returning to the state before the execution of the command or the redo operation of re-executing the command are completed can

일 실시 예에 따르면, 상기 부하 정보는 상기 적어도 하나의 명령의 실행을 완료하는 과정에 소요되는 시간에 대한 시간 정보를 포함할 수 있다. According to an embodiment, the load information may include time information about a time required for a process of completing the execution of the at least one command.

일 실시 예에 따르면, 상기 실행을 완료하는 과정에 소요되는 시간은 상기 선택된 각 명령의 실행시간, 모델 변화 과정에 소요되는 시간 및 상기 뷰가 업데이트되는 과정에 소요되는 시간을 포함할 수 있다. According to an embodiment, the time required for the process of completing the execution may include an execution time of each of the selected commands, a time taken for a model change process, and a time taken for a process of updating the view.

일 실시 예에 따르면, 전자 장치의 동작 방법은 상기 적어도 하나의 프로세서가 상기 제1 부분 그룹에 포함된 상기 명령의 실행을 완료하는 과정에 소요되는 시간을 모두 합한 시간이 기준 시간을 넘지 않도록 상기 제1 부분 그룹을 결정하는 동작을 포함할 수 있다.According to an embodiment of the present disclosure, in the method of operating an electronic device, the time required for the at least one processor to complete the execution of the command included in the first partial group does not exceed a reference time. 1 may include an operation of determining a partial group.

일 실시 예에 따르면, 전자 장치의 동작 방법은 상기 명령어 그룹에 포함된 상기 적어도 하나의 명령 중에서 지정된 수량 이하의 명령어가 상기 제1 부분 그룹에 포함되도록 상기 제1 부분 그룹을 결정하는 동작을 포함할 수 있다.According to an embodiment, the method of operating an electronic device may include determining the first partial group so that commands of a specified quantity or less from among the at least one command included in the command group are included in the first partial group. can

일 실시 예에 따르면, 전자 장치의 동작 방법은 상기 전자 장치의 동작 방법의 상기 업데이트된 뷰(view)가 표시되도록 디스플레이를 제어하는 동작을 포함할 수 있다.According to an embodiment, the method of operating the electronic device may include controlling a display to display the updated view of the method of operating the electronic device.

일 실시 예에 따르면, 전자 장치의 동작 방법은 상기 명령어 그룹에 포함된 적어도 하나의 명령 중에서 상기 제1 부분 그룹에 포함된 적어도 하나의 명령을 제외한 나머지 중에서 제2 부분 그룹에 포함되는 적어도 하나의 명령을 결정하는 동작 및 상기 전자 장치의 동작 방법의 뷰를 업데이트한 이후에 상기 제2 부분 그룹에 포함된 적어도 하나의 명령의 실행 이전 상태로 복귀하는 실행 취소 동작 또는 다시 실행하는 재실행 동작을 수행하는 동작을 포함할 수 있다.According to an embodiment, in the method of operating an electronic device, at least one command included in a second subgroup from among the at least one command included in the command group except for at least one command included in the first subgroup After updating the view of the operation method and the operation method of the electronic device, performing an undo operation or redo operation of returning to a state before execution of at least one command included in the second partial group may include

일 실시 예에 따르면, 상기 저장되는 로그는, 상기 프로세서에 의해 실행된 적어도 하나의 명령에 대한 적어도 하나의 명령어 객체의 리스트를 포함할 수 있다.According to an embodiment, the stored log may include a list of at least one instruction object for at least one instruction executed by the processor.

일 실시 예에 따르면, 상기 리스트는 상기 적어도 하나의 명령이 실행된 순서대로 누적된 스택을 포함할 수 있다.According to an embodiment, the list may include a stack accumulated in the order in which the at least one command is executed.

일 실시 예에 따르면, 상기 부하 정보는 상기 적어도 하나의 명령을 실행하기 위해 요구되는 연산량 또는 실행 취소하기 위해 요구되는 연산량에 대한 정보를 포함할 수 있다.According to an embodiment, the load information may include information on the amount of computation required to execute or cancel the at least one command.

Claims (20)

전자 장치에 있어서,
메모리; 및
상기 메모리에 저장된 적어도 하나의 명령(command)을 실행하는 적어도 하나의 프로세서를 포함하고,
상기 적어도 하나의 프로세서는,
상기 실행된 적어도 하나의 명령에 대한 로그를 저장하고,
상기 적어도 하나의 명령에 대한 부하 정보를 획득하며,
상기 적어도 하나의 명령을 포함하는 명령어 그룹(commit)을 결정하고,
상기 명령어 그룹에 대한 실행 취소 명령 또는 재실행 명령에 응답하여, 상기 부하 정보에 기초하여 상기 적어도 하나의 명령 중에서 적어도 하나를 포함하는 제1 부분 그룹을 결정하며,
상기 제1 부분 그룹에 포함된 적어도 하나의 명령의 실행 이전 상태로 복귀하는 실행 취소 동작 또는 재실행 동작이 완료되면, 상기 실행 취소 동작 또는 상기 재실행 동작 이후의 상태에 기초하여 상기 전자 장치의 뷰(view)를 업데이트하도록 구성된, 전자 장치.
In an electronic device,
Memory; and
at least one processor executing at least one command stored in the memory;
the at least one processor,
storing a log of the executed at least one command;
Obtaining load information for the at least one command,
determining a command group (commit) including the at least one command;
in response to an undo command or a redo command for the group of commands, determine a first subgroup including at least one of the at least one command based on the load information;
When the undo operation or the redo operation of returning to the state before the execution of at least one command included in the first partial group is completed, the view of the electronic device based on the state after the undo operation or the redo operation ), the electronic device configured to update.
청구항 1에 있어서,
상기 부하 정보는 상기 적어도 하나의 명령의 실행을 완료하는 과정에 소요되는 시간에 대한 시간 정보를 포함하는, 전자 장치.
The method according to claim 1,
The load information includes time information on a time required for a process of completing the execution of the at least one command.
청구항 2에 있어서,
상기 실행을 완료하는 과정에 소요되는 시간은 상기 적어도 하나의 명령의 실행 시간, 모델 변화 과정에 소요되는 시간 및 상기 뷰가 업데이트되는 과정에 소요되는 시간을 포함하는, 전자 장치.
3. The method according to claim 2,
The time required for the process of completing the execution includes an execution time of the at least one command, a time required for a model change process, and a time taken for a process of updating the view.
청구항 2에 있어서,
상기 적어도 하나의 프로세서는,
상기 제1 부분 그룹에 포함된 상기 명령의 실행을 완료하는 과정에 소요되는 시간을 모두 합한 시간이 기준 시간을 넘지 않도록 상기 제1 부분 그룹을 결정하는, 전자 장치.
3. The method according to claim 2,
the at least one processor,
and determining the first partial group so that a sum of time required to complete the execution of the command included in the first partial group does not exceed a reference time.
청구항 1에 있어서,
상기 적어도 하나의 프로세서는,
상기 명령어 그룹에 포함된 상기 적어도 하나의 명령 중에서 지정된 수량 이하의 명령어가 상기 제1 부분 그룹에 포함되도록 상기 제1 부분 그룹을 결정하는, 전자 장치.
The method according to claim 1,
the at least one processor,
and determining the first partial group so that commands less than or equal to a specified quantity among the at least one command included in the command group are included in the first partial group.
청구항 1에 있어서,
디스플레이를 더 포함하고,
상기 적어도 하나의 프로세서는, 상기 전자 장치의 상기 업데이트된 뷰(view)가 표시되도록 상기 디스플레이를 제어하도록 구성된, 전자 장치.
The method according to claim 1,
further comprising a display;
The at least one processor is configured to control the display such that the updated view of the electronic device is displayed.
청구항 1에 있어서,
상기 적어도 하나의 프로세서는,
상기 명령어 그룹에 상기 제1 부분 그룹에 포함되지 않는 적어도 하나의 명령이 존재하는 경우 상기 적어도 하나의 명령 중 적어도 하나의 명령을 포함하는 제2 부분 그룹을 결정하고,
상기 전자 장치의 뷰를 업데이트한 이후에 상기 제2 부분 그룹에 포함된 적어도 하나의 명령의 실행 이전 상태로 복귀하는 실행 취소 동작 또는 다시 실행하는 재실행 동작을 수행하는, 전자 장치.
The method according to claim 1,
the at least one processor,
determining a second subgroup including at least one command from among the at least one command when at least one command not included in the first subgroup exists in the command group;
After updating the view of the electronic device, an undo operation of returning to a state prior to execution of the at least one command included in the second partial group or a redo operation of redoing the at least one command included in the second partial group is performed.
청구항 1에 있어서,
상기 저장되는 로그는,
상기 적어도 하나의 프로세서에 의해 실행된 적어도 하나의 명령에 대한 적어도 하나의 명령어 객체의 리스트를 포함하는, 전자 장치.
The method according to claim 1,
The stored log is
and a list of at least one instruction object for at least one instruction executed by the at least one processor.
청구항 8에 있어서,
상기 리스트는 상기 적어도 하나의 명령이 실행된 순서대로 누적된 스택을 포함하는, 전자 장치.
9. The method of claim 8,
The list includes a stack accumulated in an order in which the at least one command is executed.
청구항 1에 있어서,
상기 부하 정보는 상기 적어도 하나의 명령을 실행하기 위해 요구되는 연산량 또는 실행 취소하기 위해 요구되는 연산량에 대한 정보를 포함하는, 전자 장치.
The method according to claim 1,
The load information includes information on an amount of computation required to execute or undo the at least one command.
전자 장치의 동작 방법에 있어서,
메모리에 저장된 적어도 하나의 명령(command)을 실행하는 동작;
상기 실행된 적어도 하나의 명령에 대한 로그를 저장하는 동작;
상기 적어도 하나의 명령에 대한 부하 정보를 획득하는 동작;
상기 적어도 하나의 명령을 포함하는 명령어 그룹(commit)을 결정하는 동작;
상기 명령어 그룹에 대한 실행 취소 명령 또는 재실행 명령에 응답하여, 상기 부하 정보에 기초하여 상기 적어도 하나의 명령 중에서 적어도 하나를 포함하는 제1 부분 그룹을 결정하는 동작; 및
상기 제1 부분 그룹에 포함된 적어도 하나의 명령의 실행 이전 상태로 복귀하는 실행 취소 동작 또는 다시 실행하는 재실행 동작이 완료되면, 상기 실행 취소 동작 또는 상기 재실행 동작 이후의 상태에 기초하여 상기 전자 장치의 뷰(view)를 업데이트하는 동작을 포함하는, 전자 장치의 동작 방법.
A method of operating an electronic device, comprising:
executing at least one command stored in the memory;
storing a log of the executed at least one command;
obtaining load information for the at least one command;
determining a command group (commit) including the at least one command;
determining a first partial group including at least one of the at least one command based on the load information in response to an undo command or a redo command for the command group; and
When the undo operation of returning to the state before the execution of the at least one command included in the first partial group or the redo operation of redoing is completed, based on the state after the undo operation or the redo operation A method of operating an electronic device, comprising updating a view.
청구항 11에 있어서,
상기 부하 정보는 상기 적어도 하나의 명령의 실행을 완료하는 과정에 소요되는 시간에 대한 시간 정보를 포함하는, 전자 장치의 동작 방법.
12. The method of claim 11,
The method of operating an electronic device, wherein the load information includes time information about a time required for a process of completing the execution of the at least one command.
청구항 12에 있어서,
상기 실행을 완료하는 과정에 소요되는 시간은 상기 적어도 하나의 명령의 실행 시간, 모델 변화 과정에 소요되는 시간 및 상기 뷰가 업데이트되는 과정에 소요되는 시간을 포함하는, 전자 장치의 동작 방법.
13. The method of claim 12,
The method of operating an electronic device, wherein the time required for the process of completing the execution includes an execution time of the at least one command, a time required for a model change process, and a time taken for a process of updating the view.
청구항 12에 있어서,
상기 제1 부분 그룹에 포함된 상기 명령의 실행을 완료하는 과정에 소요되는 시간을 모두 합한 시간이 기준 시간을 넘지 않도록 상기 제1 부분 그룹을 결정하는 동작을 더 포함하는, 전자 장치의 동작 방법.
13. The method of claim 12,
The method of claim 1, further comprising determining the first partial group so that a sum of time required to complete the execution of the command included in the first partial group does not exceed a reference time.
청구항 11에 있어서,
상기 명령어 그룹에 포함된 상기 적어도 하나의 명령 중에서 지정된 수량 이하의 명령어가 상기 제1 부분 그룹에 포함되도록 상기 제1 부분 그룹을 결정하는 동작을 더 포함하는, 전자 장치의 동작 방법.
12. The method of claim 11,
The method of operating an electronic device, further comprising: determining the first partial group so that commands less than or equal to a specified quantity from among the at least one command included in the command group are included in the first partial group.
청구항 11에 있어서,
상기 전자 장치의 동작 방법의 상기 업데이트된 뷰(view)가 표시되도록 디스플레이를 제어하는 동작을 더 포함하는, 전자 장치의 동작 방법.
12. The method of claim 11,
The method of operating an electronic device, further comprising controlling a display to display the updated view of the operating method of the electronic device.
청구항 11에 있어서,
상기 명령어 그룹에 상기 제1 부분 그룹에 포함되지 않는 적어도 하나의 명령이 존재하는 경우 상기 적어도 하나의 명령 중 적어도 하나의 명령을 포함하는 제2 부분 그룹을 결정하는 동작; 및
상기 전자 장치의 동작 방법의 뷰를 업데이트한 이후에 상기 제2 부분 그룹에 포함된 적어도 하나의 명령의 실행 이전 상태로 복귀하는 실행 취소 동작 또는 다시 실행하는 재실행 동작을 수행하는 동작을 더 포함하는, 전자 장치의 동작 방법.
12. The method of claim 11,
determining a second subgroup including at least one command from among the at least one command when at least one command not included in the first subgroup exists in the command group; and
After updating the view of the operating method of the electronic device, the method further comprising: performing an undo operation of returning to a state prior to execution of at least one command included in the second partial group or a redo operation of re-executing, A method of operation of an electronic device.
청구항 11에 있어서,
상기 저장되는 로그는,
적어도 하나의 프로세서에 의해 실행된 적어도 하나의 명령에 대한 적어도 하나의 명령어 객체의 리스트를 포함하는, 전자 장치의 동작 방법.
12. The method of claim 11,
The stored log is
A method of operating an electronic device, comprising a list of at least one instruction object for at least one instruction executed by at least one processor.
청구항 18에 있어서,
상기 리스트는 상기 적어도 하나의 명령이 실행된 순서대로 누적된 스택을 포함하는, 전자 장치의 동작 방법.
19. The method of claim 18,
The method of operating an electronic device, wherein the list includes stacks accumulated in the order in which the at least one command is executed.
청구항 11에 있어서,
상기 부하 정보는 상기 적어도 하나의 명령을 실행하기 위해 요구되는 연산량 또는 실행 취소하기 위해 요구되는 연산량에 대한 정보를 포함하는, 전자 장치의 동작 방법.

12. The method of claim 11,
The method of operating an electronic device, wherein the load information includes information on an amount of computation required to execute or undo the at least one command.

KR1020200097192A 2020-08-04 2020-08-04 Apparatus and method of processing data KR20220017105A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020200097192A KR20220017105A (en) 2020-08-04 2020-08-04 Apparatus and method of processing data
PCT/KR2021/009791 WO2022030866A1 (en) 2020-08-04 2021-07-28 Data processing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200097192A KR20220017105A (en) 2020-08-04 2020-08-04 Apparatus and method of processing data

Publications (1)

Publication Number Publication Date
KR20220017105A true KR20220017105A (en) 2022-02-11

Family

ID=80118193

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200097192A KR20220017105A (en) 2020-08-04 2020-08-04 Apparatus and method of processing data

Country Status (2)

Country Link
KR (1) KR20220017105A (en)
WO (1) WO2022030866A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7567257B2 (en) * 2005-12-16 2009-07-28 Microsoft Corporation Partition-based undo of partitioned object graph
WO2008084437A1 (en) * 2007-01-11 2008-07-17 Koninklijke Philips Electronics N.V. Method and apparatus for providing an undo/redo mechanism
KR101419759B1 (en) * 2014-02-12 2014-07-17 주식회사 한글과컴퓨터 Electronic document driving apparatus and method for executing undo
KR101683448B1 (en) * 2014-12-02 2016-12-07 주식회사 인프라웨어 Method for undoing multiple command
KR102139087B1 (en) * 2019-09-19 2020-07-29 주식회사 티맥스티베로 Method, server, and computer readable medium for index recovery using index redo log

Also Published As

Publication number Publication date
WO2022030866A1 (en) 2022-02-10

Similar Documents

Publication Publication Date Title
US20230185554A1 (en) Application installation method and electronic device for supporting same
US11449318B2 (en) Application optimization method and electronic device supporting the same
US20220309352A1 (en) Method for training artificial neural network and electronic device for supporting the same
EP4198702A1 (en) Electronic device and memory management method using same
KR20220017105A (en) Apparatus and method of processing data
KR20220099322A (en) Electronic device and method for managing memory using the same
KR20220016727A (en) Method for capturing images for multi windows and electronic device therefor
US20240106488A1 (en) Electronic device for matching antenna impedance, and operation method for same
US20230049967A1 (en) Electronic device and operation method thereof
US20220004841A1 (en) Electronic device for rearranging kernels of neural network and operating method thereof
US11935149B2 (en) Electronic device and image rendering method thereof for adjusting frame rate
US20230236744A1 (en) Electronic device and method for managing memory of electronic device
KR20230022772A (en) Electronic device for changing screen based on swipe input and method of opearating the same
EP4261681A1 (en) Electronic device and method for loading kernel module of electronic device
KR20220133414A (en) Method for providing voice assistant service and electronic device supporting the same
KR20220065650A (en) Electrnonic device and method for image rendering thereof
KR20230050037A (en) Electronic device and method of operating the same
KR20210146740A (en) Electronic device, method for operation in the electronic device and non-transitory storage medium
KR20230023397A (en) Electronic device and operation method thereof
KR20220077694A (en) Virtual machine monitoring method using hypervisor and electronic device supporting the same
KR20220133566A (en) Electronic device for optimizing artificial intelligence model and method for thereof
KR20220139684A (en) Method for managing storage space and electronic device supporting the same
KR20240052570A (en) Electronic device and method for co-editing in multiple device environment
KR20230055269A (en) Electronic device, method and non-transitory computer readable storage medium performing optical character recognition
KR20230173554A (en) Method and apparatus for predicting outdoor temperature of electric device

Legal Events

Date Code Title Description
A201 Request for examination