没有合适的资源?快使用搜索试试~ 我知道了~
RTOSRTOSRTOSRTOSRTOSRTOSRTOSRTOSRTOS
资源推荐
资源详情
资源评论
(/(&&/$66127(6
,1752'8&7,21725($/7,0(
23(5$7,1*6<67(06
E\
5REHUW%HW]
(Copyright 2000, 2001)
Department of Electrical and Computer
Engineering
University of Newcastle, Australia
Acknowledgements
The following notes have been compiled from a number of sources and from personal experi-
ence. The first versions of the notes were largely based on Associate-Professor Peter Moylan’s
notes titled “The Design of Real-time Software, Class Notes for ELEC370”.
Contact details
The author of these notes can be contacted as follows:
Associate Professor R.E. Betz,
Department of Electrical and Computer Engineering
University of Newcastle, Callaghan, NSW, 2308,
Australia.
Phone: +61-2- 4921-6091
FAX: +61-2-4921-6993
email: reb@ecemail.newcastle.edu.au
http://www.ee.newcastle.edu.au/users/staff/reb/
i
Table of Contents
Chapter 1 INTRODUCTION TO OPERATING SYSTEMS ....1-1
References .........................................................................................................................1-1
What is an Operating system? ...........................................................................................1-1
What is Multi-programming? ...........................................................................................1-2
Why were Multi-programming Systems Developed? ....................................................... 1-2
Definition of an Operating System ...................................................................................1-2
Types of Operating Systems .............................................................................................1-3
Some more definitions – Processors, Programs and Tasks ...............................................1-4
Hierarchical Structure of Operating Systems. ..................................................................1-5
A digression – the role of interrupts in Operating Systems. .............................................1-6
What is an interrupt? ....................................................................................................1-6
Why are interrupts crucial to Operating Systems? .......................................................1-6
Example: Producer-Consumer Problem .......................................................................1-8
Chapter 2 PRINCIPLES OF SOFTWARE DESIGN ...................2-1
Problems with Real Time Design .....................................................................................2-2
Some Suggestions on Program Structure .......................................................................... 2-3
The efficiency trap ............................................................................................................2-4
Chapter 3 OVERVIEW OF MULTI-TASKING ................................. 3-1
Coroutines .........................................................................................................................3-1
Tasks .................................................................................................................................3-3
Anatomy of an Operating System Kernel ......................................................................... 3-4
The Dispatcher .............................................................................................................3-4
Synchronization Primitives ..........................................................................................3-5
Protected and Non-protected Operating Systems .............................................................3-5
Brief Discussion of Memory Management .................................................................. 3-6
Brief Discussion of Supervisor Mode .......................................................................... 3-6
Chapter 4 SEMAPHORES ............................................................................4-1
Basic Concepts .................................................................................................................. 4-1
Wait and Signal .................................................................................................................4-2
Semaphores as Resource Counters ...................................................................................4-5
Task Synchronization ........................................................................................................4-6
Consumer-Producer Problem Revisited ............................................................................4-7
More Complex Synchronization Problems .....................................................................4-10
Multiple unit resource allocation ...............................................................................4-10
Dining philosophers problem .....................................................................................4-11
Readers and Writers problem .....................................................................................4-12
Variations on the semaphore ...........................................................................................4-15
Logic semaphores .......................................................................................................4-15
Timed semaphores, sleeping tasks and simulated task suspension ............................4-16
剩余491页未读,继续阅读
资源评论
zeroliu2012
- 粉丝: 0
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功