校際選修

115-1 選課時程

進行中

  • 初選第一階段 6/15/2026
  • 初選第二階段 6/22/2026
  • 校際選修 8/24/2026
  • 初選第三階段 8/31/2026
  • 開學後加退選 9/7/2026
  • 逾期加退選 9/21/2026
選課資源

嵌入式即時系統

Real-time and embedded systems

學期
112-2
學分
3 學分
當期課號
535518
永久課號
CSIC30042
開課單位
資訊科學與工程研究所
授課教師
張立平
校區
光復
類別
選修
上課時間表
週二
5
13:20–14:10
嵌入式即時系統
ED202
3 節連堂
6
14:20–15:10
7
15:30–16:20

* 根據陽明交大上課時間表所列

概述

加簽抽籤結果 https://docs.google.com/spreadsheets/d/18Xp3W3yjI-Sj3SyD2PS16SyXNFjykZuiI_2fm0JGvw8/edit?usp=sharing **歡迎大三大四學生修課 (juniors and seniors are welcome) Real-time and embedded systems are mission-oriented, and their software and hardware are often designed with close integration. In addition to functionality correctness, the system must also meet timing requirement, i.e., to respond before the deadline expires. Examples of real-time and embedded systems include Wireless Sensor Network (WSN), Internet-of-Things (IoT) devices, automobile systems, robots, smart healthcare devices, and smartphones (iOS and Android). Insteand of application design, this course is focused on deep analysis of the Real-Time and Embedded Operating Systems (RTOS) kernels and why they are designed this way. Our lecturing will involve two parts: 1) line-by-line, instruction-by-instruction source code analysis of popular real-time kernels and 2) theoretical foundation of the algorithms used in real-time operating systems. In other words, this course covers both the theory and practice of the system-level issues of real-time embedded systems. Different from commodity OS kernels (Linux and Windows), RTOS kernels are compact and small. In other words, you will have the oppurtunity to trace the source code of and enhance the functionality of an RTOS kernel. Specifically, this course will cover the following topics *Embedded processor architecture CPU register design, memory addressing mode, memory layout, timer hardware, and interrupt handling mechanism *RTOS kernel design CPU scheduling algorithms, memory allocation algorithms, priority management, resource synchronization protocol, deadline handling, process management, and kernel data structures. This course will cover two RTOSes, i.e., uC/OS-2 and FreeRTOS *Real-time scheduling theory Fixed-priority scheduling, deadline-driven scheduling, schedulability analysis, periodic/aperiodic task scheduling, bandwidth servers, resource synchronization protocols, priority inversion management, multiprocessor scheduling algorithms, and case studies.

先修科目

Introduction to Operating Systems (undergraduate) Computer Orginzation (undergraduate) You are supposed to be skillful with C

評分方式

Midterm*1 Final*1 Programming assignments (uCOS-2 and FreeRTOS), including the following: Assignment 1: periodic task programming Assignment 2: Earliest-Deadline First implementation Assignment 3: Ceiling-Priority Protocol implementation Bonus assignments: kernel projects for FreeRTOS

週次計畫
週次主題
第 1 週Course introduction. Independent task scheduling: rate-monotonic scheduling, response-time analysis, Liu and Layland utilization bound, Earliest-Deadline First (EDF) scheduling
第 2 週Independent task scheduling: rate-monotonic scheduling, response-time analysis, Liu and Layland utilization bound, Earliest-Deadline First (EDF) scheduling
第 3 週ucOC-2: getting started, programming exampleucOC-2: real-time systems concept
第 4 週ucOS-2: kernel structures, task management
第 5 週ucOS-2: x86 architecure, x86 port, Lab 1 orientation (periodic task)
第 6 週Lab 1: periodic task
第 7 週Resource synchronization protocol: non-preemptible critical section, priority-inheritance protocol, deadlocks
第 8 週Resource synchronization protocol: Highest-Locker protocol, Priority Ceiling Protocol (PCP), Stack-Resource Protocol (SRP)Lab 2 (EDF implementation) orientation
第 9 週Lab 2: EDF implementation
第 10 週ucOS-2: semaphores and mutexes, priority inheritance protocol implementationLab 3 (highest-locker protocol) orientation
第 11 週Midterm
第 12 週Lab 3: Highest-Locker Protocol
第 13 週Aperiodic task scheduling: polling servers, Sporadic Servers (SS)
第 14 週Aperiodic task scheduling: Constant Utilization Servers (CUS) and Total Bandwidth Servers (TBS)
第 15 週Multiprocessor Scheduling
第 16 週FreeRTOS case study: MSP430 processor structure, kernel structures, scheduler design
第 17 週FreeRTOS: context switch, timer interrupt handling, process scheduling algorithm.Bonus project due.
第 18 週Final and FreeRTOS project due
教科書

Real-Time Systems, Jane W.S. Liu MicroC/OS-II: The Real-Time Kernel, Jean Labrosse FreeRTOS: Online documentation and source code

Office Hours
地點
EC705
時間
Please send email to make an appointment.
聯絡方式
lpchang@cs.nycu.edu.tw