Professional Documents
Culture Documents
Objectives
To Understand Why we need O.S
To Identify type of O.S To Define Real Time System To Classify Real Time System To Understand What is RTOS Components of RTOS To Know Secrets what makes an O.S as RTOS How to Choose RTOS
(c) Telecommunications Consultants India Limited 2
Small
RTX-51
Large
Unix,Win-NT
Multitask
RTX-51
I/o Device
Smaller O.S
Application Interface
Scheduler Dispatcher Interrupt.Handler
CPU
I/O Devices
Multitask O.S
-An
Instance Of Program in execution is called Process/task. -Capability Of O.S to Perform More Task at a time. -Ability of O.s to Support Two or more Concurrent process in execution simultaneously. -O.S Switches from task to task.
-Two Types
a. Cooperative
(c) Telecommunications Consultants India Limited
b. Preemptive.
7
Embedded OS
Why is a desktop OS not suited? Monolithic kernel is too feature reach.Monolithic
kernel is not modular, fault tolerant,configurable,Modifiable
10
11
13
RTOS Kernel
RTOS Kernel provides an Abstraction layer that
hides from application software the hardware details of the processor / set of processors upon which the application software shall run.
Application Software
RTOS
Hardware
(c) Telecommunications Consultants India Limited 15
16
Tasks Tasks Scheduler Interrupt Service routine Semaphores Mutexes Mailboxes Massage Queues Pipes Timers Signals
17
Tasks :
Tasks of API (As Function Loop) it has name ,ID,Priority & Task Control Block
Tasks Of O.S (Startup, Exception handling,Logging ,messages etc..) Reentrant Function calls(Data Does not Corrupt) Non Reentrant function call (Data Corrupts) May Require to intercommunicate with each other.
Context Switching
18
Task states
Run: A task enters this state as it starts executing on the processor Ready: State of those tasks that are ready to execute but cannot be
Idle:
A periodic job enters this state when it completes its execution and has to wait for the beginning of the next period
(c) Telecommunications Consultants India Limited 19
Task Management
-- Scheduling Algorithms
First in First Out Round Robin Algorithm Round Robin With Priority Shortest Job First Non Preemptive Preemptive Multitasking
20
Task Scheduling
Non Real -time systems usually use Non-preemptive
Scheduling
Once a task starts executing, it completes its full execution
21
Higher Priority = Higher Need for Quick Response. Follows nested preemption
22
23
If messages are sent more quickly than they can be handled, the
OS provides message queues for holding the messages until they can be processed.
24
Pipes
-Simple Communication Channel that takes data from one task to other -It Performs operation in one direction only.
Message Queue
- It allows message transfer from one task to other
25
Message passing in OS
Most General Purpose OS actually copy messages twice as they
transfer them from task to task via a message queue.
Message
RAM
Message RAM
26
RAM
msg_ptr msg_ptr
RTOS
27
-Multiprocessor support.
-Extended services such as network support.
-Standard/POSIX.
-Language support
(c) Telecommunications Consultants India Limited 29
Any Questions?
Thank You !