KR101984558B1 - Recording Medium, Method and Device For Program Operation - Google Patents

Recording Medium, Method and Device For Program Operation Download PDF

Info

Publication number
KR101984558B1
KR101984558B1 KR1020180032739A KR20180032739A KR101984558B1 KR 101984558 B1 KR101984558 B1 KR 101984558B1 KR 1020180032739 A KR1020180032739 A KR 1020180032739A KR 20180032739 A KR20180032739 A KR 20180032739A KR 101984558 B1 KR101984558 B1 KR 101984558B1
Authority
KR
South Korea
Prior art keywords
program
processor
boot loader
operating system
boot
Prior art date
Application number
KR1020180032739A
Other languages
Korean (ko)
Other versions
KR20180033154A (en
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 KR1020180032739A priority Critical patent/KR101984558B1/en
Publication of KR20180033154A publication Critical patent/KR20180033154A/en
Application granted granted Critical
Publication of KR101984558B1 publication Critical patent/KR101984558B1/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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • 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/4401Bootstrapping

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

본 발명은 프로그램 운영 장치 및 방법과 프로그램 기록매체에 관한 것으로, 본 발명에 따른 프로그램 운영 장치는, 전원 입력 후, 사용자의 최초 프로그램 이용 패턴을 분석하는 분석부와, 상기 분석부의 분석결과에 대응하여, 사용자가 전원 입력 후 최초 이용하는 프로그램에 대한 종류를 확정하고, 확정된 프로그램 종류 정보를 메모리 상에 기록하는 저장부와, 전원 입력시, 제2프로세서를 구동하기 위한 멀티프로세서 분기처리 부트로더(Bootloader)와 운영체제 부팅을 위한 커널(kernel) 부트로더를 실행하되, 상기 메모리 상에 기록된 사용자가 전원 입력 후 최초 이용하는 프로그램에 대한 종류를 확인한 후, 상기 분기처리 부트로더를 통해 상기 확인한 프로그램 종류에 대응하는 프로그램 부트로더를 메모리에 적재하는 제1프로세서와, 상기 제1프로세서의 분기처리 부트로더를 통해 구동된 후, 프로그램 부트로더를 실행하여, 상기 프로그램 부트로더를 통해 상기 제1프로세서를 통한 운영체제 부팅 전 운영체제 없이 실행되는 프로그램-사용자가 전원 입력 후 최초 이용하는 프로그램에 대한 종류에 대응하는 프로그램-이 실행되도록 처리하는 제2프로세서를 구비한다.The present invention relates to a program operating apparatus and method, and a program recording medium. The program operating apparatus includes: an analyzing unit for analyzing a user's initial program use pattern after inputting power; A storage unit for determining a type of a program to be used first after the user inputs power and for recording the determined program type information on a memory, and a multiprocessor branch processing loader And a kernel boot loader for booting an operating system, wherein a user recorded on the memory confirms a type of a program to be used for the first time after inputting power, A first processor for loading the program boot loader into the memory; The program boot loader is executed through the branch processing boot loader in the program boot loader, and a program executed without an operating system before booting the operating system via the first processor via the program boot loader, And a second processor for processing a program corresponding to the type to be executed.

Description

프로그램 운영 방법 및 장치와 이를 위한 기록매체{Recording Medium, Method and Device For Program Operation}[0001] The present invention relates to a method and an apparatus for operating a program,

본 발명은 2개 이상의 프로세서가 구비된 프로그램 운영 장치에서 최초 프로그램 실행 전 운영체제 부팅과정에 따른 사용자 대기시간을 크게 줄일 수 있도록 하며, 운영체제 부팅 전 실행 프로그램을 전원 입력 후 사용자의 최초 프로그램 이용 패턴을 통해 결정토록 하는 것이다.The present invention can greatly reduce the waiting time of the user during the booting process of the operating system before executing the first program in the program operating device provided with two or more processors, .

일반적으로, 대분분의 프로그램 운영 장치들은 전원이 입력되고 사용자가 이용하고자 하는 프로그램이 실행되기 전에 운영체제 부팅과정이 선행되며, 사용자는 운영체제 부팅과정이 완료될 때까지 대기할 수 밖에 없다.Generally, most program operating devices are booted before the operating system is booted up before the power is inputted and the program to be used by the user is executed, and the user has to wait until the operating system booting process is completed.

특히, 운영체제의 기능과 용량이 확대되면서 이러한 운영체제 부팅 시간은 점점 더 길어지게 되고, 이에 따른 사용자 불만과 불편이 점점 더 커지고 있는 실정이다.Especially, as the function and capacity of the operating system are expanded, the operating system boot time becomes longer and the user complaints and inconvenience are increasing.

도면 1은 프로그램 운영 장치에서의 시스템에 전원이 들어오는 시점부터 부팅이 완료되는 시점까지 전체적인 운영체제 부팅과정의 흐름을 보여주는 흐름도이다.FIG. 1 is a flowchart showing a flow of an entire operating system booting process from the time when power is supplied to the system in the program operating apparatus to when the booting is completed.

먼저, 시스템에 전원이 들어오면, 시스템에 존재하는 모든 프로세서들은 부트 모니터를 실행하도록 되어 있다. 부트모니터는 시스템에 전원이 들어온 이후 처음 실행되는 프로그램이다. 이 프로그램은 시스템 운영체제의 커널(kernel)을 메모리에 적재(load)하기에는 너무 작고, 제한적인 기능만을 수행할 수 있기 때문에 커널을 메인 메모리에 적재해줄 부트로더(bootloader)가 필요하고, 이 부트로더를 찾아 실행시켜주는 것이 부트모니터의 가장 중요한 역할이다.First, when the system is powered on, all processors in the system are configured to run the boot monitor. The boot monitor is the first program that runs after the system is powered on. This program is too small to load the kernel of the system operating system into memory and can perform only limited functions. Therefore, a boot loader is required to load the kernel into the main memory, and this boot loader Finding and running is the most important role of the boot monitor.

부트모니터는 먼저 현재 자신을 실행하는 프로세서가 첫 번째 프로세서(CPU0)인지 아닌지를 알아내는 작업을 수행하고, 현재 프로세서가 첫 번째 프로세서라면 부트모니터는 메인 코드를 실행하고, 나머지 프로세서(CPUx)라면 WFI(wait for interrupt)를 수행하며 첫 번째 프로세서가 나머지 프로세서들을 초기화해서 사용될 수 있을 때까지 기다리게 한다. 이 때 부팅을 담당하게 되는 첫 번째 프로세서를 부트 프로세서(boot processor)라고 한다. 이와 같은 방법으로 부팅 초반에 멀티 프로세서에서도 CPU가 하나인 것처럼 부팅을 진행할 수 있게 된다. WFI를 수행하는 다른 프로세서들은 무한루프(infinite loop)을 돌면서 계속 SYS_FLAGS 레지스터에 변화가 있는지 체크하고, 부트 프로세서에 의해 레지스터 값이 바뀌면, 레지스터에 저장된 주소로 점프를 한다.If the current processor is the first processor, the boot monitor executes the main code. If the remaining processor (CPUx) is the WFI (CPUx), the boot monitor performs a task of determining whether or not the processor currently executing the current processor is the first processor (wait for interrupt) and wait for the first processor to initialize the remaining processors before they can be used. The first processor responsible for booting is called the boot processor. In this way, it is possible to boot up as if there is one CPU in multi-processor at the beginning of boot. Other processors running WFI continue to loop through the infinite loop to check for changes to the SYS_FLAGS register and jump to the address stored in the register when the register value is changed by the boot processor.

부트로더는 비휘발성 메모리의 MBR(비휘발성 메모리의 0번 섹터(sector))에서 찾을 수 있는데, MBR에 저장된 부트로더가 올바른지는 MBR 섹터 내에 마지막 2바이트(byte)에 존재하는 매직코드(magic code)를 통해 확인할 수 있다. 부트모니터는 MBR을 읽어서 매직코드를 확인하고, 부트로더임이 확인되었을 때 부트로더의 시작 주소로 점프(jump)하여 이후 부팅과정을 부트로더에게 맡긴다.The boot loader can be found in the MBR (nonzero sector of nonvolatile memory) of the nonvolatile memory. The boot loader can be found in the magic code in the last 2 bytes (byte) in the MBR sector, ). The boot monitor reads the MBR, checks the magic code, and when it is confirmed to be the boot loader, it jumps to the start address of the boot loader and leaves the boot process to the boot loader.

부트모니터로부터 호출된 부트로더의 주된 역할은 비휘발성 메모리에 저장된 커널 이미지(kernel image)를 찾아 메인 메모리의 정해진 위치에 적재하고, 커널 이미지의 시작위치로 점프함으로써 제어를 커널에게 넘기는 것이다. The main function of the boot loader called from the boot monitor is to find the kernel image stored in the nonvolatile memory, load it in the main memory location, and jump to the beginning of the kernel image to give control to the kernel.

부트로더는 커널 이미지를 메인 메모리에 적재하기에 앞서서 메인 메모리를 초기화하는 기능을 수행한다. 메인 메모리 설정이 완료되면 캐시(cache)와 SCU를 초기화하고, 사용 가능한 모든 메모리를 바탕으로 레이아웃 정보를 만든다. 이 메인 메모리 레이아웃 정보는 이후 커널에게 부트파라미터(boot parameter)를 통해서 넘겨주게 된다. The boot loader initializes the main memory prior to loading the kernel image into main memory. When the main memory configuration is completed, the cache and SCU are initialized, and layout information is created based on all available memory. This main memory layout information is then passed to the kernel via a boot parameter.

커널 이미지를 메모리에 적재 후, 콘솔 초기화와 부트파라미터 초기화를 수행하고, 커널 이미지 압축을 해제하고, 커널 이미지의 압축이 해제되면, 커널 초기화 과정을 수행하고, init 스크립트를 실행한다.After loading the kernel image into memory, initialize the console, initialize the boot parameters, uncompress the kernel image, unzip the kernel image, perform the kernel initialization process, and run the init script.

init 스크립트는 커널 초기화가 완료되었을 때, 어플리케이션(Application) 레벨에서 실행되며, init 스크립트에는 실행되어야 할 프로그램들이 순차적으로 기록되어 있는데, 이는 시스템의 목적에 따라 매우 다양하다. init 스크립트를 실행시키고, 쉘 프로그램이 실행되면, 모든 부팅과정을 마치게 된다.The init script is run at the application level when the kernel initialization is complete, and the init scripts contain a sequence of programs to be executed, which can vary greatly depending on the purpose of the system. When you run the init script and the shell program runs, it completes all the booting process.

도면 2에서 보는 바와 같이, 상기 도면 1의 과정을 거쳐 운영체제의 부팅이 완료된 후, 사용자가 원하는 프로그램을 실행하는데 까지 소요되는 사용자 대기시간은 수십초까지 걸리게 된다.As shown in FIG. 2, after the booting of the operating system is completed through the process of FIG. 1, the waiting time for the user to execute the desired program takes up to several tens of seconds.

또한, 도면 3에서 보는바와 같이, 프로세서가 두 개 이상인 멀티 프로세서를 구비한 프로그램 운영 장치에서도 프로세서(1)에서 운영체제 부팅을 처리하는 시간동안 프로세서(2)는 유효 상태로 대기중인 바, 사용자 대기시간의 단축은 멀티 프로세서 체제에서도 마찬가지의 사용자 불편함을 지니고 있다.Also, as shown in FIG. 3, in a program operating device having a multiprocessor having two or more processors, the processor 2 is in a standby state for a period of time during which the processor 1 performs booting of the operating system, The same shortcomings in the multi-processor system.

예를들어, 운전자가 자동차에 시동을 걸었을 때, 자동차에 구비된 프로그램 운영 장치에서 제공해줘야 할 가장 우선적인 서비스는 운전자에게 후방 상황을 보여주는 것이나, 현재 자동차에 구비된 프로그램 운영 장치는 운영체제 부팅과정을 마치는데 15초 이상이 소요되기 때문에, 운전자는 적어도 15초 이상을 기다려야 후방 상황을 파악하고, 운전을 할 수가 있다.For example, when a driver starts a car, the most important service to be provided by a program operating device provided in a vehicle is to show a rear view to a driver, The driver must wait at least 15 seconds before he / she can identify the rear situation and drive.

이에, 종래 기술상에 운영체제의 부팅시간을 단축하여 사용자 대기시간을 단축시키기 위한 여러종류의 패스트 부팅 기술-하이버네이션 (Hibernation), XIP (Execute-in-place), 비압축 커널 (Uncompressed kernel), 콘솔 비활성화 (Disable console), initcall 재배치 (Reordering initcalls), 전담 하드웨어 추가 등-이 연구되어 왔다.In order to shorten the boot time of the operating system and shorten the waiting time of the user in the prior art, various kinds of fast boot technologies such as Hibernation, Execute-in-place, Uncompressed kernel, (Disable console), initcall relocation (reordering initcalls), dedicated hardware additions - have been studied.

하이버네이션 기법은 메인 메모리 이미지를 비휘발성 메모리에 저장하고(suspend), 시스템에 전원이 다시 들어왔을 때, 비휘발성 메모리에 저장된 메인 메모리 이미지를 그대로 복원함으로써(resume) 부팅을 마치는 기법으로, suspend & resume 방식과 이를 개선한 snapshot 방식이 있다.The hibernation technique suspends and resumes the main memory image in nonvolatile memory and resumes by resuming the main memory image stored in the nonvolatile memory when the system is powered on again. And a snapshot method to improve it.

Suspend & resume 방식은 시스템 종료직전의 메인 메모리 이미지를 비휘발성 메모리에 저장하고(suspend), 시스템에 전원이 다시 들어왔을 때, 비휘발성 메모리에 저장된 메인 메모리 이미지를 그대로 복원함으로써(resume) 종료직전의 시스템 상태로 복원하는 기술로서, 시스템을 정상적으로 종료하고 일반적인 부팅과정을 거치는 것보다 빠르기 때문에 사용자가 체감하는 대기시간을 줄일 수 있다.The suspend and resume method suspends the main memory image immediately before the system shutdown in nonvolatile memory and resumes the main memory image stored in the nonvolatile memory when the system is powered on again. This is a technique for restoring to the system state. Since it is faster than the normal shutdown of the system and the normal booting process, the waiting time experienced by the user can be reduced.

그러나, Suspend & resume 방식의 단점은 기존 커널의 부팅이 거의 완료된 후에 이미지를 찾아 복원을 시작하기 때문에 일반적인 부팅과 비교하여 부팅시간 단축을 기대하기 힘들며, 종료할 때마다 이전 상태를 비휘발성 매체에 저장해야 하기 때문에 종료시간이 길어지는 문제점이 있고, 하이버네이션 이미지가 저장되기 전에 전원이 끊기는 경우 resume하지 못하고, 일반적인 부팅과정을 거쳐야 하는 문제점이 있다.However, the disadvantage of the Suspend & Resume method is that it is difficult to expect to shorten the boot time compared with the normal boot because the image is found and restored after the booting of the existing kernel is almost completed and the previous state is stored in the nonvolatile medium There is a problem that the ending time becomes long, and when the power is cut off before the hibernation image is stored, the resume can not be performed, and a general booting process is required.

Snapshot 기술은 suspend & resume의 단점을 보완한 기술로 부트로더 레벨에서 하이버네이션 복원을 수행하여 기존 suspend & resume이 커널 부팅이 거의 완료된 상태에서 복원하는 것보다 빠른 시점에 복원을 시작함으로써 부팅시간을 단축하는 것이다. Snapshot technology complements the disadvantages of suspend & resume by performing a hibernation restore at the boot loader level to reduce the boot time by allowing the existing suspend & resume to begin restoring at a faster time than restoring the kernel with almost complete boot will be.

Suspend & resume 방식처럼 시스템을 종료할 때만 하이버네이션 이미지를 생성하는 것이 아니라 정상적인 부팅 완료 후에 특정 시점의 하이버네이션 이미지를 생성하여 항상 같은 하이버네이션 이미지로 복원하는 것도 가능하다.It is possible not only to generate a hibernation image only when the system is shut down like the Suspend & resume method, but also to generate a hibernation image at a certain point after the normal boot completion and always restore the same hibernation image.

그러나, Snapshot 기술에서는 일반적인 장치 드라이버 초기화 과정 없이 resume되는 것을 고려하지 않고 구현되어 있기 때문에, 하드웨어에 따라 복구가 되지 않는 경우가 많으며, 이처럼 하드웨어 의존도가 높아 snapshot을 적용할 수 있는 시스템이 매우 제한적이다.However, since Snapshot technology is implemented without considering resume without a general device driver initialization process, it can not be restored according to hardware, and the system which can apply snapshot is very limited due to high hardware dependency.

또한, 항상 동일한 이미지로 복원하는 경우, 사용 중에 수정되어 부팅과정에 반영되어야 할 사항들이 모두 초기화된다는 문제점이 있어서 수정사항이 부팅에 영향을 주지 않는 시스템에서만 사용 가능하다는 문제점이 있다.Also, there is a problem in that, when the image is always restored to the same image, all the items to be reflected in the booting process are initialized during use, so that the modification can be used only in a system that does not affect booting.

XIP (Execute In-Place)는 프로그램 코드를 메인메모리에 적재하는 과정 없이 비휘발성 메모리에서 직접 실행하는 기술로서, 커널 부팅에서 커널이미지를 비휘발성 메모리로부터 메인메모리로 적재하는 과정과, 압축된 커널이미지를 해제하는 과정과, 압축해제하는 과정에서 압축해제되는 커널을 메인메모리에 쓰는 과정을 생락할 수 있다.Execute In-Place (XIP) is a technology that executes directly from nonvolatile memory without loading program code into main memory. It processes loading kernel image from non-volatile memory to main memory at kernel boot, And a process of writing the decompressed kernel to the main memory during the decompression process may be omitted.

그러나, 현재까지 개발된 비휘발성 메모리는 메인 메모리로 사용되는 DRAM과 비교하여 읽기/쓰기 속도가 떨어지기 때문에 부팅 과정에서 XIP를 사용하지 않았을 때보다 더 빠르게 부팅하였을지라도, 이후에 커널이 계속 사용될 때 시스템 성능은 메인 메모리에 적재된 커널과 비교하여 떨어지는 성능을 보인다는 문제점이 있다. However, since the nonvolatile memory developed so far has a lower read / write speed than the DRAM used as the main memory, the boot process is faster than when the XIP is not used, The system performance is degraded compared with the kernel loaded in the main memory.

비압축 커널(Uncompressed kernel)방식은 커널 이미지를 압축해제하는 과정을 제거함으로써 부팅 시간을 줄이는 방법이나, 일반적으로 현존하는 비휘발성 메모리의 속도는 메인 메모리와 비하여 매우 낮은 성능을 갖기 때문에, 비압축 커널을 사용했을 때 얻을 수 있는 경우가 많지 않고, 오히려 시간이 더 많이 소요되는 경우가 많아 적용할 수 있는 시스템이 매우 제한적인 문제점을 지니고 있다.Uncompressed kernel method is a method of reducing boot time by eliminating the process of decompressing the kernel image. However, since the existing nonvolatile memory speed is very low compared to main memory, The system can not be applied in many cases and it takes much more time. Therefore, the applicable system has a very limited problem.

콘솔 비활성화(Disable console)방식은 콘솔로 출력되는 메시지를 사용하지 않음으로써 시간을 절약하는 방법으로서, 일반적으로 리눅스에서 부팅시에 quiet 옵션을 두면 콘솔 메시지를 출력하지 않는데, 이는 콘솔 상에 부팅 메시지를 출력하고 스크롤링하는 시간을 줄일 수 있다.Disable console is a way to save time by not using messages output to the console. Normally when Linux is booted with quiet option, it does not output a console message, Output and scrolling time can be reduced.

그러나, 이와 같은 방법으로 절약 가능한 시간은 여러 요인에 의해 결정되며, 얻을 수 있는 절약시간은 수백 밀리초 정도 된다. 시리얼 콘솔을 사용하는 경우 절약 시간은 시리얼 포트의 속도에 좌우되지만, VGA 콘솔을 사용하는 경우 문자열 출력 시간은 프로세서 속도에 의해 결정된다. 그러므로 콘솔 출력이 많고, 속도가 느린 프로세서를 사용하는 경우에만 효과를 얻을 수 있고, 콘솔 출력이 그리 많지 않다면, 큰 효과를 거둘 수 없다.However, the time that can be saved in this way is determined by various factors, and the saving time that can be obtained is several hundred milliseconds. When using a serial console, the saving time depends on the speed of the serial port, but when using the VGA console, the string output time is determined by the processor speed. Therefore, you can get the effect only if you have a lot of console output and a slow processor, and if you do not have a lot of console output, you can not get a big effect.

initcall 재배치 방식은 init 스크립트를 실행할 때 초기화 순서를 바꿔서 우선적으로 실행될 모듈들을 먼저 초기화하는 기술로서, 운영체제 부팅 이후 초기화 되는 프로그램의 순서를 미리 결정하는 것이다.The initcall relocation method is a technique for initializing the modules to be executed first by changing the initialization order when the init script is executed, and determines the order of programs to be initialized after the operating system is booted.

initcall 재배치 기술은 운영체제 부팅이 완료된 이후의 과정을 최적화한 것으로, 운영체제의 부팅이 완료되는 시간보다 더 단축시킬 수는 없으며, 우선순위가 높은 모듈을 사용하기 위해서는 운영체제 커널의 부팅이 선행되어야 하기 때문에, 운영체제의 크기가 커진다면, 운영체제 부팅 시간이 증가하는 만큼 사용자 대기 시간이 증가하게 되는 문제점을 지니고 있다.The initcall relocation technique optimizes the process since the booting of the operating system is completed. It can not shorten the booting completion time of the operating system. In order to use the higher priority module, the booting of the operating system kernel must precede, If the size of the operating system increases, the waiting time of the user increases as the operating system boot time increases.

결론적으로, 프로그램이 실행되어 사용자에게 서비스할 수 있는 시점까지 소요되는 시간을 사용자 대기시간이라고 할 때, 운영체제 부팅시간을 단축시키는 것이 사용자 대기시간을 단축시키는 것을 의미하기 때문에 기존 부팅 속도 개선 기술들의 대부분은 운영체제 부팅 시간 단축에 초점을 맞춰서 연구되어 왔다.As a result, when the time required for the program to be able to be serviced to the user is called the user's waiting time, shortening the boot time of the operating system means shortening the user's waiting time. Has been studied focusing on reducing operating system boot time.

하지만, 운영체제 부팅 시간을 단축시키는 것만으로는 한계가 있기 때문에, 부팅 시간 단축보다 사용자 대기시간 단축을 통한 사용자의 불편과 불만을 해결할 수 있는 새로운 방식이 필요하다. However, since there is a limit to shortening the operating system boot time, a new method that can solve the inconvenience and complaint of the user by shortening the waiting time of the user rather than shortening the boot time is needed.

또한, 사용자 대기시간이 단축되더라도 사용자가 전원 입력 후 최초 이용하는 프로그램의 종류는 사용자마다 제각기 다 틀리기 때문에 사용자 대기시간을 줄여도 사용자별 최초 이용하고자 하는 프로그램이 획일적으로 정해져 있다면, 사용자는 운영체제 부팅 완료 후 본인이 원하는 프로그램을 다시 선택해서 실행해야 하는 불편함이 있다. Even if the user's waiting time is shortened, the types of programs initially used by the user after inputting power are different for each user. Therefore, if the programs to be used for the first time are determined uniformly even though the user wait time is reduced, There is an inconvenience that this desired program must be selected again and executed.

상기한 종래 기술의 문제점 및 과제에 대한 인식은 본 발명의 기술 분야에서 통상의 지식을 가진 자에게 자명한 것이 아니므로 이러한 인식을 기반으로 선행기술들과 대비한 본 발명의 진보성을 판단하여서는 아니 됨을 밝혀둔다.The recognition of the problems and problems of the prior art is not obvious to a person having ordinary skill in the art, so that the inventive step of the present invention should not be judged based on the recognition based on such recognition I will reveal.

상기와 같은 문제점을 해소하기 위한 본 발명의 목적은, 기존 멀티 프로세서 부팅 방법에서의 문제점이 부트 프로세서를 제외한 다른 프로세서들이 부팅 과정에서 대부분의 시간을 유휴상태로 보내는 것인 바, 부팅 과정에 유휴상태에 있는 다른 프로세서들을 활용하여 부팅이 모두 완료되기 전에 사용자가 우선적으로 필요로 하는 프로그램을 실행시키되, 사용자가 우선적으로 필요로 하는 프로그램의 종류를 사용자의 최초 프로그램 이용 패턴 분석결과를 토대로 설정함으로써, 사용자 대기시간을 혁신적으로 줄일 수 있도록 하는 동시에 사용자별 맞춤형 최초 실행 프로그램을 설정토록 하는 장치와 방법, 프로그램 기록매체를 제공함에 있다.An object of the present invention to overcome the above problems is to provide a booting method and a booting method in which other processors except for the boot processor send most of the time in the idle state during the booting process, The program that is required by the user is executed prior to the completion of the booting by utilizing other processors in the user program. By setting the type of program that the user preferentially needs based on the analysis result of the user's initial program utilization pattern, And to provide a program recording medium for setting a customized initial execution program for each user at the same time as enabling a reduction in standby time.

또한, 기존 멀티 프로세서 상의 부팅방식만 바꿈으로써, 별도의 하드웨어 추가 필요없이 사용자 대기시간을 혁신적으로 줄일 수 있도록 하는 장치와 방법, 프로그램 기록매체를 제공함에 있다.Another object of the present invention is to provide an apparatus, a method, and a program recording medium that can innovatively reduce the waiting time of a user without requiring additional hardware by changing only the booting method on the existing multiprocessor.

또한, 운영체제 부팅 완료 후, 각각의 프로세서들이 각각 다른 작업을 수행할 수 있도록 하여, 프로세서 운영 효율을 극대화 시킬 수 있도록 하는 장치와 방법, 프로그램 기록매체를 제공함에 있다.The present invention also provides an apparatus, a method, and a program recording medium that enable each processor to perform a different task after the booting of an operating system is completed, thereby maximizing the processor operating efficiency.

본 발명에서 이루고자 하는 기술적 과제들은 이상에서 언급한 기술적 과제로 제한되지 않으며, 언급하지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not intended to limit the invention to the precise forms disclosed. Other objects, which will be apparent to those skilled in the art, There will be.

본 발명에 따른 두 개 이상의 프로세서를 구비하는 프로그램 운영 장치는, 전원 입력 후, 사용자의 최초 프로그램 이용 패턴을 분석하는 분석부와, 상기 분석부의 분석결과에 대응하여, 사용자가 전원 입력 후 최초 이용하는 프로그램에 대한 종류를 확정하고, 확정된 프로그램 종류 정보를 메모리 상에 기록하는 저장부와, 전원 입력시, 제2프로세서를 구동하기 위한 멀티프로세서 분기처리 부트로더(Bootloader)와 운영체제 부팅을 위한 커널(kernel) 부트로더를 실행하되, 상기 메모리 상에 기록된 사용자가 전원 입력 후 최초 이용하는 프로그램에 대한 종류를 확인한 후, 상기 분기처리 부트로더를 통해 상기 확인한 프로그램 종류에 대응하는 프로그램 부트로더를 메모리에 적재하는 제1프로세서와, 상기 제1프로세서의 상기 분기처리 부트로더를 통해 구동된 후, 프로그램 부트로더를 실행하여, 상기 프로그램 부트로더를 통해 상기 제1프로세서를 통한 운영체제 부팅 전 운영체제 없이 실행되는 프로그램-사용자가 전원 입력 후 최초 이용하는 프로그램에 대한 종류에 대응하는 프로그램-이 실행되도록 처리하는 제2프로세서를 구비하되, 상기 제1프로세서는, 운영체제 부팅 과정이 완료되면, 상기 제2프로세서를 통해 기 실행중인 프로그램과 동일한 기능을 수행하지만 운영체제 위에서 동작하는 프로그램을 메모리에 적재하고, 상기 제2프로세서로 인터럽트를 걸어 기 실행중인 프로그램을 운영체제 위에서 동작하는 프로그램으로 대체되도록 처리한다.A program operating apparatus including two or more processors according to the present invention includes an analyzing unit for analyzing a user's initial program use pattern after power is input; And a kernel for booting the operating system. The kernel includes a boot loader for booting the multiprocessor, a kernel for booting the operating system, ) Executes a boot loader, identifies a kind of a program to be used for the first time after a user recorded on the memory inputs power, and loads the program boot loader corresponding to the confirmed program type through the branch processing boot loader A first processor, and a branch processing boot loader of the first processor, The program boot loader is executed so that a program executed without the operating system before booting the operating system via the first processor via the program boot loader is executed so that the program corresponding to the type of the program first used by the user after the power is input Wherein the first processor loads the program running on the operating system into the memory when performing the booting process of the operating system and performs the same function as the program currently being executed through the second processor, And interrupts the second processor so that the program being executed is replaced with a program operating on the operating system.

일측에 따르면, 상기 분석부는, 일정 기간 사용자가 전원 입력 후 최초 이용하는 프로그램별 이용 횟수를 카운팅하고, 카운팅 결과를 이용하여, 이용 횟수별 내림차순으로 프로그램 목록을 생성하며, 상기 저장부는, 상기 이용 횟수별 내림차순으로 정렬된 프로그램 목록을 근거로 하여, 최상위 프로그램을 사용자가 전원 입력 후 최초 이용하는 프로그램으로 확정할 수 있다.According to one aspect, the analyzing unit counts the number of times of use for each program that the user uses for the first time after the power is input for a predetermined period of time, and generates a program list in descending order of the number of times of use by using the counting result, Based on the list of programs arranged in descending order, the top-level program can be confirmed as a program to be used first after the user inputs power.

또 다른 측면에 따르면, 상기 프로그램 부트로더는, 실행 대상 프로그램 코드들을 메모리에 적재하되, 상기 프로그램 코드들은, 운영체제 없이 실행되는 Stand-alone 프로그램인 것을 특징으로 한다.According to another aspect of the present invention, the program boot loader is a stand-alone program that loads execution-target program codes into a memory, wherein the program codes are executed without an operating system.

또 다른 측면에 따르면, 상기 운영체제 없이 실행되는 프로그램은, 실행에 요구되는 자원들을 직접 초기화하고, 직접 초기화된 자원들을 표시하여, 상기 제1프로세서에서 부팅 과정에서 상기 자원들이 중복 초기화되는 것을 방지할 수 있다.According to another aspect, a program executing without the operating system directly initializes the resources required for execution, and displays the resources directly initialized, thereby preventing the resources from being redundantly initialized in the booting process in the first processor have.

또 다른 측면에 따르면, 상기 분기처리 부트로더는, 상기 제1프로세서가 실행할 상기 커널 부트로더를 특정 메모리 주소에 적재시키고, 상기 제2프로세서가 실행할 상기 프로그램 부트로더를 상기 커널 부트로더와 다른 메모리 주소에 적재시킨 후, 상기 프로그램 부트로더가 메모리 상에 적재되면, 상기 제2프로세서로 인터럽트를 걸면서 상기 프로그램 부트로더가 위치한 주소정보를 제공할 수 있다.According to another aspect, the branch processing boot loader loads the kernel boot loader to be executed by the first processor at a specific memory address, and updates the program boot loader to be executed by the second processor from a memory address different from the kernel boot loader And if the program boot loader is loaded on the memory, the second program may interrupt the second processor to provide the address information on which the program boot loader is located.

또 다른 측면에 따르면, 상기 제1프로세서는, 커널 초기화 과정에서 초기화할 자원들이 상기 제2프로세서에 의해 초기화되었는지 확인한 후, 확인결과, 초기화되지 않은 경우, 상기 자원들을 직접 초기화하고, 초기화 된 경우, 상기 초기화된 자원들의 초기화를 건너뛸 수 있다.According to another aspect of the present invention, the first processor determines whether resources to be initialized in the kernel initialization process are initialized by the second processor, and if the initialization is not performed, directly initializes the resources, The initialization of the initialized resources can be skipped.

본 발명에 따른 두 개 이상의 프로세서를 구비하는 프로그램 운영 방법은, 전원 입력 후, 사용자의 최초 프로그램 이용 패턴을 분석하는 패턴 분석단계와, 상기 패턴 분석 결과에 대응하여, 사용자가 전원 입력 후 최초 이용하는 프로그램에 대한 종류를 확정하고, 확정된 프로그램 종류 정보를 메모리 상에 기록하는 정보 기록단계와, 제1프로세서에서 제2프로세서를 구동하기 위한 분기처리 부트로더(Bootloader)를 실행하는 분기처리 부트로더 실행단계와, 상기 분기처리 부트로더에서 제2프로세서가 실행할 프로그램 부트로더를 메모리 주소에 적재시키되, 상기 정보 기록단계를 통해 메모리 상에 기록된 사용자가 전원 입력 후 최초 이용하는 프로그램에 대한 종류를 확인한 후, 상기 확인한 프로그램 종류에 대응하는 프로그램 부트로더를 메모리에 적재하는 프로그램 부트로더 적재단계와, 상기 프로그램 부트로더가 적재되면, 상기 제1프로세서는 상기 제2프로세서로 인터럽트를 걸면서 상기 프로그램 부트로더가 위치한 주소를 상기 제2프로세서로 전달하는 제2프로세서 인터럽트 단계와, 상기 제2프로세서에서 상기 프로그램 부트로더를 통해 운영체제 없이 실행되는 프로그램 코드들을 메모리에 적재한 후, 프로그램을 실행하는 프로그램 실행단계와, 운영체제 부팅 과정이 완료되면, 상기 제1프로세서에서 상기 제2프로세서를 통해 기 실행중인 프로그램과 동일한 기능을 수행하지만 운영체제 위에서 동작하는 프로그램을 메모리에 적재하는 단계와, 상기 제1프로세서에서 상기 제2프로세서로 인터럽트를 걸어 상기 프로그램 실행단계를 통해 기 실행중인 프로그램을 운영체제 위에서 동작하는 프로그램으로 대체되도록 처리하는 단계를 포함한다.A program operating method having two or more processors according to the present invention includes a pattern analyzing step of analyzing a user's initial program use pattern after inputting a power supply, And a branch processing boot loader execution step for executing a branch processing boot loader for driving the second processor in the first processor, And a program boot loader to be executed by the second processor in the branch processing boot loader is mounted at a memory address, and after the user recorded on the memory through the information recording step confirms the kind of the program to be used for the first time after the power is input, Load the program boot loader corresponding to the program type you have checked into memory. And a second processor interruption step of, when the program boot loader is loaded, transferring the address where the program boot loader is located to the second processor while interrupting the second processor, when the program boot loader is loaded A program executing step of loading a program code executed without an operating system through the program boot loader in the second processor into a memory and executing the program; and a program executing step of, when the operating system booting process is completed, The method of claim 1, further comprising the steps of: loading a program running on the operating system onto a memory, the program executing the same function as a program currently being executed through the processor; and interrupting the program from the first processor to the second processor, Operating on the operating system And a step of processing to replace the program.

일측에 따르면, 상기 프로그램 실행단계는, 실행에 요구되는 자원들을 초기화하고, 초기화된 자원들을 표시하여, 상기 제1프로세서에서 부팅 과정에서 상기 자원들이 중복 초기화되는 것을 방지하는 단계를 더 포함할 수 있다.According to one aspect, the program executing step may further include initializing resources required for execution, indicating initialized resources, and preventing the resources from being redundantly initialized in the booting process in the first processor .

본 발명에 따른 두 개 이상의 프로세서를 구비하는 프로그램 운영 방법은, 전원 입력 후, 사용자의 최초 프로그램 이용 패턴을 분석하는 패턴 분석단계와, 상기 패턴 분석 결과에 대응하여, 사용자가 전원 입력 후 최초 이용하는 프로그램에 대한 종류를 확정하고, 확정된 프로그램 종류 정보를 메모리 상에 기록하는 정보 기록단계와, 제1프로세서에서 제2프로세서를 구동하기 위한 분기처리 부트로더(Bootloader)를 실행하는 분기처리 부트로더 실행단계와, 상기 분기처리 부트로더에서 제2프로세서가 실행할 프로그램 부트로더를 메모리 주소에 적재시키되, 상기 정보 기록단계를 통해 메모리 상에 기록된 사용자가 전원 입력 후 최초 이용하는 프로그램에 대한 종류를 확인한 후, 상기 확인한 프로그램 종류에 대응하는 프로그램 부트로더를 메모리에 적재하는 프로그램 부트로더 적재단계와, 상기 프로그램 부트로더가 적재되면, 상기 제1프로세서는 상기 제2프로세서로 인터럽트를 걸면서 상기 프로그램 부트로더가 위치한 주소를 상기 제2프로세서로 전달하는 제2프로세서 인터럽트 단계와, 상기 제2프로세서에서 상기 프로그램 부트로더를 통해 운영체제 없이 실행되는 프로그램 코드들을 메모리에 적재한 후, 프로그램을 실행하되, 실행에 요구되는 자원들을 초기화하고, 초기화된 자원들을 표시하여, 상기 제1프로세서의 부팅 과정에서 상기 자원들이 중복 초기화되는 것을 방지하는 프로그램 실행단계를 포함한다.A program operating method having two or more processors according to the present invention includes a pattern analyzing step of analyzing a user's initial program use pattern after inputting a power supply, And a branch processing boot loader execution step for executing a branch processing boot loader for driving the second processor in the first processor, And a program boot loader to be executed by the second processor in the branch processing boot loader is mounted at a memory address, and after the user recorded on the memory through the information recording step confirms the kind of the program to be used for the first time after the power is input, Load the program boot loader corresponding to the program type you have checked into memory. And a second processor interruption step of, when the program boot loader is loaded, transferring the address where the program boot loader is located to the second processor while interrupting the second processor, when the program boot loader is loaded And loading the program codes, which are executed without an operating system, in the memory by the second processor in the memory, executing programs, initializing resources required for execution, displaying initialized resources, And a program execution step of preventing the resources from being redundantly initialized in a process of booting the processor.

일측에 따르면, 상기 프로그램 운영 방법은, 운영체제 부팅 과정이 완료되면, 상기 제1프로세서에서 상기 제2프로세서를 통해 기 실행중인 프로그램과 동일한 기능을 수행하지만 운영체제 위에서 동작하는 프로그램을 메모리에 적재하는 단계와, 상기 제1프로세서에서 상기 제2프로세서로 인터럽트를 걸어 상기 프로그램 실행단계를 통해 기 실행중인 프로그램을 운영체제 위에서 동작하는 프로그램으로 대체되도록 처리하는 단계를 더 포함할 수 있다.According to one aspect of the present invention, there is provided a method for operating a program, the method comprising: loading a program running on an operating system into a memory, the program executing the same function as a program currently being executed through the second processor, , Interrupting the second processor from the first processor, and processing the currently running program to be replaced with a program running on the operating system through the execution of the program.

또한, 본 발명에 따르면, 상기 프로그램 운영 방법의 각각의 단계는 프로그램 형태로 구현 가능하며, 본 발명은 상기 프로그램 운영 방법을 실행하기 위한 프로그램을 기록한 것을 특징으로 하는 컴퓨터로 판독 가능한 기록매체를 포함한다.According to the present invention, each step of the program operating method can be implemented in the form of a program, and the present invention includes a computer-readable recording medium having recorded thereon a program for executing the program operating method .

본 발명에 따르면, 멀티 프로세서가 구비된 프로그램 운영 장치에서 별도의 하드웨어의 추가 없이 부팅방식 만을 개선하여 사용자가 원하는 프로그램 실행까지의 사용자 대기시간을 혁신적으로 줄일 수 있도록 하는 효과와 운영체제 부팅 완료 후, 각각의 프로세서들이 각각 다른 작업을 수행할 수 있도록 하여, 멀티 프로세서의 병렬성을 최대한 활용할 수 있는 효과를 지니고 있다.According to the present invention, it is possible to improve the booting method without adding any additional hardware in the program operating device provided with the multiprocessor, thereby allowing the user to innovatively reduce the waiting time for the user to execute the desired program, Processors can perform different tasks, thereby maximizing the parallelism of the multiprocessor.

또한, 본 발명에 따르면, 사용자 대기시간을 줄여도 사용자별 최초 이용하고자 하는 프로그램이 획일적으로 정해져 있다면, 사용자는 운영체제 부팅 완료 후 본인이 원하는 프로그램을 다시 선택해서 실행해야 하는 불편함을 해결하여, 사용자별 맞춤형 최초 이용 프로그램 운영이 가능한 효과를 지니고 있다.(예를 들면, A사용자는 자동차에 탑승 후 시동을 건 후, 주로 후방카메라를 최초 이용하는 경우, 후방 카메라 프로그램을 최초 실행하고, B사용자는 자동차에 탑승 후 시동을 건 후, 주로 네비게이션을 최초 이용하는 경우, 네비게이션 프로그램을 최초 실행함으로서, 사용자별 맞춤형 최초 이용 프로그램 설정 가능) In addition, according to the present invention, if the program to be used for the first time is uniformly determined even if the user wait time is reduced, the user can solve the inconvenience of re-selecting the desired program after completion of the booting of the operating system, (For example, when the user A starts up after boarding the car, mainly uses the rear camera for the first time, executes the rear camera program for the first time, and the user B uses the camera for the first time) If you use the navigation system for the first time after starting up after boarding, you can set up a customized first use program by executing the navigation program for the first time)

또한, 본 발명은 운영체제의 크기가 커짐에 상관없이 사용자 대기시간을 단축할 수 있으며, 기존 부팅 개선 기법들을 중복하여 적용할 수 있는 효과를 지니고 있다.In addition, the present invention can reduce the user waiting time regardless of the size of the operating system, and has the effect of applying the existing boot improvement techniques in a redundant manner.

또한, 본 발명을 차량용 시스템에 적용한다면, 운전자가 후방 카메라를 사용하기 위해 15초 이상 기다려야 하는 문제를 해결할 수 있다.Further, if the present invention is applied to a vehicle system, it is possible to solve the problem that the driver has to wait more than 15 seconds to use the rear camera.

즉, 차량에 전원이 공급되면, 부팅 과정 중 유휴 상태의 다른 프로세서를 활용하여 운전자에게 후방 상황을 보여줌으로써, 운전자는 즉시 운전할 수 있게 되고, 주행 중 후방 카메라를 사용하지 않을 때는 전담 프로세서가 반환되어 다른 서비스를 제공하는데 사용되어 멀티 프로세서의 효율적인 운영이 가능케 한다.In other words, when power is supplied to the vehicle, the driver is able to drive immediately by showing the rear situation to the driver by using another processor in the idle state during the booting process, and when the rear camera is not used during driving, It is used to provide other services to enable efficient operation of multi-processors.

본 명세서에 첨부되는 다음의 도면들은 본 발명의 바람직한 실시예를 예시하는 것이며, 전술한 발명의 상세한 설명과 함께 본 발명의 기술사상을 더욱 이해시키는 역할을 하는 것이므로, 본 발명은 그러한 도면에 기재된 사항에만 한정되어 해석되지 않아야 한다.
도 1은 종래 프로그램 운영 장치에서의 운영체제 부팅과정 흐름을 보여주는 흐름도이다.
도 2는 종래 단일 프로세서가 구비된 프로그램 운영 장치에서 운영체제 부팅과정 이후 프로그램 실행에 따른 프로세스를 보여주는 일실시예도이다.
도 3은 종래 멀티 프로세서가 구비된 프로그램 운영 장치에서 운영체제 부팅과정 이후 프로그램 실행에 따른 프로세스를 보여주는 일실시예도이다.
도 4는 본 발명의 실시 방법에 따른 프로그램 운영 장치의 주요 구성을 보여주는 도면이다.
도 5는 본 발명의 실시 방법에 따른 사용자의 최초 프로그램 이용 패턴 분석 프로세스를 보여주는 도면이다.
도 6은 본 발명의 실시 방법에 따른 운영체제 부팅과 프로그램 실행 프로세스를 보여주는 도면이다.
도 7은 종래 기술과 본 발명의 실시 방법에 따른 사용자 대기시간을 대비하여 보여주는 도면이다.
도 8은 본 발명의 실시 방법에 따른 운영체제 부팅 전 프로그램 실행 프로세스를 도시한 도면이다.
도 9는 본 발명의 실시 방법에 따른 운영체제 부팅 후 프로그램 실행 프로세스를 도시한 도면이다.
도 10은 본 발명의 실시 방법에 따른 일실시예도이다.
BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are incorporated in and form a part of the specification, illustrate preferred embodiments of the invention and, together with the description of the invention given above, serve to further the understanding of the technical idea of the invention. And should not be construed as interpretation.
FIG. 1 is a flowchart illustrating an operating system boot process flow in a conventional program operating device.
FIG. 2 is a diagram illustrating a process according to the execution of a program after an operating system boot process in a program operating device including a conventional single processor.
FIG. 3 is a diagram illustrating a process according to the execution of a program after an operating system boot process in a conventional program operating device provided with a multiprocessor.
FIG. 4 is a diagram illustrating a main configuration of a program operating apparatus according to an embodiment of the present invention.
FIG. 5 is a diagram illustrating a process of analyzing a user's initial program use pattern according to an embodiment of the present invention.
6 is a diagram illustrating an operating system boot process and a program execution process according to an embodiment of the present invention.
FIG. 7 is a diagram illustrating a comparison of user latency according to the prior art and the method of the present invention.
8 is a diagram illustrating a program execution process before booting an operating system according to an embodiment of the present invention.
9 is a diagram illustrating a program execution process after an operating system boot according to an embodiment of the present invention.
10 is an embodiment according to an embodiment of the present invention.

이하 첨부된 도면과 설명을 참조하여 본 발명의 바람직한 실시예에 대한 동작 원리를 상세히 설명한다. 다만, 하기에 도시되는 도면과 후술되는 설명은 본 발명의 특징을 효과적으로 설명하기 위한 여러 가지 방법 중에서 바람직한 실시 방법에 대한 것이며, 본 발명이 하기의 도면과 설명만으로 한정되는 것은 아니다. 또한, 하기에서 본 발명을 설명함에 있어 관련된 공지 기능 또는 구성에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명을 생략할 것이다. 그리고 후술되는 용어들은 본 발명에서의 기능을 고려하여 정의된 용어들로서, 이는 사용자, 운용자의 의도 또는 관례 등에 따라 달라질 수 있다. 그러므로 그 정의는 본 발명에서 전반에 걸친 내용을 토대로 내려져야 할 것이다. The operation principle of the preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings and description. It should be understood, however, that the drawings and the following detailed description are exemplary and explanatory and are intended to provide further explanation of the invention, and are not to be construed as limiting the present invention. In the following description of the present invention, a detailed description of known functions and configurations incorporated herein will be omitted when it may make the subject matter of the present invention rather unclear. The terms used below are defined in consideration of the functions of the present invention, which may vary depending on the user, intention or custom of the operator. Therefore, the definition should be based on the contents throughout the present invention.

결과적으로, 본 발명의 기술적 사상은 청구범위에 의해 결정되며, 이하 실시예는 진보적인 본 발명의 기술적 사상을 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 효율적으로 설명하기 위한 일 수단일 뿐이다.As a result, the technical idea of the present invention is determined by the claims, and the following embodiments are merely means for effectively explaining the technical idea of the present invention to a person having ordinary skill in the art to which the present invention belongs Only.

도 4는 본 발명의 실시 방법에 따른 프로그램 운영 장치(100)의 세부 구성을 도시한 도면이다.FIG. 4 is a diagram showing a detailed configuration of a program operating apparatus 100 according to an embodiment of the present invention.

보다 상세하게 본 도면 4는 2개 이상의 멀티 프로세서를 구비한 프로그램 운영 장치(100) 구성을 도시한 것으로서, 도면 4는 본 발명에 따른 주요 구성요소만 도시하였으며, 본 도면상에 구체적인 도시는 생략하였으나, 당업자의 의도에 따라 상기 프로그램 운영 장치(100)의 구성은 추가 또는 삭제될 수 있다.4 shows a configuration of a program operating apparatus 100 having two or more multiprocessors. FIG. 4 shows only major components according to the present invention, and a detailed illustration thereof is omitted. , The configuration of the program operating apparatus 100 may be added or deleted according to the intention of those skilled in the art.

바람직하게, 본 발명에 따른 프로그램 운영 장치(100)의 주요 기능구성은, 도시된 바와 같이, 제1프로세서(110)와 제2프로세서(120)와 비휘발성 메모리(130)와 메인 메모리(140)와, 분석부(150)와, 저장부(160)를 포함하여 구성될 수 있으며, 부트 모니터(11, 21)와, 분기처리 부트로더(12)와 커널 부트로더(13)와, 프로그램 부트로더(22)를 더 포함하여 구성될 수 있으며, 프로그램 운영 장치(100)의 종류와 특성에 따라 상기 각 구성부는 추가 또는 제외될 수 있다.The main functional configuration of the program operating apparatus 100 according to the present invention is that the first processor 110 and the second processor 120, the nonvolatile memory 130 and the main memory 140, An analysis unit 150 and a storage unit 160 and includes a boot monitor 11 and 21, a branch processing boot loader 12 and a kernel boot loader 13, a program boot loader 13, (22), and the respective components may be added or excluded depending on the type and characteristics of the program operating device (100).

또한, 도면 상 상기 부트 모니터(11, 21)와, 분기처리 부트로더(12)와 커널 부트로더(13)와, 프로그램 부트로더(22)는 제1프로세서(110)와 제2프로세서(120) 내 포함된 것으로 도시되었으나, 상기 부트 모니터(11, 21)와, 분기처리 부트로더(12)와 커널 부트로더(13)와, 프로그램 부트로더(22)는 비휘발성 메모리(130)와 메인 메모리(140)에 포함되어 구성될 수도 있으며, 별개의 구성으로 이루어질 수도 있으며, 그 일부는 생략도 가능하다.The boot monitors 11 and 21, the branch processing boot loader 12 and the kernel boot loader 13 and the program boot loader 22 are connected to the first processor 110 and the second processor 120, The branch processing loader 12 and the kernel boot loader 13 and the program boot loader 22 are connected to the nonvolatile memory 130 and the main memory 140, or may have a separate structure, and some of them may be omitted.

본 발명의 실시방법에 따르면, 상기 분석부(150)는, 전원 입력 후, 사용자의 최초 프로그램 이용 패턴을 분석하는 역할을 수행한다.According to the embodiment of the present invention, the analysis unit 150 analyzes a user's initial program use pattern after inputting power.

즉, 상기 분석부(150)는, 일정 기간 사용자가 전원 입력 후 최초 이용하는 프로그램별 이용 횟수를 카운팅하고, 카운팅 결과를 이용하여, 이용 횟수별 내림차순으로 프로그램 목록을 생성함으로서, 사용자의 최초 프로그램 이용 패턴을 도출한다.That is, the analyzer 150 counts the number of times of use for each program that the user uses for the first time after inputting power and generates the program list in descending order of the number of times of use by using the counting result, .

본 발명의 실시방법에 따르면, 상기 저장부(160)는, 상기 분석부(150)의 분석결과에 대응하여, 사용자가 전원 입력 후 최초 이용하는 프로그램에 대한 종류를 확정하고, 확정된 프로그램 종류 정보를 메모리(130 또는 140) 상에 기록하는 역할을 수행한다.According to the embodiment of the present invention, the storage unit 160 determines the type of the program to be used first after the user inputs power according to the analysis result of the analysis unit 150, and stores the determined program type information And writes it on the memory 130 or 140.

본 발명에 따르면, 상기 저장부(160)는, 상기 분석부(150)가 생성한 이용 횟수별 내림차순으로 정렬된 프로그램 목록을 근거로 하여, 최상위 프로그램을 사용자가 전원 입력 후 최초 이용하는 프로그램으로 확정할 수 있다.According to the present invention, the storage unit 160 determines a top-level program as a program to be used first after the user inputs power, based on the list of programs sorted by descending order of usage counts generated by the analysis unit 150 .

예를 들면, A사용자의 경우, 일정 기간 자동차에 탑승 후 시동을 건 후 최초 사용하는 프로그램의 횟수가 네비게이션 프로그램이 가장 많으면, A사용자의 전원 입력 후 최초 이용하는 프로그램에 대한 종류를 네비게이션 프로그램으로 확정하고, B사용자의 경우, 일정 기간 자동차에 탑승 후 시동을 건 후 최초 사용하는 프로그램의 횟수가 후방카메라 프로그램이 가장 많으면, A사용자의 전원 입력 후 최초 이용하는 프로그램에 대한 종류를 후방 카메라 프로그램으로 확정한다.For example, in the case of user A, if the number of programs to be used for the first time after starting the car after boarding the vehicle for a certain period is the largest in the navigation program, the type of program to be used for the first time after inputting the power of the user A is determined as a navigation program If the number of programs to be used first is the number of the rear camera programs after starting the vehicle after boarding the vehicle for a certain period of time for the user B, the type of the program used for the first time after inputting the power of the user A is determined as the rear camera program.

본 발명의 실시방법에 따르면, 상기 제1프로세서(110)는 전원 입력시, 제2프로세서(120)를 구동하기 위한 멀티프로세서 분기처리 부트로더(12)(Bootloader)와 운영체제 부팅을 위한 커널(kernel) 부트로더(13)를 실행하되, 상기 메모리(130 또는 140) 상에 기록된 사용자가 전원 입력 후 최초 이용하는 프로그램에 대한 종류를 확인한 후, 상기 분기처리 부트로더(12)를 통해 상기 확인한 프로그램 종류에 대응하는 프로그램 부트로더(22)를 메모리(140)에 적재하는 역할을 수행하며, 상기 제2프로세서(120)는 상기 제1프로세서(110)의 분기처리 부트로더(12)를 통해 구동된 후, 프로그램 부트로더(22)를 실행하여, 상기 프로그램 부트로더(22)를 통해 상기 제1프로세서(110)를 통한 운영체제 부팅 전 운영체제 없이 실행되는 프로그램-사용자가 전원 입력 후 최초 이용하는 프로그램에 대한 종류에 대응하는 프로그램-이 실행되도록 처리하는 역할을 수행한다.According to an embodiment of the present invention, the first processor 110 includes a multiprocessor branch processing boot loader 12 for booting the second processor 120 and a kernel for booting the operating system, ) Executes a boot loader 13 and checks the type of a program to be used for the first time after a user recorded on the memory 130 or 140 inputs power, The first processor 110 loads the program boot loader 22 corresponding to the first processor 110 into the memory 140 and the second processor 120 drives the program loader 22 corresponding to the first processor 110 through the branch processing boot loader 12 of the first processor 110 , A program boot loader 22 and a program executed without an operating system before booting the operating system via the first processor 110 via the program boot loader 22. The program Program corresponding to the type of the - this serves to processing to be executed.

즉, 상기 프로그램 운영 장치(100)에 전원이 들어오면, 제1프로세서(110)는 운영체제 부팅을 담당하고, 제2프로세서(120)는 운영체제 없이 동작할 수 있는 Stand-alone 프로그램을 실행하여 사용자 대기시간을 줄이는 역할을 수행하며, 제1프로세서(110)에 의해 부팅이 완료되면, 제2프로세서(120)를 포함하는 모든 프로세서들은 운영체제의 지배를 받아 스케줄러가 할당해주는 작업을 수행한다.That is, when the program operating apparatus 100 is powered on, the first processor 110 performs booting of the operating system, the second processor 120 executes a stand-alone program capable of operating without an operating system, When all the processors including the second processor 120 are booted by the first processor 110, the processors are controlled by the operating system and perform tasks assigned by the scheduler.

본 발명에 따르면, 상기 제1프로세서(110)는, 운영체제 부팅 과정이 완료되면, 상기 제2프로세서(120)를 통해 기 실행중인 프로그램과 동일한 기능을 수행하지만 운영체제 위에서 동작하는 프로그램을 메모리(140)에 적재하고, 상기 제2프로세서(120)로 인터럽트를 걸어 기 실행중인 프로그램을 운영체제 위에서 동작하는 프로그램으로 대체되도록 처리하는 역할을 더 수행한다.According to the present invention, when the booting process of the operating system is completed, the first processor 110 performs the same function as the currently running program through the second processor 120, And interrupts the second processor 120 to process a program being executed so as to be replaced with a program running on the operating system.

또한, 상기 제1프로세서(110)는 커널 초기화 과정에서 초기화할 자원들이 상기 제2프로세서(120)에 의해 초기화되었는지 확인한 후, 확인결과, 초기화되지 않은 경우, 상기 자원들을 직접 초기화하고, 초기화 된 경우, 상기 초기화된 자원들의 초기화를 건너뛰는 역할을 더 수행할 수 있다.In addition, the first processor 110 determines whether resources to be initialized in the kernel initialization process are initialized by the second processor 120. If the resources are not initialized, the first processor 110 directly initializes the resources, , And skipping the initialization of the initialized resources.

상기 제1프로세서(110)는, 운영체제 부팅을 처리하는 부트 프로세서인 것을 특징으로 하며, 상기 제1프로세서(110) 및 제2프로세서(120)는, 씨피유(CPU) 또는 코어(Core)인 것을 특징으로 한다.The first processor 110 and the second processor 120 are boot processors that process booting of an operating system and the first processor 110 and the second processor 120 are CPUs or cores .

본 발명에 따른 비휘발성 메모리(130)는 사용자가 전원 입력 후 최초 이용하는 프로그램에 대한 종류 정보와, 부트 모니터(11, 21)와, 분기처리 부트로더(12)와 커널 부트로더(13)와, 프로그램 부트로더(22)를 하나 이상 저장하며, 사용자가 실행하고자 하는 프로그램 코드들을 하나 이상 저장한다.The nonvolatile memory 130 according to the present invention includes type information for a program to be used first after a user inputs power, boot monitors 11 and 21, a branch processing boot loader 12 and a kernel boot loader 13, Stores one or more program boot loaders 22, and stores one or more program codes to be executed by the user.

본 발명에 따른 메인 메모리(140)는 사용자가 전원 입력 후 최초 이용하는 프로그램에 대한 종류 정보와, 부트 모니터(11, 21)와, 분기처리 부트로더(12)와 커널 부트로더(13)와, 프로그램 부트로더(22)를 하나 이상 로딩하여 저장하며, 사용자가 실행하고자 하는 프로그램 코드들을 하나 이상 로딩하여 저장한다.The main memory 140 according to the present invention includes type information for a program first used by a user after inputting power, boot monitors 11 and 21, a branch processing boot loader 12 and a kernel boot loader 13, One or more boot loaders 22 are loaded and stored, and one or more program codes to be executed by the user are loaded and stored.

상기 비휘발성 메모리(130)와 메인 메모리(140)는 도면 상에 분리되어 도시되었으나, 당업자의 실시방식에 따라 단일 메모리로 구성될 수 있다.Although the non-volatile memory 130 and the main memory 140 are shown separately in the drawing, they may be configured as a single memory according to a method of a person skilled in the art.

본 발명에 따른 제1프로세서(110) 상의 부트 모니터(11)는, 먼저 현재 자신을 실행하는 프로세서가 첫 번째 프로세서인지 아닌지를 알아내는 작업을 수행하고, 현재 프로세서가 첫 번째 프로세서라면 분기처리 부트로더(12)를 실행하는 역할을 수행한다.The boot monitor 11 on the first processor 110 according to the present invention performs an operation of first determining whether or not the processor currently executing itself is the first processor and if the current processor is the first processor, (12).

본 발명에 따른 제2프로세서(120) 상의 부트 모니터(21)는, WFI(wait for interrupt)를 수행하면서, 제1프로세서(110)를 통한 인터럽트가 수행되면, 프로그램 부트로더(22)를 실행하는 역할을 수행한다.The boot monitor 21 on the second processor 120 according to the present invention executes the program boot loader 22 when an interrupt is performed through the first processor 110 while performing a wait for interrupt Role.

본 발명에 따른 분기처리 부트로더(12)는, 커널 이미지를 메인 메모리(140)에 적재하는 작업을 수행하기 전에, 제2의 프로세서를 깨우는 작업을 먼저 수행한다.The branch processing boot loader 12 according to the present invention performs a task of waking up the second processor before performing the task of loading the kernel image into the main memory 140. [

즉, 상기 분기처리 부트로더(12)는 제1프로세서(110)가 실행할 커널 부트로더(13)(커널이미지를 적재해줄 부트로더)를 특정한 메인 메모리(140) 주소에 적재시키고, 제2프로세서(120)가 실행할 프로그램 부트로더(22)(상기 메모리 상에 기록된 사용자가 전원 입력 후 최초 이용하는 프로그램을 적재해줄 부트로더)를 커널 부트로더(13)와는 다른 메모리(140) 주소에 적재시킨 후, 상기 프로그램 부트로더(22)가 적재되면, 상기 제2프로세서(120)로 인터럽트를 걸면서 상기 프로그램 부트로더(22)가 위치한 주소를 제2프로세서(120)로 전달하는 역할을 수행한다.That is, the branch processing boot loader 12 loads the kernel boot loader 13 (boot loader for loading the kernel image) to be executed by the first processor 110 at a specific address of the main memory 140, The program loader 22 (a boot loader for loading a program initially used by a user recorded on the memory) to be executed by the CPU 120 is loaded at an address different from that of the kernel boot loader 13, When the program boot loader 22 is loaded, the second processor 120 interrupts the second processor 120 and transfers the address of the program boot loader 22 to the second processor 120.

본 발명에 따른 커널 부트로더(13)는, 기존 부팅에서 사용되는 일반적인 부트로더와 동일한 역할을 수행하는 바, 그 상세한 설명은 생략한다.The kernel boot loader 13 according to the present invention plays the same role as a general boot loader used in conventional boot, and a detailed description thereof will be omitted.

본 발명에 따른 프로그램 부트로더(22)는, 실행 대상 프로그램 코드들을 메인 메모리(140)에 적재한 뒤 프로그램을 실행하는 역할을 수행한다.(이 때, 적재되는 프로그램 코드들은 운영체제의 도움 없이 실행될 수 있는 Stand-alone 프로그램이다.)The program boot loader 22 according to the present invention plays the role of loading the execution target program codes into the main memory 140 and executing the program (in this case, the loaded program codes can be executed without the help of the operating system It is a stand-alone program.)

즉, 상기 제1프로세서(110)가 운영체제 부팅을 수행하는 과정에서 동시에 수행되는 프로그램 부트로더(22)의 역할을 통해, 상기 제2프로세서(120)가 담당하는 실행 대상 프로그램은 커널 부팅을 기다릴 필요 없이 사용자에게 서비스를 제공할 수 있어서 사용자 대기시간을 단축시킬 수 있도록 한다.That is, through the role of the program boot loader 22 performed simultaneously with the execution of the operating system boot by the first processor 110, the execution target program managed by the second processor 120 needs to wait for the kernel boot It is possible to provide the service to the user without the user, thereby shortening the waiting time of the user.

본 발명에 따른 Stand-alone 프로그램은 운영체제 없이 상기 제2프로세서(120)에서 실행될 수 있는 프로그램으로 사용자에게 서비스를 제공하며, Stand-alone 프로그램이 실행되는 시점이 사용자 대기시간이 된다.The stand-alone program according to the present invention is a program that can be executed by the second processor 120 without an operating system and provides a service to the user, and the time when the stand-alone program is executed becomes a user waiting time.

즉, 상기 Stand-alone 프로그램은 프로그램 부트로더(22)에 의해 적재된 후, 상기 제1프로세서(110)가 운영체제 부팅을 진행하는 동안 프로그램 실행을 위한 자원들을 직접 초기화하고, 사용자에게 서비스를 제공하기 때문에 커널 부팅을 기다릴 필요가 없다.That is, after the stand-alone program is loaded by the program boot loader 22, the first processor 110 directly initializes the resources for executing the program during the booting of the operating system, So you do not have to wait for the kernel to boot.

본 발명에 따르면, 상기 Stand-alone 프로그램은 직접 초기화한 자원들을 표시하는 역할을 더 수행하여, 상기 제1프로세서(110)가 부팅 과정에서 동일한 자원의 중복 초기화를 방지한다.According to the present invention, the stand-alone program further performs a function of displaying resources directly initialized, thereby preventing the first processor 110 from duplicatively initializing the same resource during the booting process.

본 발명에 따르,면, 상기 부트 모니터(11, 21)와, 분기처리 부트로더(12)와, 커널 부트로더(13)와, 프로그램 부트로더(22)의 기능과 역할은 상기 제1프로세서(110)와 제2프로세서(120)로 대체 가능하다. According to the present invention, the functions and roles of the boot monitors 11 and 21, the branch processing boot loader 12, the kernel boot loader 13, and the program boot loader 22 are controlled by the first processor 110 and the second processor 120, respectively.

도 5는 본 발명의 실시 방법에 따른 사용자의 최초 프로그램 이용 패턴 분석 프로세스를 보여주는 도면이다.FIG. 5 is a diagram illustrating a process of analyzing a user's initial program use pattern according to an embodiment of the present invention.

우선, 프로그램 운영 장치(100)는 분석부(150)를 통해 전원 입력 후 사용자가 최초 이용하는 프로그램 종류를 확인한 후(S510), 확인한 프로그램 종류에 대응하는 프로그램 정보를 메모리(130 또는 140) 상에 저장한다(S520).First, the program operating device 100 confirms the type of the program first used by the user after power is inputted through the analyzer 150 (S510), and stores the program information corresponding to the confirmed program type in the memory 130 or 140 (S520).

사용자의 최초 프로그램 이용 패턴을 분석하기 위한 충분한 정보가 누적되기까지 일정 기간이 경과하면(S530), 상기 프로그램 운영 장치(100)는 분석부(150)를 통해 메모리(130 또는 140) 상에 누적되어 저장된 사용자가 전원 입력 후 최초 이용하는 프로그램별 이용 횟수를 카운팅한다(S540).The program operating device 100 is accumulated on the memory 130 or 140 through the analyzing unit 150 when a predetermined period of time has elapsed until sufficient information for analyzing the user's initial program use pattern has accumulated The number of times the stored user firstly uses the program after power is input is counted (S540).

만약, 사용자의 최초 프로그램 이용 패턴을 분석하기 위한 충분한 정보가 누적되기까지 일정 기간이 경과하지 않으면, 상기 (S520)과정을 일정 기간 동안 반복한다(S550).If a predetermined period of time does not elapse until sufficient information for analyzing the user's initial program use pattern accumulates, the process of S520 is repeated for a predetermined period of time at operation S550.

상기 프로그램 운영 장치(100)는 상기 (S540)과정을 통한 카운팅 결과를 근거로 하여, 이용 횟수별 내림차순으로 프로그램 목록을 생성함으로서, 사용자의 최초 프로그램 이용 패턴을 도출한다(S560).In operation S560, the program operating device 100 generates a program list in descending order of the number of times of use based on the counting result obtained in operation S540.

이후, 상기 프로그램 운영 장치(100)는 저장부(160)를 통해 상기 (S560)과정을 통해 도출된 전원 입력 후 사용자가 최초 이용하는 횟수가 가장 많은 프로그램 정보를 메모리 상에 기록함으로써, 운영체제 부팅 전 실행시킬 프로그램 종류를 확정한다(S570). Thereafter, the program operating device 100 writes the program information having the largest number of times for the first use by the user in the memory after inputting the power derived through the process (S560) through the storage unit 160, (S570).

도 6은 본 발명의 실시 방법에 따른 운영체제 부팅과 프로그램 실행 프로세스를 보여주는 도면이다.6 is a diagram illustrating an operating system boot process and a program execution process according to an embodiment of the present invention.

도면 6에 따르면, 제1프로세서(110)와 제2프로세서(120)를 통한 운영체제 부팅과정과 사용자가 이용하고자 하는 프로그램 실행과정을 동시 진행함에 따라, 사용자 대기시간을 크게 줄일 수 있도록 하는 것을 보여주고 있다.Referring to FIG. 6, the operating system booting process through the first processor 110 and the second processor 120 and the program execution process to be used by the user are simultaneously performed, have.

도면 6에 따른 각각의 과정을 간략하게 기술하면, ①전원이 연결된 후, 부트 모니터(11)에 의해 제1프로세서(110)는 분기처리 부트로더(12)를 실행하고, 분기처리 부트로더(12)는 커널 부트로더(13)를 특정 메모리(140) 주소에 적재시키고, 제2프로세서(120)가 실행할 프로그램-상기 도면 5의 (S570)과정을 통해 확정된 프로그램- 부트로더(22)를 커널 부트로더(13)와는 다른 메모리(140) 주소에 적재시킨 후, 상기 제2프로세서(120)로 인터럽트를 걸면서 상기 프로그램 부트로더(22)가 위치한 주소를 전달한다.6 will be briefly described. (1) After the power source is connected, the first processor 110 executes the branch processing boot loader 12 by the boot monitor 11, and the branch processing boot loader 12 Loads the kernel boot loader 13 at the address of the specific memory 140 and sends the program to be executed by the second processor 120 to the kernel boot loader 22 determined through the process of (S570) Loads the program loader 22 at an address different from that of the boot loader 13 and then transfers the address where the program boot loader 22 is located while interrupting the second processor 120.

이후, ②~⑤상기 제1프로세서(110)는 커널 부트로더(13) 주소로 점프하여 커널 부팅과정을 수행하고, 제2프로세서(120)는 메모리(140)에 프로그램 코드들을 로딩한 후, 프로그램 실행을 수행한다.The first processor 110 jumps to the address of the kernel boot loader 13 to perform a kernel boot process. The second processor 120 loads the program codes into the memory 140, Perform the execution.

이후, 운영체제 부팅이 완료되면, ⑥~⑦상기 제1프로세서(110)는 운영체제 위에서 동작하는 프로그램을 메모리(140)에 로딩하고, 제2프로세서(120)로 인터럽트를 걸어 기 실행중인 운영체제 없이 실행되던 프로그램을 운영체제 위에서 동작하는 프로그램으로 대체되도록 처리한다.When the booting of the operating system is completed, the first processor 110 loads the program running on the operating system into the memory 140, interrupts the second processor 120, Process the program so that it is replaced by a program running on the operating system.

도 7은 종래 기술과 본 발명의 실시 방법에 따른 사용자 대기시간을 대비하여 보여주는 도면이다.FIG. 7 is a diagram illustrating a comparison of user latency according to the prior art and the method of the present invention.

도면 7에 따르면, 종래 멀티 프로세서가 구비된 프로그램 운영 장치(100)와 본 발명에 따른 멀티 프로세서가 구비된 프로그램 운영 장치(100) 간 사용자 대기시간이 크게 줄어드는 것을 볼 수 있다.Referring to FIG. 7, it can be seen that the user waiting time between the program operating apparatus 100 having the conventional multiprocessor and the program operating apparatus 100 having the multi-processor according to the present invention is greatly reduced.

이하, 도면 8 내지 9을 통해 본 발명에 따른 프로그램 실행 프로세스를 보다 상세히 설명하기로 한다.(다만, 운영체제 부팅과정 중 일반적인 부팅기술은 그 상세한 설명을 생략한다.) Hereinafter, the program execution process according to the present invention will be described in more detail with reference to FIGS. 8 to 9. (Hereinafter, a general description of a booting technique during an operating system booting process will be omitted.

도 8은 본 발명의 실시 방법에 따른 운영체제 부팅 전 프로그램 실행 프로세스를 도시한 도면이다. 8 is a diagram illustrating a program execution process before booting an operating system according to an embodiment of the present invention.

우선, 제1프로세서(110)는 제2프로세서(120)를 구동하기 위한 분기처리 부트로더(12)를 실행한다(S810).First, the first processor 110 executes a branch processing boot loader 12 for driving the second processor 120 (S810).

이후, 상기 제1프로세서(110)는 분기처리 부트로더(12)를 통해 제1프로세서(110)가 실행할 커널 부트로더(13)를 특정한 메인 메모리(140) 주소에 적재시키고, 상기 도면 5의 프로세스를 통해 확정되어 메모리(130 또는 140)에 기록된 사용자의 최초 프로그램 이용 패턴에 대응하는 프로그램 정보를 확인한다(S820).The first processor 110 loads the kernel boot loader 13 to be executed by the first processor 110 into the address of the main memory 140 via the branch processing boot loader 12, And confirms the program information corresponding to the user's initial program use pattern recorded in the memory 130 or 140 (S820).

이후, 상기 제1프로세서(110)는 분기처리 부트로더(12)를 통해 상기 제2프로세서(120)가 실행할 프로그램-상기 (S820)과정을 통해 확인된 프로그램- 부트로더(22)를 커널 부트로더(13)와는 다른 메모리(140) 주소에 적재시킨다(S830).The first processor 110 then transmits a program to be executed by the second processor 120 through the branch processing boot loader 12 to the kernel boot loader 22 via the program boot loader 22, (Step S830).

이후, 상기 프로그램 부트로더(22)가 메인 메모리(140)에 적재되면, 상기 제1프로세서(110)는 상기 제2프로세서(120)로 인터럽트를 걸면서 상기 프로그램 부트로더(22)가 위치한 주소를 제2프로세서(120)로 전달하고(S840), 커널 부트로더(13) 주소로 점프하여 일반적인 커널 부팅과정을 수행한다(S850).Thereafter, when the program boot loader 22 is loaded in the main memory 140, the first processor 110 interrupts the second processor 120 and transmits the address where the program boot loader 22 is located (Step S840), and the general kernel boot process is performed by jumping to the address of the kernel boot loader 13 (S850).

도면 상에 별도로 도시하지는 않았지만, 상기 (S850)과정은 일반적인 운영체제 부팅과정으로 처리되나, 커널 초기화 과정에서 초기화할 자원들이 상기 제2프로세서(120)를 통해 초기화되었는지 확인한 후, 아직 초기화되지 않았다면 직접 해당 자원을 초기화하고, 이미 제2프로세서(120)에 의해 초기화된 경우에는 해당 자원 초기화를 건너뛰어 중복 초기화를 방지하는 과정이 포함될 수 있음을 명기하는 바이다.Although not shown in the drawing, the process of step S850 is performed by a general OS booting process. However, if it is determined that resources to be initialized in the kernel initialization process are initialized through the second processor 120, And a process of preventing duplicate initialization by skipping the resource initialization if the resource has already been initialized by the second processor 120. [

이후, 상기 제2프로세서(120)는 프로그램 부트로더(22)의 주소를 확인한 후, 프로그램 부트로더(22)를 구동시킨 후(S860), 프로그램 부트로더(22)를 통해 실행 대상 프로그램 코드들을 메인 메모리(140)에 적재하고(S870), 프로그램 실행을 위한 자원들을 직접 초기화하여 운영체제 없이 구동되는 프로그램을 실행한다(S880).Thereafter, the second processor 120 checks the address of the program boot loader 22, and then drives the program boot loader 22 (S860) (S870), directly initializes resources for executing the program, and executes a program running without the operating system (S880).

도면 상에 별도로 도시하지는 않았지만, 상기(S880)과정은 직접 초기화한 자원들을 표시하는 과정을 더 포함하여, 상기 제1프로세서(110)가 부팅 과정에서 동일한 자원의 중복 초기화를 방지할 수 있음을 명기하는 바이다.Although not shown separately in the drawing, the step (S880) further includes a step of displaying resources that have been directly initialized, thereby indicating that the first processor 110 can prevent the duplicate initialization of the same resource during the booting process I do.

도 9는 본 발명의 실시 방법에 따른 운영체제 부팅 후 프로그램 실행 프로세스를 도시한 도면이다. 9 is a diagram illustrating a program execution process after an operating system boot according to an embodiment of the present invention.

우선, 상기 제1프로세서(110)는 운영체제 부팅이 완료되었는지 여부를 확인한다(S910).First, the first processor 110 determines whether the booting of the operating system is completed (S910).

(S910)과정을 통한 확인결과, 부팅이 완료된 경우(S920), 상기 제1프로세서(110)는 상기 제2프로세서(120)를 통해 기 실행중인 프로그램과 동일한 기능을 수행하지만 운영체제 위에서 동작하는 프로그램을 메모리(140)에 적재하고(S930), 상기 제2프로세서(120)로 인터럽트를 걸어 기 실행중인 프로그램을 운영체제 위에서 동작하는 프로그램으로 대체되도록 처리한다(S940).(S910), if the booting is completed (S920), the first processor 110 performs the same function as the currently running program through the second processor 120, but executes a program running on the operating system The program is loaded into the memory 140 (S930), an interrupt is made to the second processor 120, and a program being executed is replaced with a program running on the operating system (S940).

만약, (S910)과정을 통한 확인결과, 부팅이 완료되지 않은 경우(S950), 상기 제1프로세서(110)는 (S910)과정을 반복한다.If it is determined in step S910 that booting is not completed in step S950, the first processor 110 repeats step S910.

이후, 상기 제1프로세서(110)는 부팅이 완료된 운영체제의 스케줄링 정책에 의해 각 작업들을 할당받아 수행한다(S960).Thereafter, the first processor 110 allocates each task according to the scheduling policy of the operating system that has been booted (S960).

상기 제2프로세서(120)는 상기 제1프로세서(110)의 (S940)과정을 통한 인터럽트를 근거로 하여 기 실행중인 프로그램을 운영체제 위에서 동작하는 프로그램으로 대체한다(S970).In step S970, the second processor 120 replaces the currently running program with a program running on the operating system based on the interrupt through the first processor 110 (S940).

이후, 프로그램이 종료되면(S980), 상기 제2프로세서(120)는 제1프로세서(110)와 마찬가지로 운영체제의 스케줄링 정책에 의해 각 작업들을 할당받아 수행한다(S990).Thereafter, when the program is terminated (S980), the second processor 120 allocates each task according to the scheduling policy of the operating system in the same manner as the first processor 110 (S990).

도 10은 본 발명의 실시 방법에 따른 일실시예도 이다.10 is an embodiment according to an embodiment of the present invention.

*도면 10에 따르면, 본 발명에 따른 프로그램 운영 장치(100)가 자동차에 구비되는 텔레메틱스 장치인 경우를 사례로 설정한 것이다.Referring to FIG. 10, the case where the program operating device 100 according to the present invention is a telematics device provided in an automobile is set as an example.

우선, A운전자가 자동차에 시동을 걸었을 때, 최초 이용하는 프로그램이 후방 상황을 보여주는 후방 카메라인데, 현재 텔레메틱스 장치는 부팅과정을 마치는데 15초 이상이 소요되기 때문에, A운전자는 적어도 15초 이상을 기다려야 후방 카메라를 실행시킨 후 후방 상황을 파악하고, 운전을 할 수가 있었다.First, when the driver A starts the car, the first program is the rear camera showing the rear situation. Since the current telematics device takes more than 15 seconds to finish the booting process, the driver A has to wait at least 15 seconds I had to wait until I could run the rear camera and check the rear situation and drive.

그러나, 본 발명을 텔레메틱스 장치에 적용한다면, A운전자가 후방 카메라를 사용하기 위해 15초 이상 기다려야 하는 문제를 해결할 수 있다. However, if the present invention is applied to a telematics device, it is possible to solve the problem that the driver A has to wait more than 15 seconds to use the rear camera.

제1프로세서(110)가 부팅을 담당하고, 제2프로세서(120)가 부팅 과정 중 우선적으로 실행되어야 할 후방 카메라 프로그램을 담당하게 함으로써, A운전자가 자동차에 시동을 걸면, 부팅을 담당하는 제1프로세서(110)는 부팅을 진행하고, 후방 카메라를 담당하는 제2프로세서(120)는 후방카메라 프로그램을 준비한 뒤에 곧 디스플레이에 후방 상황을 보여줄 수 있어, A운전자는 텔레메틱스 장치의 완전한 부팅을 기다릴 필요 없이 바로 운전을 할 수 있게 되는 것이다.The first processor 110 takes charge of booting and the second processor 120 takes charge of a rearview camera program to be preferentially executed during the booting process so that when the A driver starts the vehicle, The processor 110 may proceed to boot and the second processor 120 responsible for the rear camera may show the rear situation on the display shortly after preparing the rear camera program so that the A driver is not required to wait for a full boot of the telematics device You will be able to drive immediately.

그리고, 주행 중에는 후방카메라를 거의 사용하지 않기 때문에, 후방카메라를 담당하던 제2프로세서(120)는 스케줄러에게 반환되어 텔레메틱스 장치의 다른 기능들을 수행함으로써 텔레메틱스 장치의 여러 작업들을 효율적으로 처리할 수 있게 된다.Since the rear camera is rarely used during driving, the second processor 120 responsible for the rear camera is returned to the scheduler to perform other functions of the telematics device, thereby efficiently processing various tasks of the telematics device .

100 : 프로그램 운영 장치 110 : 제1프로세서
120 : 제2프로세서 130 : 비휘발성 메모리
140 : 메인 메모리 150 : 분석부
160 : 저장부 11 : 부트 모니터
12 : 분기처리 부트로더 13 : 커널 부트로더
21 : 부트 모니터 220 : 프로그램 부트로더
100: program operating device 110: first processor
120: second processor 130: nonvolatile memory
140: main memory 150: analysis unit
160: Storage unit 11: Boot monitor
12: Branch processing boot loader 13: Kernel boot loader
21: Boot monitor 220: Program boot loader

Claims (12)

두 개 이상의 프로세서를 구비하는 프로그램 운영 장치에 있어서,
전원 입력 후, 사용자의 최초 프로그램 이용 패턴을 분석하는 분석부;
상기 분석부의 분석결과에 대응하여, 사용자가 전원 입력 후 최초 이용하는 프로그램에 대한 종류를 확정하고, 확정된 프로그램 종류 정보를 메모리 상에 기록하는 저장부;
전원 입력시, 제2프로세서를 구동하기 위한 멀티프로세서 분기처리 부트로더(Bootloader)와 운영체제 부팅을 위한 커널(kernel) 부트로더를 실행하되, 상기 메모리 상에 기록된 사용자가 전원 입력 후 최초 이용하는 프로그램에 대한 종류를 확인한 후, 상기 분기처리 부트로더를 통해 상기 확인한 프로그램 종류에 대응하는 프로그램 부트로더를 메모리에 적재하는 제1프로세서; 및
상기 제1프로세서의 상기 분기처리 부트로더를 통해 구동된 후, 프로그램 부트로더를 실행하여, 상기 프로그램 부트로더를 통해 상기 제1프로세서를 통한 운영체제 부팅 전 운영체제 없이 실행되는 프로그램-사용자가 전원 입력 후 최초 이용하는 프로그램에 대한 종류에 대응하는 프로그램-이 실행되도록 처리하는 제2프로세서;를 구비하되,
상기 제1프로세서는,
운영체제 부팅 과정이 완료되면, 상기 제2프로세서를 통해 기 실행중인 프로그램과 동일한 기능을 수행하지만 운영체제 위에서 동작하는 프로그램을 메모리에 적재하고, 상기 제2프로세서로 인터럽트를 걸어 기 실행중인 프로그램을 운영체제 위에서 동작하는 프로그램으로 대체되도록 처리하는,
프로그램 운영 장치.
A program operating device having two or more processors,
An analysis unit for analyzing a user's initial program use pattern after inputting power;
A storage unit for determining a type of a program to be used first after a user inputs power and correspondingly storing the determined program type information in a memory in response to an analysis result of the analysis unit;
A multiprocessor branch processing boot loader for operating the second processor and a kernel boot loader for booting the operating system when the power is inputted, A first processor which, after confirming the kind of the program boot loader, loads the program boot loader corresponding to the identified program type through the branch processing boot loader; And
Wherein the first program is executed through the branch processing boot loader of the first processor and then the program boot loader is executed so that a program-user, which is executed without the operating system before booting the operating system via the first processor via the program boot loader, And a second processor for executing a program corresponding to the type of the program to be used,
Wherein the first processor comprises:
The program executing on the operating system is loaded into the memory, the interrupt is executed on the second processor, and the program being executed is operated on the operating system To be replaced with a program that is executed by a computer,
Program operating device.
삭제delete 제 1항에 있어서, 상기 프로그램 부트로더는,
실행 대상 프로그램 코드들을 메모리에 적재하되,
상기 프로그램 코드들은,
운영체제 없이 실행되는 Stand-alone 프로그램인 것을 특징으로 하는,
프로그램 운영 장치.
The program boot loader according to claim 1,
The program codes to be executed are loaded into the memory,
The program codes,
Wherein the program is a stand-alone program executed without an operating system.
Program operating device.
제 1항 또는 제 3항에 있어서, 상기 운영체제 없이 실행되는 프로그램은,
실행에 요구되는 자원들을 직접 초기화하고, 직접 초기화된 자원들을 표시하여, 상기 제1프로세서에서 부팅 과정에서 상기 자원들이 중복 초기화되는 것을 방지하는,
프로그램 운영 장치.
4. The program according to claim 1 or 3,
The method comprising: directly initializing resources required for execution; and displaying resources that have been directly initialized, thereby preventing the resources from being redundantly initialized in a booting process in the first processor,
Program operating device.
삭제delete 삭제delete 제 1항에 있어서, 상기 제1프로세서는,
운영체제 부팅을 처리하는 부트 프로세서인 것을 특징으로 하는,
프로그램 운영 장치.
2. The apparatus of claim 1,
And a boot processor for processing an operating system boot,
Program operating device.
삭제delete 삭제delete 삭제delete 삭제delete 삭제delete
KR1020180032739A 2018-03-21 2018-03-21 Recording Medium, Method and Device For Program Operation KR101984558B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020180032739A KR101984558B1 (en) 2018-03-21 2018-03-21 Recording Medium, Method and Device For Program Operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020180032739A KR101984558B1 (en) 2018-03-21 2018-03-21 Recording Medium, Method and Device For Program Operation

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020120019406A Division KR101869425B1 (en) 2012-02-26 2012-02-26 Recording Medium, Method and Device For Program Operation

Publications (2)

Publication Number Publication Date
KR20180033154A KR20180033154A (en) 2018-04-02
KR101984558B1 true KR101984558B1 (en) 2019-05-31

Family

ID=61976126

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180032739A KR101984558B1 (en) 2018-03-21 2018-03-21 Recording Medium, Method and Device For Program Operation

Country Status (1)

Country Link
KR (1) KR101984558B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110308959A (en) * 2019-06-27 2019-10-08 联想(北京)有限公司 Content displaying method and device, electronic equipment and readable storage medium storing program for executing

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5748957A (en) 1995-06-27 1998-05-05 Klein; Dean A. Computer system usage determination based on hard disk drive activity
JP2002525745A (en) * 1998-09-24 2002-08-13 フィーニックス テクノロジーズ リミテッド Using Other Processors During the BIOS Boot Sequence to Minimize Boot Time
US20090037718A1 (en) 2007-07-31 2009-02-05 Ganesh Perinkulam I Booting software partition with network file system
US20110023026A1 (en) * 2009-07-24 2011-01-27 Dhairesh Oza Pattern-based operating systems

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060067076A (en) * 2004-12-14 2006-06-19 한국전자통신연구원 Method for loading program in master-slave processor system and apparatus thereof
US7461247B2 (en) * 2005-06-03 2008-12-02 Qnx Software Systems Gmbh & Co. Kg Method for transitioning control of a peripheral device from a first device driver to a second device driver during operating system initialization
KR20080057688A (en) * 2006-12-20 2008-06-25 주식회사 대우일렉트로닉스 Method for booting operating system using of non volatile memory

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5748957A (en) 1995-06-27 1998-05-05 Klein; Dean A. Computer system usage determination based on hard disk drive activity
JP2002525745A (en) * 1998-09-24 2002-08-13 フィーニックス テクノロジーズ リミテッド Using Other Processors During the BIOS Boot Sequence to Minimize Boot Time
US20090037718A1 (en) 2007-07-31 2009-02-05 Ganesh Perinkulam I Booting software partition with network file system
US20110023026A1 (en) * 2009-07-24 2011-01-27 Dhairesh Oza Pattern-based operating systems

Also Published As

Publication number Publication date
KR20180033154A (en) 2018-04-02

Similar Documents

Publication Publication Date Title
US9710309B2 (en) Task scheduling in big and little cores
USRE40092E1 (en) Method for quickly booting a computer system
JP5911892B2 (en) Multistage resume from hibernate
US9189248B2 (en) Specialized boot path for speeding up resume from sleep state
JP6627180B2 (en) Techniques for improved hybrid sleep power management
US8984200B2 (en) Task scheduling in big and little cores
KR101780052B1 (en) Method for switching the operating system in information processing system
US8312256B2 (en) Display of a basic input/output system (BIOS) productivity display
CN109408122B (en) Equipment starting method, electronic equipment and computer storage medium
JP5200085B2 (en) Method and computer for starting computer in a short time
KR20130026739A (en) Partial rebooting recovery apparatus and method
KR101863250B1 (en) Recording Medium, Method and Device For Program Execution
CN111708548A (en) Software installation method, device, equipment and storage medium
KR101548068B1 (en) Dynamic allocation of processor cores running an operation system
JP2002132741A (en) Processor adding method, computer and recording medium
KR101212273B1 (en) Apparatus and method for fast booting based on virtualization technique
KR101984558B1 (en) Recording Medium, Method and Device For Program Operation
KR20130068630A (en) Method for initializing embedded device and apparatus thereof
KR20180034354A (en) Recording Medium, Method and Device For Program Operation
US20120311312A1 (en) Fast Boot Via State Recreation
KR101984568B1 (en) Recording Medium, Method and Device For Program Operation
KR100994723B1 (en) selective suspend resume method of reducing initial driving time in system, and computer readable medium thereof
KR101869425B1 (en) Recording Medium, Method and Device For Program Operation
KR101944270B1 (en) Recording Medium, Method and Device For Program Operation
US9207747B2 (en) Method and device for advanced configuration and power interface (ACPI) sleep-state support using CPU-only reset

Legal Events

Date Code Title Description
A107 Divisional application of patent
A201 Request for examination
E902 Notification of reason for refusal
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant