KR20100060312A - Method for scheduling task in embedded operating system of automobile - Google Patents

Method for scheduling task in embedded operating system of automobile Download PDF

Info

Publication number
KR20100060312A
KR20100060312A KR1020080118865A KR20080118865A KR20100060312A KR 20100060312 A KR20100060312 A KR 20100060312A KR 1020080118865 A KR1020080118865 A KR 1020080118865A KR 20080118865 A KR20080118865 A KR 20080118865A KR 20100060312 A KR20100060312 A KR 20100060312A
Authority
KR
South Korea
Prior art keywords
task
queue
priority
operating system
deadline
Prior art date
Application number
KR1020080118865A
Other languages
Korean (ko)
Other versions
KR101073428B1 (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 KR1020080118865A priority Critical patent/KR101073428B1/en
Publication of KR20100060312A publication Critical patent/KR20100060312A/en
Application granted granted Critical
Publication of KR101073428B1 publication Critical patent/KR101073428B1/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/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • G06F9/4887Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues involving deadlines, e.g. rate based, periodic
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/023Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
    • 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/38Concurrent instruction execution, e.g. pipeline or look ahead
    • G06F9/3854Instruction completion, e.g. retiring, committing or graduating
    • G06F9/3856Reordering of instructions, e.g. using queues or age tags
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mechanical Engineering (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE: A task scheduling method of car embedded OS(Operating System) is provided to guarantee task processing on real time by processing a task with a fast deadline firstly. CONSTITUTION: A task with a deadline is divided and stored according to a priority in a plurality of standby queues with a queue priority(S130). A storage location of the tasks is changed within each standby queue based on the deadline of the tasks saved in the standby queue(S140). The task saved in the standby queue is detected according to stored order(S150). The task with the earliest deadline is changed to the storage location which is most quickly processed.

Description

자동차용 임베디드 운영체제의 태스크 스케줄링 방법{Method for scheduling task in embedded operating system of automobile}Method for scheduling task in embedded operating system of automobile}

본 발명은 자동차에 사용되는 임베디드 운영체제의 태스크 스케줄링 방법에 관한 것으로, 더욱 상세하게는 자동차용 임베디드 운영체제의 실시간 스케줄링 알고리즘을 개선하기 위한 자동차용 임베디드 운영체제의 태스크 스케줄링 방법에 관한 것이다.The present invention relates to a task scheduling method of an embedded operating system used in a vehicle, and more particularly, to a task scheduling method of an automotive embedded operating system for improving the real-time scheduling algorithm of the automotive embedded operating system.

본 발명은 지식경제부 및 정보통신연구진흥원의 IT성장동력기술개발사업의 일환으로 수행한 연구로부터 도출된 것이다[과제명: 미래지능형 자동차전장용 임베디드 SW플랫폼기술 개발].The present invention is derived from the research conducted as part of the IT growth engine technology development project of the Ministry of Knowledge Economy and the Ministry of Information and Telecommunication Research and Development. [Task name: Development of embedded SW platform technology for future intelligent automotive electronics].

최근에는 IT기술이 자동차 관련 기술 분야들 중에서 전기 전자 분야에 접목되면서 자동차에 전자 장치의 장착 비중이 커지고 있다. 자동차에 장착되는 전자 장치는 자동차 안전장치에서부터 쾌적한 운행을 위한 운행장치에까지 적용되고 있다. 그에 따라, 자동차에 장착되는 전자 장치를 제어하기 위한 소프트웨어인 실시간 운영체제가 설치된다.Recently, as IT technology is applied to electric and electronic fields among automotive related technology fields, the proportion of electronic devices in automobiles is increasing. BACKGROUND Electronic devices mounted in automobiles are applied to vehicle driving devices for comfortable driving. Accordingly, a real-time operating system, which is software for controlling the electronic device mounted on the vehicle, is installed.

실시간 운영체제는 여러 가지 정의가 사용되지만 아래와 같은 정의가 가장 많이 사용된다. 즉, 실시간 운영체제는 주어진 특정 시간 내에 인터럽트를 처리하도록 보장하는 운영체제로서 임베디드 시스템과 같이 제한시간에 영향을 받는 응용 프로그램이나 하드웨어를 제어하기에 적합한 운영체제이다. 흔히 실시간 운영체제를 RTOS(Real-Time Operating System)으로 줄여서 표현한다. 즉, RTOS는 일반 운영체제에 하드웨어 관련한 시간적 제약 조건이 첨가된 운영체제로 볼 수 있다.Real-time operating systems use many definitions, but the following definitions are most commonly used. That is, a real-time operating system is an operating system that guarantees to handle interrupts within a given specific time, and is an operating system suitable for controlling application programs or hardware affected by timeouts such as embedded systems. Often, the real-time operating system is abbreviated as RTOS (Real-Time Operating System). In other words, RTOS can be seen as an operating system with a hardware-related time constraint added to a general operating system.

전자장치의 증가로 인해 자동차용 소프트웨어 크기가 기하급수적인 증가함에 따른 개발의 복잡성을 해결하기 위해 RTOS (실시간 운영체제)가 자동차 업계에 급격히 보급되고 있다. 자동차용 RTOS 중 대표적인 것이 OSEK 운영체제이다. OSEK OS는 BMW, Volkswagen, Siemens, Renault 등 유럽계 자동차 회사들이 주도적으로 개발한 자동차용 실시간 운영체제이다.Real-time operating systems (RTOS) are rapidly spreading into the automotive industry to address the complexity of developments due to the exponential growth in automotive software size due to the increase in electronics. The representative of automotive RTOS is OSEK operating system. OSEK OS is an automotive real-time operating system developed by European automakers such as BMW, Volkswagen, Siemens and Renault.

자동차용으로 설계된 실시간 운영체제의 표준인 OSEK 운영체제는 태스크의 생성, 이벤트 기반의 태스크 스케줄링, 태스크 동기화 등의 기능을 제공한다. 여기서, OSEK 운영체제의 스케줄링 알고리즘은 16개의 우선순위가 있다. 그리고 16개의 우선순위 대기 큐(queue)가 FIFO(First In First Out) 알고리즘 방식으로 처리되고 있다.The OSEK operating system, a standard for real-time operating systems designed for automobiles, provides tasks such as task creation, event-based task scheduling, and task synchronization. Here, the scheduling algorithm of the OSEK operating system has 16 priorities. Sixteen priority wait queues are processed using the First In First Out (FIFO) algorithm.

도 1에 도시된 바와 같이, OSEK 운영체제의 대기 알고리즘 방식에서는 16개의 대기 큐(100)를 가지고 있으며, 각 큐에는 해당하는 우선순위의 태스크(300)가 존재한다. 스케줄러(200)는 이들 큐를 순차적으로 검사하면서 수행할 태스크(300)를 선택한다. 즉, OSEK 운영체제의 대기 알고리즘 방식은 급한 태스크(300)가 대기 큐(100)에 진입을 하더라도 먼저 진입한 태스크(300)를 먼저 처리하는 방식이다. 그리하면, 종래의 자동차용 OSEK 운영체제는 급한 태스크(300)에 대해 이른 시간 안에 처리하지 못하고 먼저 진입한 태스크(300)들의 처리가 끝난 후에 처리를 시작하게 되어 실시간성을 보장하지 못하는 문제점이 있다.As shown in FIG. 1, in the OSEK operating system's waiting algorithm method, there are 16 waiting queues 100, and each queue has a task 300 having a corresponding priority. The scheduler 200 selects a task 300 to perform while sequentially checking these queues. That is, the wait algorithm method of the OSEK operating system processes the task 300 that entered first even if the urgent task 300 enters the wait queue 100. Thus, the conventional OSEK operating system for automobiles has a problem in that it cannot process in an early time for the urgent task 300 and starts processing after the processing of the previously entered tasks 300 ends, thereby failing to guarantee real time.

OSEK 운영체제의 스케줄링 알고리즘은 우선순위가 고정적이다. 즉, 태스크(300)가 스케줄러(200)로 진입하게 되면 태스크(300)에 부여되어있는 우선순위에 따라 대기 큐(100)로 들어간다. 이때, 태스크(300)는 16개의 대기 큐(100)에 들어갈 때 이미 우선순위가 정해져 있고, 대기 큐(100) 내에서는 먼저 도착한 태스크(300)가 먼저 중앙처리장치(400)에서 동작하도록 설계되었다. 여기서, 태스크(300)에 부여되어 있는 우선순위는 프로그래머가 정해 놓은 우선순위이기 때문에 프로그래머가 수정하기 전에는 우선순위가 변경되지 않는다. 그리하면, 종래의 OSEK 운영체제의 스케줄링 알고리즘은 급하게 처리해야 하는 태스크(300)를 제시간에 처리하지 못하여 시스템에 치명적인 오류 발생을 초래하는 문제점이 있다.The scheduling algorithm of the OSEK operating system has a fixed priority. That is, when the task 300 enters the scheduler 200, the task 300 enters the waiting queue 100 according to the priority given to the task 300. At this time, the task 300 has already been prioritized when entering the 16 waiting queues 100, and the task 300 that arrived first in the waiting queue 100 is designed to operate in the central processing unit 400 first. . Here, since the priority given to the task 300 is a priority set by the programmer, the priority is not changed until the programmer corrects it. Then, the scheduling algorithm of the conventional OSEK operating system fails to process the task 300 which has to be urgently processed in time, resulting in a fatal error in the system.

본 발명은 상기한 종래의 문제점을 감안하여 제안된 것으로서, 그 목적은 자동차의 전자장치를 제어하기 위한 태스크의 마감시간에 근거하여 태스크 처리를 스케줄링하도록 한 자동차용 임베디드 운영체제의 태스크 스케줄링 방법을 제공함에 있다.SUMMARY OF THE INVENTION The present invention has been proposed in view of the above-described conventional problems, and an object thereof is to provide a task scheduling method of an embedded operating system for a vehicle in which task processing is scheduled based on a deadline of a task for controlling an electronic device of a vehicle. have.

상기한 목적을 달성하기 위하여 본 발명에 따른 자동차용 임베디드 운영체제의 태스크 스케줄링 방법은, 자동차의 전자장치를 제어하기 위해 설치되는 자동차용 임베디드 운영체제의 태스크 스케줄링 방법으로서, (a) 마감시간을 갖는 태스크를 큐 우선순위를 갖는 복수의 대기 큐에 우선순위에 따라 분배하여 저장하는 단계; (b) 각각의 대기 큐에 저장된 태스크들의 마감시간에 근거하여 각 대기 큐 내에서 태스크들의 저장위치를 변경하는 단계; 및 (c) 대기 큐에 저장된 태스크를 저장순서대로 검출하는 단계를 포함한다.In order to achieve the above object, a task scheduling method of an automotive embedded operating system according to the present invention is a task scheduling method of an automotive embedded operating system installed to control an electronic device of a vehicle. Distributing and storing the plurality of waiting queues having the queue priority according to the priority; (b) changing a storage location of tasks in each wait queue based on a deadline of tasks stored in each wait queue; And (c) detecting the tasks stored in the waiting queue in the order of storage.

(b) 단계에서는, 가장 이른 마감시간을 갖는 태스크를 가장 빨리 처리되는 저장위치로 변경한다.In step (b), the task with the earliest deadline is changed to the storage location that is processed fastest.

(c) 단계에서는, 큐 우선순위가 가장 높은 대기 큐부터 태스크를 검출한다.In step (c), the task is detected from the waiting queue having the highest queue priority.

다르게는, 자동차의 전자장치를 제어하기 위해 설치되는 자동차용 임베디드 운영체제의 태스크 스케줄링 방법으로서, (a) 마감시간을 갖는 태스크를 큐 우선순 위를 갖는 복수의 대기 큐에 우선순위에 따라 분배하여 저장하는 단계; (b) 대기 큐에 저장된 하나 이상의 태스크들의 마감시간을 비교하여 각각의 태스크별로 고유한 처리순번을 지정하는 단계; 및 (c) 처리순번에 근거하여 대기 큐에 저장된 태스크를 검출하는 단계를 포함한다.Alternatively, a task scheduling method of an automotive embedded operating system installed to control an electronic device of a vehicle, the method comprising: (a) distributing and storing a task having a deadline according to priority among a plurality of waiting queues having a queue priority; Making; (b) comparing the deadlines of one or more tasks stored in the waiting queue to specify a unique processing order number for each task; And (c) detecting a task stored in the waiting queue based on the processing sequence number.

(b) 단계에서는, 가장 이른 마감시간을 갖는 태스크에 가장 빠른 처리순번을 지정한다.In step (b), the earliest processing time is assigned to the task having the earliest deadline.

(c) 단계에서는, 가장 빠른 처리순번을 갖는 태스크부터 검출한다.In step (c), the task having the earliest processing sequence is detected.

(c) 단계에서는, 큐 우선순위가 가장 높은 대기 큐부터 태스크를 검출한다.In step (c), the task is detected from the waiting queue having the highest queue priority.

(b-1) 각각의 대기 큐에 저장된 태스크들의 처리순번에 근거하여 각 대기 큐 내에서 태스크들의 저장위치를 변경하는 단계를 추가로 포함하고, (b-1) 단계에서는 가장 빠른 처리순번을 갖는 태스크를 가장 빨리 처리되는 저장위치로 변경한다.(b-1) further comprising changing a storage location of the tasks in each waiting queue based on the processing order of the tasks stored in the respective waiting queue, and in step (b-1), having the fastest processing sequence. Change the task to the storage location that is processed fastest.

(a) 단계에서는, 태스크의 우선순위에 해당하는 큐 우선순위를 갖는 대기 큐에 태스크를 저장한다.In step (a), the task is stored in a waiting queue having a queue priority corresponding to the priority of the task.

(a) 단계에서는, 태스크를 4개의 대기 큐에 분배하여 저장한다.In step (a), the task is distributed and stored in four waiting queues.

본 발명에 의하면, 자동차용 임베디드 운영체제의 태스크 스케줄링 방법은 이른 마감시간을 갖는 태스크를 먼저 처리하도록 함으로써, 태스크 처리의 실시간성을 보장할 수 있다.According to the present invention, the task scheduling method of the embedded operating system for automobiles may first process a task having an early deadline, thereby ensuring real-time task processing.

또한, 자동차용 임베디드 운영체제의 태스크 스케줄링 방법은 태스크의 마감 시간에 근거하여 태스크의 우선순위를 변경함으로써, 태스크를 제시간에 처리하지 못하여 발생하는 시스템의 치명적인 오류를 방지할 수 있다.In addition, the task scheduling method of the automotive embedded operating system may change the priority of the task based on the deadline of the task, thereby preventing a fatal error of the system caused by failing to process the task in time.

이하, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자가 본 발명의 기술적 사상을 용이하게 실시할 수 있을 정도로 상세히 설명하기 위하여, 본 발명의 가장 바람직한 실시예를 첨부 도면을 참조하여 설명하기로 한다. 우선 각 도면의 구성요소들에 참조부호를 부가함에 있어서, 동일한 구성요소들에 대해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 부호를 가지도록 하고 있음에 유의해야 한다. 또한, 본 발명을 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다.Hereinafter, the preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings so that those skilled in the art may easily implement the technical idea of the present invention. . First of all, in adding reference numerals to the components of each drawing, it should be noted that the same reference numerals are used as much as possible even if displayed on different drawings. 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.

도 2는 본 발명의 실시예에 따른 자동차용 임베디드 운영체제의 태스크 스케줄링 장치의 구성을 설명하기 위한 도면이다.2 is a view for explaining the configuration of the task scheduling apparatus of the embedded operating system for a vehicle according to an embodiment of the present invention.

도 2에 도시된 바와 같이, 자동차용 임베디드 운영체제의 태스크 스케줄링 장치는 4개의 대기 큐(100), 스케줄러(200)를 포함한다.As shown in FIG. 2, the task scheduling apparatus of the automotive embedded operating system includes four wait queues 100 and a scheduler 200.

대기 큐(100)에는 각각의 대기 큐(100) 별로 고유한 큐 우선순위가 설정된다. 즉, 제1대기 큐(100a)에는 큐 우선순위로 '0', 제2대기 큐(100b)에는 큐 우선순위로 '1', 제3대기 큐(100c)에는 큐 우선순위로 '2', 제4대기 큐(100d)에는 큐 우선순위로 '3'이 각각 설정된다. 여기서, 대기 큐(100)에 설정되는 큐 우선순위로 는 각각의 대기 큐(100)에 저장되는 태스크(300)의 처리에 대한 우선순위로, 큐 우선순위가 높은 대기 큐(100)에 저장된 태스크(300)가 먼저 처리된다. In the waiting queue 100, a unique queue priority is set for each waiting queue 100. That is, '0' as the queue priority for the first queue 100a, '1' as the queue priority for the second queue 100b, '2' as the queue priority for the third queue 100c, '3' is respectively set as the queue priority in the fourth standby queue 100d. Here, the queue priority set in the waiting queue 100 is a priority for the processing of the task 300 stored in each waiting queue 100, and a task stored in the waiting queue 100 having a high queue priority. 300 is processed first.

대기 큐(100)는 설정된 큐 우선순위에 해당하는 태스크(300)를 저장한다. 즉, 대기 큐(100)는 스케줄러(200)를 통해 입력되는 태스크(300)에 포함된 우선순위와 각각의 대기 큐(100)에 설정된 큐 우선순위를 비교하여 대기 큐(100)의 큐 우선순위에 해당하는(또는, 동일한) 우선순위를 갖는 태스크(300)를 저장한다. 이때, 대기 큐(100)에 저장되는 태스크(300)는 우선순위와 함께 태스크(300)의 마감시간을 포함한다. 태스크(300)의 마감시간은 각각의 태스크(300)가 처리되어야 하는 처리시간에 대한 기준으로 마감시간이 초과하지 않는 시간 내에 해당 태스크(300)를 처리하기 위한 정보이다.The waiting queue 100 stores a task 300 corresponding to the set queue priority. That is, the standby queue 100 compares the priority included in the task 300 input through the scheduler 200 with the queue priority set in each of the standby queues 100, and thus queue priority of the standby queue 100. The task 300 having the priority corresponding to (or the same) is stored. At this time, the task 300 stored in the waiting queue 100 includes a deadline of the task 300 with priority. The deadline of the task 300 is information for processing the corresponding task 300 within a time when the deadline does not exceed, based on the processing time that each task 300 is to be processed.

스케줄러(200)는 마감시간을 갖는 태스크(300)를 복수의 대기 큐(100)에 분배하여 저장한다. 즉, 스케줄러(200)는 모듈로부터 마감시간을 갖는 태스크(300)가 들어오게 되면 그 태스크(300)에 우선순위를 부여하고 우선순위에 해당하는 대기 큐(100)에 저장한다. 여기서, 태스크(300)에 부여되어 우선순위는 사용자(또는, 프로그래머)에 의해 설정된다. 태스크(300)의 우선순위는 고정 우선순위 알고리즘을 사용하기 때문에 사용자(또는, 프로그래머)가 우선순위를 수정하기 전까지는 태스크(300)에 부여된 우선순위는 변경되지 않는다.The scheduler 200 distributes and stores the task 300 having a deadline to the plurality of waiting queues 100. In other words, when a task 300 having a deadline comes in from the module, the scheduler 200 assigns a priority to the task 300 and stores it in the waiting queue 100 corresponding to the priority. Here, the task 300 is given priority and is set by the user (or programmer). Since the priority of task 300 uses a fixed priority algorithm, the priority given to task 300 is not changed until the user (or programmer) modifies the priority.

스케줄러(200)는 각각의 대기 큐(100)에 저장된 태스크(300)들의 마감시간에 근거하여 태스크(300)들의 저장위치를 변경한다. 즉, 스케줄러(200)는 가장 높은 우선순위를 갖는 대기 큐(100)로부터 가장 낮은 우선순위를 갖는 대기 큐(100)까지 순차적으로 태스크(300)들의 마감시간에 근거하여 태스크(300)들의 저장위치를 변경한다. 여기서, 스케줄러(200)는 가장 이른 마감시간을 갖는 태스크(300)에 가장 빨리 처리되는 저장위치로 변경한다. 이처럼, 자동차용 임베디드 운영체제의 태스크 스케줄링 방법은 태스크(300)의 마감시간에 근거하여 태스크(300)의 우선순위를 변경함으로써, 태스크(300)를 제시간에 처리하지 못하여 발생하는 시스템의 치명적인 오류를 방지할 수 있다.The scheduler 200 changes the storage location of the tasks 300 based on the deadlines of the tasks 300 stored in the respective waiting queues 100. That is, the scheduler 200 sequentially stores the storage locations of the tasks 300 based on the deadlines of the tasks 300 from the queue 100 having the highest priority to the queue 100 having the lowest priority. Change Here, the scheduler 200 changes to a storage location that is processed fastest in the task 300 having the earliest deadline. As such, the task scheduling method of the automotive embedded operating system changes a priority of the task 300 based on the deadline of the task 300, thereby preventing a fatal error of the system caused by failing to process the task 300 in time. You can prevent it.

스케줄러(200)는 대기 큐(100)에 저장된 태스크(300)를 검출하여 중앙처리장치(400)로 전송한다. 즉, 스케줄러(200)는 태스크(300)의 저장위치가 변경되어 저장된 태스크(300)를 저장된 순서대로 검출하여 중앙처리장치(400)로 전송한다. 여기서, 스케줄러(200)는 큐 우선순위가 가장 높은 대기 큐(100)에 저장된 태스크(300)들을 우선적으로 검출한다. The scheduler 200 detects the task 300 stored in the waiting queue 100 and transmits the detected task 300 to the CPU 400. That is, the scheduler 200 detects and stores the stored task 300 in the order in which the storage location of the task 300 is changed, and transmits the stored task 300 to the CPU 400. Here, the scheduler 200 preferentially detects the tasks 300 stored in the waiting queue 100 having the highest queue priority.

스케줄러(200)는 대기 큐(100)에 저장된 태스크(300)들 중에서 마감시간이 가장 이른 태스크(300)를 검출하여 중앙처리장치(400)로 전송할 수도 있다. 즉, 스케줄러(200)는 마감시간이 임박한 태스크(300)를 우선 처리하기 위해서 대기 큐(100)에 저장된 태스크(300)들 중에서 마감시간이 가장 이른 태스크(300)를 검출하여 중앙처리장치(400)로 전송한다. 여기서, 스케줄러(200)는 큐 우선순위가 가장 높은 대기 큐(100)에 저장된 태스크(300)들을 우선적으로 검출한다. 이처럼, 자동차용 임베디드 운영체제의 태스크 스케줄링 방법은 이른 마감시간을 갖는 태스크(300)를 먼저 처리하도록 함으로써, 태스크(300) 처리의 실시간성을 보장할 수 있다.The scheduler 200 may detect the task 300 having the earliest deadline among the tasks 300 stored in the waiting queue 100 and transmit the detected task 300 to the CPU 400. That is, the scheduler 200 detects the task 300, which has the earliest deadline, among the tasks 300 stored in the waiting queue 100, in order to process the task 300 that has an imminent deadline. To send). Here, the scheduler 200 preferentially detects the tasks 300 stored in the waiting queue 100 having the highest queue priority. As such, the task scheduling method of the automotive embedded operating system may process the task 300 having an early deadline first, thereby ensuring real-time processing of the task 300.

스케줄러(200)는 가장 이른 마감시간을 갖는 태스크(300)에 가장 빠른 처리순번을 지정하고, 가장 빠른 처리순번을 갖는 태스크(300)부터 검출하여 중앙처리장치(400)로 전송할 수도 있다. 즉, 스케줄러(200)는 각각의 대기 큐(100)에 저장된 태스크(300)들의 마감시간을 비교하여 마감시간이 이른 순서대로 처리순번을 지정하고, 가장 빠른 처리순번을 갖는 태스크(300)를 검출한다. 여기서, 스케줄러(200)는 큐 우선순위가 가장 높은 대기 큐(100)에 저장된 태스크(300)들을 우선적으로 검출한다.The scheduler 200 may assign the earliest processing time to the task 300 having the earliest deadline, detect the task 300 having the earliest processing time, and transmit the same to the CPU 400. That is, the scheduler 200 compares the deadlines of the tasks 300 stored in the respective waiting queues 100 and assigns the processing sequence numbers in the order of the early deadlines, and detects the task 300 having the fastest processing sequence. do. Here, the scheduler 200 preferentially detects the tasks 300 stored in the waiting queue 100 having the highest queue priority.

도 3은 본 발명의 제1실시예에 따른 자동차용 임베디드 운영체제의 태스크 스케줄링 방법을 설명하기 위한 흐름도이고, 도 4 내지 도 6은 제1실시예에 따른 자동차용 임베디드 운영체제의 태스크 스케줄링 방법을 설명하기 위한 도면이다.3 is a flowchart illustrating a task scheduling method of an automotive embedded operating system according to a first exemplary embodiment of the present invention, and FIGS. 4 to 6 illustrate a task scheduling method of an automotive embedded operating system according to the first exemplary embodiment. It is for the drawing.

먼저, 운전자가 자동차에 장착된 전자 장치를 제어하기 제어신호를 발생하면, 해당 전자 장치를 제어하기 위한 모듈의 요청에 의해 생성된 태스크(300)가 임베디드 운영체제의 스케줄러(200)로 전송된다. First, when a driver generates a control signal for controlling an electronic device mounted on a vehicle, a task 300 generated by a request of a module for controlling the electronic device is transmitted to the scheduler 200 of the embedded operating system.

태스크(300)를 수신하면(S100; YES), 스케줄러(200)는 태스크(300)에 포함된 우선순위를 검출한다(S110). 이때, 태스크(300)에는 4개의 대기 큐(100; 예컨대, 제1대기 큐(100a), 제2대기 큐(100b), 제3대기 큐(100c), 제4대기 큐(100d)) 중에 어느 하나에 해당하는 우선순위 및 해당 태스크(300)의 마감시간을 포함하고 있다. 예를 들어, 도 4에 도시된 바와 같이, 4개의 대기 큐(100)가 각각 '0' 내지 '3'의 큐 우선순위를 갖는 경우, 태스크(300)는 '0' 내지 '3' 중에 하나의 우선순위를 포함한다. 스케줄러(200)는 수신한 태스크(300)에 포함된 우선순위를 검출한다.Upon receiving the task 300 (S100; YES), the scheduler 200 detects a priority included in the task 300 (S110). In this case, the task 300 may include any one of four waiting queues 100 (for example, the first waiting queue 100a, the second waiting queue 100b, the third waiting queue 100c, and the fourth waiting queue 100d). It includes a priority corresponding to one and the deadline of the task (300). For example, as shown in FIG. 4, when the four waiting queues 100 each have a queue priority of '0' to '3', the task 300 is one of '0' to '3'. Includes the priority of. The scheduler 200 detects a priority included in the received task 300.

다음으로, 스케줄러(200)는 검출한 태스크(300)의 우선순위와 각각의 대기 큐(100)의 큐 우선순위에 근거하여 태스크(300)를 저장할 대기 큐(100)를 설정한다(S120). 즉, 스케줄러(200)는 검출한 태스크(300)의 우선순위와 동일한 큐 우선순위를 갖는 대기 큐(100)를 해당 태스크(300)를 저장할 대기 큐(100)로 설정한다. 예를 들면, 스케줄러(200)는 태스크(300)로부터 검출한 우선순위가 '0'인 경우에 큐 우선순위로 '0'을 갖는 대기 큐(100; 예를 들면, 도 4의 제1대기 큐(100a))를 해당 태스크(300)를 저장할 대기 큐(100)로 설정한다.Next, the scheduler 200 sets the waiting queue 100 to store the task 300 based on the detected priority of the task 300 and the queue priority of each waiting queue 100 (S120). That is, the scheduler 200 sets the waiting queue 100 having the same queue priority as the priority of the detected task 300 as the waiting queue 100 to store the corresponding task 300. For example, the scheduler 200 may have a waiting queue 100 having a '0' as the queue priority when the priority detected from the task 300 is '0' (for example, the first waiting queue of FIG. 4). (100a)) to the waiting queue 100 to store the task 300.

다음으로, 스케줄러(200)는 수신한 태스크(300)를 S120단계에서 설정된 대기 큐(100)에 저장한다(S130). 대기 큐(100)는 스케줄러(200)로부터의 태스크(300)를 저장되어 있는 태스크(300)들의 다음 순번에 위치하도록 저장한다. 예를 들면, 도 5에 도시된 바와 같이, 제1대기 큐(100a)에 3개의 태스크(300; 예컨대, 태스크1(300a), 태스크2(300b), 태스크3(300c))가 저장되어 있는 경우에, 제1대기 큐(100a)는 스케줄러(200)로부터의 태스크(300; 예컨대, 태스크4(300d))를 4번째 처리에 해당하는 저장위치에 저장한다. 여기서, 대기 큐(100)의 '3' 번 블럭은 최우선 처리에 해당하는 저장위치이고, '0' 번 블럭은 최종 처리에 해당하는 저장위치이다.Next, the scheduler 200 stores the received task 300 in the waiting queue 100 set in step S120 (S130). The waiting queue 100 stores the task 300 from the scheduler 200 to be located in the next order of the stored tasks 300. For example, as shown in FIG. 5, three tasks 300 (for example, task 1 (300a), task 2 (300b), and task 3 (300c)) are stored in the first queue 100a. In this case, the first wait queue 100a stores the task 300 (eg, task 4 (300d)) from the scheduler 200 in a storage location corresponding to the fourth process. Here, block '3' of the waiting queue 100 is a storage position corresponding to the highest priority processing, and block '0' is a storage position corresponding to the final processing.

태스크(300)의 저장이 완료되면, 스케줄러(200)는 모듈로부터의 태스크(300)를 저장한 대기 큐(100)에 저장된 태스크(300)들의 마감시간에 근거하여 태스 크(300)들의 저장위치를 변경한다(S140). 즉, 스케줄러(200)는 각각의 태스크(300)에 포함된 마감시간 순서로 태스크(300)의 저장위치를 변경한다. 여기서, 스케줄러(200)는 가장 이른 마감시간을 갖는 태스크(300)를 최우선 처리에 해당하는 저장위치에 저장하고, 가장 늦은 마감시간을 갖는 태스크(300)를 최종 처리에 해당하는 저장위치에 저장한다. 예를 들면, 도 6의 (a)에 도시된 바와 같이, 각각의 마감시간을 포함하는 4개의 태스크(300)가 있다. 제1대기 큐(100a)의 블럭에 도 6의 (b)에 도시된 바와 같이, 태스크(300; 예컨대, 태스크1(300a), 태스크2(300b), 태스크3(300c), 태스크4(300d))가 각각 저장되어 있다. 여기서, 대기 큐(100)의 '3' 번 블럭이 최우선 처리에 해당하는 저장위치이고 '0' 번 블럭이 최종 처리에 해당하는 저장위치이다. 이 경우에, 스케줄러(200)는 마감시간이 가장 이른 태스크1(300a)을 제1대기 큐(100a)의 '3' 번 블럭에, 두 번째로 이른 마감시간을 갖는 태스크3(300c)을 제1대기 큐(100a)의 '2' 번 블럭에, 세 번째 이른 마감시간을 갖는 태스크4(300d)를 제1대기 큐(100a)의 '1' 번 블럭에, 가장 늦은 마감시간을 갖는 태스크2(300b)를 제1대기 큐(100a)의 '0' 번 블럭에 저장한다. 그에 따라, 제1대기 큐(100a)에 저장된 태스크(300)들의 저장위치는 도 6의 (c)에 도시된 바와 같다. 이처럼, 자동차용 임베디드 운영체제의 태스크 스케줄링 방법은 태스크(300)의 마감시간에 근거하여 태스크(300)의 우선순위를 변경함으로써, 태스크(300)를 제시간에 처리하지 못하여 발생하는 시스템의 치명적인 오류를 방지할 수 있다.When the storing of the task 300 is completed, the scheduler 200 stores the positions of the tasks 300 based on the deadlines of the tasks 300 stored in the waiting queue 100 storing the task 300 from the module. To change (S140). That is, the scheduler 200 changes the storage location of the task 300 in the order of the deadlines included in each task 300. Here, the scheduler 200 stores the task 300 having the earliest deadline in the storage location corresponding to the highest priority processing, and stores the task 300 having the latest deadline in the storage location corresponding to the final processing. . For example, as shown in FIG. 6A, there are four tasks 300 that include each deadline. As shown in (b) of FIG. 6 in the block of the first waiting queue 100a, task 300 (for example, task 1 (300a), task 2 (300b), task 3 (300c), task 4 (300d)). )) Are stored respectively. Here, block '3' of the waiting queue 100 is a storage position corresponding to the highest priority processing, and block '0' is a storage position corresponding to the final processing. In this case, the scheduler 200 removes task 1 (300a) with the earliest deadline in block 3 of the first queue (100a) and task 3 (300c) with the second deadline. Task 4 (300d) having the third early deadline in block '2' of the first queue (100a), Task 2 having the latest deadline in the block '1' of the first queue (100a) 300b is stored in the block '0' of the first waiting queue 100a. Accordingly, the storage location of the tasks 300 stored in the first waiting queue 100a is as shown in FIG. As such, the task scheduling method of the automotive embedded operating system changes a priority of the task 300 based on the deadline of the task 300, thereby preventing a fatal error of the system caused by failing to process the task 300 in time. You can prevent it.

태스크(300)의 저장위치 변경이 완료되면, 스케줄러(200)는 대기 큐(100)에 저장된 태스크(300)를 순차적으로 검출하여 중앙처리장치(400)로 전송한다(S150). 즉, 스케줄러(200)는 최우선 처리위치에 해당하는 저장위치에 저장된 태스크(300)부터 순차적으로 검출하여 중앙처리장치(400)로 전송한다. 예를 들어, 도 6의 (c)에 도시된 바와 같이, 대기 큐(100)에 4개의 태스크(300)가 저장되어 있는 경우에, 스케줄러(200)는 처리 우선순위에 따라 '3' 번 블럭, '2' 번 블럭, '1' 번 블럭, '0' 번 블럭에 저장된 태스크(300)를 순차적으로 검출하여 중앙처리장치(400)로 전송한다. 여기서, 스케줄러(200)는 태스크(300)와 태스크(300) 사이에 먼저 검출된 태스크(300)의 처리시간이 지난 후에 다음 위치의 태스크(300)를 검출한다.When the change of the storage location of the task 300 is completed, the scheduler 200 sequentially detects the task 300 stored in the waiting queue 100 and transmits it to the CPU 400 (S150). That is, the scheduler 200 sequentially detects the task 300 stored in the storage location corresponding to the highest priority processing position and transmits the same to the central processing unit 400. For example, as shown in (c) of FIG. 6, when four tasks 300 are stored in the waiting queue 100, the scheduler 200 blocks '3' according to processing priority. In addition, tasks 300 stored in blocks '2', '1', and '0' are sequentially detected and transmitted to the CPU 400. Here, the scheduler 200 detects the task 300 at the next location after the processing time of the task 300 detected first between the task 300 and the task 300 elapses.

이후에, 스케줄러(200)는 새로운 태스크(300)가 전송되면 상술한 S100단계 내지 S150단계를 수행하여 태스크(300)의 처리순서를 스케줄링한다. 이처럼, 제1실시예에 따르면 태스크가 대기 큐에 저장된 후에 태스크의 마감시간에 따라 저장위치를 변경함으로써, 태스크의 마감시간에 따른 태스크의 검출시에 처리속도를 향상시킬 수 있는 효과가 있다.Thereafter, when the new task 300 is transmitted, the scheduler 200 performs the above-described steps S100 to S150 to schedule the processing sequence of the task 300. As described above, according to the first embodiment, by changing the storage location according to the deadline of the task after the task is stored in the waiting queue, the processing speed can be improved when the task is detected according to the deadline of the task.

도 7은 본 발명의 제2실시예에 따른 자동차용 임베디드 운영체제의 태스크 스케줄링 방법을 설명하기 위한 흐름도이고, 도 8은 본 발명의 제2실시예에 따른 자동차용 임베디드 운영체제의 태스크 스케줄링 방법을 설명하기 위한 도면이다.7 is a flowchart illustrating a task scheduling method of an automotive embedded operating system according to a second exemplary embodiment of the present invention, and FIG. 8 is a flowchart illustrating a task scheduling method of an automotive embedded operating system according to a second exemplary embodiment of the present invention. It is for the drawing.

먼저, 운전자가 자동차에 장착된 전자 장치를 제어하기 제어신호를 발생하면, 해당 전자 장치를 제어하기 위한 모듈의 요청에 의해 생성된 태스크(300)가 임 베디드 운영체제의 스케줄러(200)로 전송된다. First, when a driver generates a control signal for controlling an electronic device mounted on a vehicle, a task 300 generated by a request of a module for controlling the electronic device is transmitted to the scheduler 200 of the embedded operating system. .

태스크(300)를 수신하면(S200; YES), 스케줄러(200)는 태스크(300)에 포함된 우선순위를 검출한다(S210). 이때, 태스크(300)에는 4개의 대기 큐(100) 중에 어느 하나에 해당하는 우선순위 및 해당 태스크(300)의 마감시간을 포함하고 있다.Upon receiving the task 300 (S200; YES), the scheduler 200 detects a priority included in the task 300 (S210). In this case, the task 300 includes a priority corresponding to any one of the four waiting queues 100 and a deadline of the task 300.

다음으로, 스케줄러(200)는 검출한 태스크(300)의 우선순위와 각각의 대기 큐(100)의 큐 우선순위에 근거하여 태스크(300)를 저장할 대기 큐(100)를 설정한다(S220). 즉, 스케줄러(200)는 검출한 태스크(300)의 우선순위와 동일한 큐 우선순위를 갖는 대기 큐(100)를 해당 태스크(300)를 저장할 대기 큐(100)로 설정한다. 예를 들면, 스케줄러(200)는 태스크(300)로부터 검출한 우선순위가 '0'인 경우에 큐 우선순위로 '0'을 갖는 대기 큐(100)를 해당 태스크(300)를 저장할 대기 큐(100)로 설정한다.Next, the scheduler 200 sets the waiting queue 100 to store the task 300 based on the detected priority of the task 300 and the queue priority of each waiting queue 100 (S220). That is, the scheduler 200 sets the waiting queue 100 having the same queue priority as the priority of the detected task 300 as the waiting queue 100 to store the corresponding task 300. For example, when the priority detected by the task 300 is '0', the scheduler 200 stores a waiting queue 100 having a '0' as the queue priority to store the task 300. 100).

다음으로, 스케줄러(200)는 설정한 대기 큐(100)에 수신한 태스크(300)를 저장한다(S230). 대기 큐(100)는 스케줄러(200)로부터의 태스크(300)를 저장되어 있는 태스크(300)들의 다음 순번에 위치하도록 저장한다. 예를 들면, 3개의 태스크(300)가 저장되어 있는 경우에, 대기 큐(100)는 4번째 처리에 해당하는 저장위치에 스케줄러(200)로부터의 태스크(300)를 저장한다.Next, the scheduler 200 stores the received task 300 in the set waiting queue 100 (S230). The waiting queue 100 stores the task 300 from the scheduler 200 to be located in the next order of the stored tasks 300. For example, when three tasks 300 are stored, the waiting queue 100 stores the task 300 from the scheduler 200 in a storage location corresponding to the fourth process.

태스크(300)의 저장이 완료되면, 스케줄러(200)는 모듈로부터의 태스크(300)를 저장한 대기 큐(100)에 저장된 태스크(300)들의 마감시간에 근거하여 태스크(300)들의 처리순번을 설정한다(S240). 즉, 스케줄러(200)는 각각의 태스크(300)에 포함된 마감시간 순서로 태스크(300)의 처리순번을 설정한다. 여기서, 스케줄 러(200)는 가장 이른 마감시간을 갖는 태스크(300)에 최우선 처리순번을 설정하고, 가장 늦은 마감시간을 갖는 태스크(300)에 최종 처리순번을 설정한다. 예를 들면, 도 8의 (a)에 도시된 바와 같이, 제1대기 큐(100a)에 4개의 태스크(300)가 저장되어 있다. 4개의 태스크(300)는 도 8의 (b)에 도시된 바와 같이, 각각의 마감시간을 포함한다. 이 경우, 스케줄러(200)는 마감시간이 가장 이른 태스크1(300a)에 처리순번 '1'을, 두 번째로 이른 마감시간을 갖는 태스크3(300c)에 처리순번 '2'를, 세 번째 이른 마감시간을 갖는 태스크4(300d)에 처리순번 '3'을, 가장 늦은 마감시간을 갖는 태스크2(300b)를 처리순번 '4'를 각각 설정한다. 그에 따라, 대기 큐(100)에 저장된 태스크(300)들의 처리순번은 도 8의 (c)에 도시된 바와 같다.When the storing of the task 300 is completed, the scheduler 200 determines the processing order of the tasks 300 based on the deadlines of the tasks 300 stored in the waiting queue 100 storing the task 300 from the module. Set (S240). That is, the scheduler 200 sets the processing order of the task 300 in the order of the deadlines included in each task 300. Here, the scheduler 200 sets the highest priority order in the task 300 having the earliest deadline, and sets the final priority order in the task 300 having the latest deadline. For example, as shown in FIG. 8A, four tasks 300 are stored in the first waiting queue 100a. The four tasks 300 include their respective deadlines, as shown in FIG. In this case, the scheduler 200 sets the processing sequence '1' to the task 1 (300a) with the earliest deadline, the processing sequence '2' to the task 3 (300c) with the second deadline, and the third Processing order '3' is set for task 4 (300d) having a deadline and processing order '4' is set for task 2 (300b) having the latest deadline, respectively. Accordingly, the processing sequence of the tasks 300 stored in the waiting queue 100 is as shown in (c) of FIG.

태스크(300)의 처리순번 설정이 완료되면, 스케줄러(200)는 처리순번에 따라 대기 큐(100)에 저장된 태스크(300)를 순차적으로 검출하여 중앙처리장치(400)로 전송한다(S250). 즉, 스케줄러(200)는 최우선 처리에 해당하는 처리순번이 설정된 태스크(300)부터 순차적으로 검출하여 중앙처리장치(400)로 전송한다. 예를 들어, 도 8의 (b)에 도시된 바와 같이, 대기 큐(100)에 4개의 태스크(300)가 저장되어 있는 경우에, 스케줄러(200)는 처리 우선순위에 따라 '0' 번 블럭, '2' 번 블럭, '3' 번 블럭, '1' 번 블럭에 저장된 태스크(300)를 순차적으로 검출하여 중앙처리장치(400)로 전송한다. 여기서, 스케줄러(200)는 태스크(300)와 태스크(300) 사이에 먼저, 검출된 태스크(300)의 처리시간이 지난 후에 다음 위치의 태스크(300)를 검출한다. 이처럼, 자동차용 임베디드 운영체제의 태스크 스케줄링 방법은 이른 마감시간을 갖는 태스크(300)를 먼저 처리하도록 함으로써, 태스크(300) 처리의 실시간 성을 보장할 수 있다.When the processing order setting of the task 300 is completed, the scheduler 200 sequentially detects the task 300 stored in the waiting queue 100 according to the processing order and transmits the task 300 to the CPU 400 (S250). That is, the scheduler 200 sequentially detects the task sequence corresponding to the highest priority process from the set task 300 and transmits the same to the central processing unit 400. For example, as shown in (b) of FIG. 8, when four tasks 300 are stored in the waiting queue 100, the scheduler 200 blocks '0' according to processing priority. In addition, tasks 300 stored in blocks '2', '3' and '1' are sequentially detected and transmitted to the CPU 400. Here, the scheduler 200 detects the task 300 at the next position after the processing time of the detected task 300 has elapsed between the task 300 and the task 300. As such, the task scheduling method of the automotive embedded operating system may process the task 300 having an early deadline first, thereby ensuring real-time processing of the task 300.

이후에, 스케줄러(200)는 새로운 태스크(300)가 전송되면 상술한 S200단계 내지 S250단계를 수행하여 태스크(300)의 처리순서를 스케줄링한다. 이처럼, 본 발명의 제2실시예에 따르면 태스크 저장위치의 변경없이 태스크의 마감시간에 따라 처리순번을 지정함으로써, 본 발명의 제1실시예에서 태스크의 저장위치 변경에 따른 처리시간을 최소화하여 태스크 처리속도를 향상시킬 수 있는 효과가 있다.Thereafter, when the new task 300 is transmitted, the scheduler 200 performs the above-described steps S200 to S250 to schedule the processing sequence of the task 300. As such, according to the second embodiment of the present invention, by specifying the processing sequence number according to the deadline time of the task without changing the task storage location, the first embodiment of the present invention minimizes the processing time according to the change of the storage location of the task There is an effect that can improve the processing speed.

이상에서 본 발명에 따른 바람직한 실시예에 대해 설명하였으나, 다양한 형태로 변형이 가능하며, 본 기술분야에서 통상의 지식을 가진자라면 본 발명의 특허청구범위를 벗어남이 없이 다양한 변형예 및 수정예를 실시할 수 있을 것으로 이해된다.Although a preferred embodiment according to the present invention has been described above, it is possible to modify in various forms, and those skilled in the art to various modifications and modifications without departing from the claims of the present invention It is understood that it may be practiced.

도 1은 종래의 자동차용 임베디드 운영체제를 설명하기 위한 도면.1 is a view for explaining a conventional embedded operating system for automobiles.

도 2는 본 발명의 실시예에 따른 자동차용 임베디드 운영체제의 태스크 스케줄링 장치의 구성을 설명하기 위한 도면.2 is a view for explaining the configuration of the task scheduling apparatus of the automotive embedded operating system according to an embodiment of the present invention.

도 3은 본 발명의 제1실시예에 따른 자동차용 임베디드 운영체제의 태스크 스케줄링 방법을 설명하기 위한 흐름도.3 is a flowchart illustrating a task scheduling method of an automotive embedded operating system according to a first embodiment of the present invention.

도 4 내지 도 6은 제1실시예에 따른 자동차용 임베디드 운영체제의 태스크 스케줄링 방법을 설명하기 위한 도면.4 to 6 are diagrams for explaining a task scheduling method of an automotive embedded operating system according to a first embodiment.

도 7은 본 발명의 제2실시예에 따른 자동차용 임베디드 운영체제의 태스크 스케줄링 방법을 설명하기 위한 흐름도.7 is a flowchart illustrating a task scheduling method of an automotive embedded operating system according to a second embodiment of the present invention.

도 8은 제2실시예에 따른 자동차용 임베디드 운영체제의 태스크 스케줄링 방법을 설명하기 위한 도면.8 is a diagram for describing a task scheduling method of an automotive embedded operating system according to a second embodiment.

<도면의 주요부분에 대한 부호의 설명><Description of the symbols for the main parts of the drawings>

100: 대기 큐 100a: 제1대기 큐100: waiting queue 100a: first waiting queue

100b: 제2대기 큐 100c: 제3대기 큐100b: second waiting queue 100c: third waiting queue

100d: 제4대기 큐 200: 스케줄러100d: queue 4 200: scheduler

300: 태스크 300a: 태스크1300: task 300a: task 1

300b: 태스크2 300c: 태스크3300b: task 2 300c: task 3

300d: 태스크4 400: 중앙처리장치300d: task 4 400: central processing unit

Claims (10)

자동차의 전자장치를 제어하기 위해 설치되는 자동차용 임베디드 운영체제의 태스크 스케줄링 방법으로서,A task scheduling method of an embedded operating system for a vehicle installed to control an electronic device of a vehicle, (a) 마감시간을 갖는 태스크를 큐 우선순위를 갖는 복수의 대기 큐에 우선순위에 따라 분배하여 저장하는 단계;(a) distributing and storing a task having a deadline according to priority in a plurality of waiting queues having a queue priority; (b) 각각의 대기 큐에 저장된 태스크들의 마감시간에 근거하여 각 대기 큐 내에서 상기 태스크들의 저장위치를 변경하는 단계; 및(b) changing a storage location of the tasks in each wait queue based on a deadline of tasks stored in each wait queue; And (c) 상기 대기 큐에 저장된 태스크를 저장순서대로 검출하는 단계를 포함하는 것을 특징으로 하는 자동차용 임베디드 운영체제의 태스크 스케줄링 방법.(c) detecting a task stored in the waiting queue in a storage order. 청구항 1에 있어서,The method according to claim 1, 상기 (b) 단계에서는,In the step (b), 가장 이른 마감시간을 갖는 태스크를 가장 빨리 처리되는 저장위치로 변경하는 것을 특징으로 하는 자동차용 임베디드 운영체제의 태스크 스케줄링 방법.A task scheduling method of an embedded operating system for a vehicle, characterized by changing the task having the earliest deadline to the storage location that is processed fastest. 청구항 1에 있어서,The method according to claim 1, 상기 (c) 단계에서는,In the step (c), 큐 우선순위가 가장 높은 대기 큐부터 태스크를 검출하는 것을 특징으로 하는 자동차용 임베디드 운영체제의 태스크 스케줄링 방법.A task scheduling method of an embedded operating system for a vehicle, characterized by detecting a task from a waiting queue having the highest queue priority. 자동차의 전자장치를 제어하기 위해 설치되는 자동차용 임베디드 운영체제의 태스크 스케줄링 방법으로서,A task scheduling method of an embedded operating system for a vehicle installed to control an electronic device of a vehicle, (a) 마감시간을 갖는 태스크를 큐 우선순위를 갖는 복수의 대기 큐에 우선순위에 따라 분배하여 저장하는 단계;(a) distributing and storing a task having a deadline according to priority in a plurality of waiting queues having a queue priority; (b) 대기 큐에 저장된 하나 이상의 태스크들의 마감시간을 비교하여 각각의 태스크별로 고유한 처리순번을 지정하는 단계; 및(b) comparing the deadlines of one or more tasks stored in the waiting queue to specify a unique processing order number for each task; And (c) 상기 처리순번에 근거하여 대기 큐에 저장된 태스크를 검출하는 단계를 포함하는 것을 특징으로 하는 자동차용 임베디드 운영체제의 태스크 스케줄링 방법.(c) detecting a task stored in a waiting queue based on the processing sequence. 청구항 4에 있어서,The method according to claim 4, 상기 (b) 단계에서는,In the step (b), 가장 이른 마감시간을 갖는 태스크에 가장 빠른 처리순번을 지정하는 것을 특징으로 하는 자동차용 임베디드 운영체제의 태스크 스케줄링 방법.A task scheduling method of an embedded operating system for a vehicle, characterized by assigning a fastest processing sequence to a task having an earliest deadline. 청구항 4에 있어서,The method according to claim 4, 상기 (c) 단계에서는,In the step (c), 가장 빠른 처리순번을 갖는 태스크부터 검출하는 것을 특징으로 하는 자동차용 임베디드 운영체제의 태스크 스케줄링 방법.A task scheduling method of an embedded operating system for a vehicle, characterized by detecting the task having the fastest processing sequence. 청구항 4에 있어서,The method according to claim 4, 상기 (c) 단계에서는,In the step (c), 큐 우선순위가 가장 높은 대기 큐부터 태스크를 검출하는 것을 특징으로 하는 자동차용 임베디드 운영체제의 태스크 스케줄링 방법.A task scheduling method of an embedded operating system for a vehicle, characterized by detecting a task from a waiting queue having the highest queue priority. 청구항 4에 있어서,The method according to claim 4, (b-1) 각각의 대기 큐에 저장된 태스크들의 처리순번에 근거하여 각 대기 큐 내에서 상기 태스크들의 저장위치를 변경하는 단계를 추가로 포함하고,(b-1) changing the storage location of the tasks in each wait queue based on the processing order of the tasks stored in each wait queue, 상기 (b-1) 단계에서는 가장 빠른 처리순번을 갖는 태스크를 가장 빨리 처리되는 저장위치로 변경하는 것을 특징으로 하는 자동차용 임베디드 운영체제의 태스크 스케줄링 방법.In the step (b-1), the task scheduling method of the automotive embedded operating system, characterized in that for changing the task having the fastest processing order to the storage location that is processed fastest. 청구항 1 또는 청구항 4에 있어서,The method according to claim 1 or 4, 상기 (a) 단계에서는,In the step (a), 상기 태스크의 우선순위에 해당하는 큐 우선순위를 갖는 대기 큐에 상기 태스크를 저장하는 것을 특징으로 하는 자동차용 임베디드 운영체제의 태스크 스케줄링 방법.And storing the task in a waiting queue having a queue priority corresponding to the priority of the task. 청구항 1 또는 청구항 4에 있어서,The method according to claim 1 or 4, 상기 (a) 단계에서는,In the step (a), 상기 태스크를 4개의 대기 큐에 분배하여 저장하는 것을 특징으로 하는 자동차용 임베디드 운영체제의 태스크 스케줄링 방법.The task scheduling method of the embedded operating system for a vehicle, characterized in that the task is distributed to four waiting queues.
KR1020080118865A 2008-11-27 2008-11-27 Method for scheduling task in embedded operating system of automobile KR101073428B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020080118865A KR101073428B1 (en) 2008-11-27 2008-11-27 Method for scheduling task in embedded operating system of automobile

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020080118865A KR101073428B1 (en) 2008-11-27 2008-11-27 Method for scheduling task in embedded operating system of automobile

Publications (2)

Publication Number Publication Date
KR20100060312A true KR20100060312A (en) 2010-06-07
KR101073428B1 KR101073428B1 (en) 2011-10-17

Family

ID=42361245

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020080118865A KR101073428B1 (en) 2008-11-27 2008-11-27 Method for scheduling task in embedded operating system of automobile

Country Status (1)

Country Link
KR (1) KR101073428B1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130094889A (en) * 2012-02-17 2013-08-27 한국전자통신연구원 Tasks scheduling method for realtime operating system
US8954975B2 (en) 2011-11-08 2015-02-10 Electronics And Telecommunications Research Institute Task scheduling method for real time operating system
KR101638136B1 (en) * 2015-05-14 2016-07-08 주식회사 티맥스 소프트 Method for minimizing lock competition between threads when tasks are distributed in multi-thread structure and apparatus using the same
KR20190112600A (en) * 2018-03-26 2019-10-07 현대모비스 주식회사 Embedded system for congestion control of vehicle, congestion control method of vehicle
US10452432B2 (en) 2016-03-29 2019-10-22 Hyundai Autron Co., Ltd. Method and apparatus for distributing tasks of AUTOSAR operating system
KR20210022426A (en) * 2019-08-20 2021-03-03 성균관대학교산학협력단 Method and Apparatus for Minimizing Preemption by Splitting Runnable Group of Tasks
US11822967B2 (en) 2019-08-20 2023-11-21 Research & Business Foundation Sungkyunkwan University Task distribution method for minimizing preemption between tasks and apparatus for performing the same

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100524763B1 (en) * 2003-07-23 2005-10-31 엘지전자 주식회사 Improved earliest-deadline-first scheduling method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8954975B2 (en) 2011-11-08 2015-02-10 Electronics And Telecommunications Research Institute Task scheduling method for real time operating system
KR20130094889A (en) * 2012-02-17 2013-08-27 한국전자통신연구원 Tasks scheduling method for realtime operating system
KR101638136B1 (en) * 2015-05-14 2016-07-08 주식회사 티맥스 소프트 Method for minimizing lock competition between threads when tasks are distributed in multi-thread structure and apparatus using the same
US9778962B2 (en) 2015-05-14 2017-10-03 Tmaxsoft. Co., Ltd. Method for minimizing lock contention among threads when tasks are distributed in multithreaded system and apparatus using the same
US10452432B2 (en) 2016-03-29 2019-10-22 Hyundai Autron Co., Ltd. Method and apparatus for distributing tasks of AUTOSAR operating system
KR20190112600A (en) * 2018-03-26 2019-10-07 현대모비스 주식회사 Embedded system for congestion control of vehicle, congestion control method of vehicle
KR20210022426A (en) * 2019-08-20 2021-03-03 성균관대학교산학협력단 Method and Apparatus for Minimizing Preemption by Splitting Runnable Group of Tasks
US11822967B2 (en) 2019-08-20 2023-11-21 Research & Business Foundation Sungkyunkwan University Task distribution method for minimizing preemption between tasks and apparatus for performing the same

Also Published As

Publication number Publication date
KR101073428B1 (en) 2011-10-17

Similar Documents

Publication Publication Date Title
KR101073428B1 (en) Method for scheduling task in embedded operating system of automobile
US8856196B2 (en) System and method for transferring tasks in a multi-core processor based on trial execution and core node
JP4410661B2 (en) Distributed control system
US8595746B2 (en) Method and apparatus for scheduling tasks to control hardware devices
KR101483994B1 (en) Method and Apparatus for Processing Vehicle Information via Multiple Sensors
JP2008506187A (en) Method and system for parallel execution of multiple kernels
US10572748B2 (en) Autonomous vehicle adaptive parallel image processing system
CN108701055B (en) Vehicle control device and vehicle system
JP2010027062A (en) Distributed control system
JP4241462B2 (en) Control unit and microcomputer
CN115048206B (en) Resource scheduling method and server
JP4985662B2 (en) Program and control device
CN116430738B (en) Self-adaptive dynamic scheduling method of hybrid key system
US20150205635A1 (en) Method and lightweight mechanism for mixed-critical applications
CN112579271A (en) Real-time task scheduling method, module, terminal and storage medium for non-real-time operating system
JP2006273261A (en) Control unit for automobile
CN115248724A (en) Real-time scheduling for heterogeneous multi-core systems
Mishra et al. Dynamic task scheduling on multicore automotive ECUs
JPWO2005013130A1 (en) Real-time control system
JPWO2018211865A1 (en) Vehicle control device
Jaouani et al. Hybrid task and message scheduling in hard real time distributed systems over FlexRay bus
CN115589434B (en) Request processing method, service-oriented system, ECU, vehicle and storage medium
CN111930488A (en) Priority inheritance method and system for task scheduling of operating system
JP7409567B2 (en) Automotive computer control method and vehicle electronic control device
US10251194B2 (en) Efficient scheduling in asynchronous contention-based system

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20141105

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20160405

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20161107

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20170921

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20181001

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20190924

Year of fee payment: 9