® 嵌入式操作系统 李曦 llxx@ustc.edu.cn
嵌入式操作系统 李曦 llxx@ustc.edu.cn
内容提要 ·嵌入式操作系统概述 -嵌入式操作系统体系结构 一典型的嵌入式操作系统 ·RTOS基本概念 一编程模型 ·RTOS内核功能 ·RTOS的性能指标 llxx@ustc.edu.cn 2/94
内容提要 • 嵌入式操作系统概述 – 嵌入式操作系统体系结构 – 典型的嵌入式操作系统 • RTOS基本概念 llxx@ustc.edu.cn 2/94 – 编程模型 • RTOS内核功能 • RTOS的性能指标
参考书 USTC . Real-Time Concepts for Embedded Systems,2003 -Qing Li,Wind River Systems,Inc.,A lead architect ·目录 Real-Time -5.任务 Concepts -6.信号量 Embedded Systems -7.消息队列 -11.定时器与服务 -12./O子系统 13.内存管理 15.同步与通信机制 -16.常见设计问题 藏入式实时操作系统 ·死锁 uC/0S-l第 ·资源访问控制协议PIP/CPP/PCP ·嵌入式实时操作系统μC/OS-l,第二版,2002 Jean J.Labrosse CHINA-PUB.COM 中=以
参考书 • Real-Time Concepts for Embedded Systems, 2003 – Qing Li,Wind River Systems, Inc., A lead architect • 目录 – 5. 任务 – 6. 信号量 – 7. 消息队列 – 11. 定时器与服务 – 12. I/O子系统 – 13. 内存管理 – 15. 同步与通信机制 – 16. 常见设计问题 • 死锁 • 资源访问控制协议PIP/CPP/PCP • 嵌入式实时操作系统μC/OS-II,第二版,2002 – Jean J. Labrosse
Requirements for Embedded SW Development Increasingly large and complex programs Rapid technological progress and shortened development periods Demand for reduced development cost In Home In Mobile In Offices and Appliances: Devices: Factories: or代bie videog#md Parenal compubars Dio tal appliances DVD rocordersiplayurs Pw男 dustrial roboes Stereo syssams Oi日tlnG准Tn6ta8 PPCs Air conditionen Mobile phoees Telephone sets Veice recorders Fax machines PDAs Home videcgame machines Printers Solar power systems In Automobiles: Car navigation systems ln-vehicle mul年=edlm In Infrastructure: systoms Electronic toll collection Wind power systams systoms Trarspertation Intallcent transport y40绿 与,stoms e
Requirements for Embedded SW Development • Increasingly large and complex programs • Rapid technological progress and shortened development periods • Demand for reduced development cost
操作系统的分类 ·单任务:顺序执行 、 系统内只含有一个程序,独占CPU的运行时间 ·按语句顺序执行该程序。执行完毕,另一程序才启动运行。 ·D0S ·多任务:并发执行 -分时:CPU时间分片,每个时间片执行不同的程序 ·UNIX -优先级:每个程序有不同的优先级,最高优先级者执行 。 通用OS:公平性 嵌入式OS:资源(cpu,mem,time。。。)受限 -RT0S:时间约束 ·FreeRTOS ·单处理器,多处理器,分布式 llxx@ustc.edu.cn 5/94
操作系统的分类 • 单任务:顺序执行 –系统内只含有一个程序,独占CPU的运行时间 • 按语句顺序执行该程序。执行完毕,另一程序才启动运行。 • DOS • 多任务:并发执行 –分时:CPU时间分片,每个时间片执行不同的程序 llxx@ustc.edu.cn 5/94 • UNIX –优先级:每个程序有不同的优先级,最高优先级者执行 • 通用OS:公平性 • 嵌入式OS:资源(cpu,mem,time。。。)受限 –RTOS:时间约束 • FreeRTOS • 单处理器,多处理器,分布式