REAL TIME OPERATING SYSTEMS
Lesson-11:
Basic Design using an Real Time
Operating System
2008 Chapter-8 L11: "Embedded Systems - Architecture, Programming 1
and Design" , Raj Kamal, Publs.: McGraw-Hill, Inc.
1. Basic Design
2008 Chapter-8 L11: "Embedded Systems - Architecture, Programming 2
and Design" , Raj Kamal, Publs.: McGraw-Hill, Inc.
RTOS
An embedded system with a single CPU can
run only one process at an instance.
The process at any instance may either be
an ISR, or kernel function or task
2008 Chapter-8 L11: "Embedded Systems - Architecture, Programming 3
and Design" , Raj Kamal, Publs.: McGraw-Hill, Inc.
RTOS
Provides running the user threads in kernel
space so that they execute fast.
Provides effective handling of the ISRs,
device drivers, ISTs, tasks or threads
Disabling and enabling of interrupts in user
mode critical section code
Provides memory allocation and de-
allocation functions in fixed time and
blocks of memory
2008 Chapter-8 L11: "Embedded Systems - Architecture, Programming 4
and Design" , Raj Kamal, Publs.: McGraw-Hill, Inc.
RTOS
Provides for effectively scheduling and
running and blocking of the tasks in cases
of number of many tasks
I/O Management with devices, files,
mailboxes, pipes and sockets becomes
simple using an RTOS
provides for the uses of Semaphore (s) by
the tasks or for the shared resources
(cCritical sections) in a task or OS functions
2008 Chapter-8 L11: "Embedded Systems - Architecture, Programming 5
and Design" , Raj Kamal, Publs.: McGraw-Hill, Inc.
RTOS
Effective management of the multiple
states of the CPU and, internal and
external physical or virtual devices
2008 Chapter-8 L11: "Embedded Systems - Architecture, Programming 6
and Design" , Raj Kamal, Publs.: McGraw-Hill, Inc.
Summary
2008 Chapter-8 L11: "Embedded Systems - Architecture, Programming 7
and Design" , Raj Kamal, Publs.: McGraw-Hill, Inc.
We learnt
• RTOS is an OS for effective real time
scheduling of the concurrent processes
• User priority allocations
• Preemptive scheduling
• Fixed memory blocks allocation and de-
allocation
• IPCs
2008 Chapter-8 L11: "Embedded Systems - Architecture, Programming 8
and Design" , Raj Kamal, Publs.: McGraw-Hill, Inc.
End of Lesson 11 of Chapter 8
2008 Chapter-8 L11: "Embedded Systems - Architecture, Programming 9
and Design" , Raj Kamal, Publs.: McGraw-Hill, Inc.