Professional Documents
Culture Documents
4
Group A3:
Wafa Jaffal
Kathryn Bean
Topics Covered
What is Real Time Operating System (RTOS)
Standard for RTOS
VxWorks Features as RTOS
Layer Structure
Microkernal Functions:
Multitasking
Scheduling
Interrupt Service Code
Shared Code and Reentrancy
Intertask Communications
Applications for VxWorks
Types of RTOS
Hard RTOS
Soft RTOS
Queued signals
Semaphore
Scheduling
Message queues
Memory management
VxWorks OS as RTOS
Layer Structure
Real-Time Embedded Application
Graphics
Java Support
Multiprocessing
Internet
POSIX Library
File System
WindNet Networking
Core OS:
Wind Microkernal
Multitasking
P
S
Suspended used primarily for debugging
10
Task Stacks
Common Function
myData1
comFun(myData1)
}
comFun(yourData){
}
Task2( ){ ..
comFun(myData2)
}
myData2
11
12
Intertask Communications,
One CPU
Types of Intertask Communications:
Shared Data
Message Queue
Pipes - Virtual I/0
Network Intertask Communication
Sockets
Remote Procedure Call
13
Intertask Communication,
Shared Data
Tasks
1.
Access SharData
2.
Access SharData
3.
Access SharData
Memory
SharData
14
Semaphores
Semaphore - mechanism for mutual exclusion and intertask
communication.
Binary Semaphore
Semaphore
available
YES
NO
TimeOut=
No_Wait
NO
Task is
pended for
timeOut
YES
Task cont.
Task cont.
Semaphore
taken
Semaphore
not taken
15
Semaphores, Continued
Counting Semaphore
Every time is semaphore is given count ++
Every time is semaphore is taken count - If count=0, task that tried to take semaphore is blocked
If semaphore is given and task is blocked, task is
unblocked
Is semaphore is given and no tasks are
blocked, count ++
Special Semaphore Option (Not in POSIX)
Timeout
Time the task is willing to wait (time in ticks) in pended
state. If time > timeout, ERROR occurs.
16
Intertask Communication,
Message Queue
Allows a variable number of messages to be queued
Any task or ISR can send a message to a queue.
Multiple tasks can send and receive from the same
message queue.
Timeout Parameter:
Send message: how long to wait for buffer space
to place message.
Receive message: how long to wait to obtain
message.
17
Printers
Digital cameras
Navigation systems
Hand-held computing
devices
Modems
any systems where rigid time requirement have been
placed on the operation of a processor or the flow of the data.
18
Thank You
Any Questions ?
19
Bibliography
VxWorks 5.4 Programmer Guide
20