Professional Documents
Culture Documents
Vxworks 5.4: Group A3: Wafa' Jaffal Kathryn Bean
Vxworks 5.4: Group A3: Wafa' Jaffal Kathryn Bean
4
Group A3:
Wafa Jaffal
Kathryn Bean
1
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 2
What is Real Time OS
(RTOS)
RTOS Characteristics
Processing must be done within a time constraint or the
system will fail.
All delays in the system will be bounded; from the retrieval of
stored data to the time RTOS finishes the request.
Types of RTOS
Hard RTOS
Soft RTOS
3
Standard for RTOS
Standard requirement for RTOS
POSIX 1003.1b by ISO/IEEE chapter.
POSIX interfaces:
Semaphore Scheduling
Memory management
4
VxWorks OS as RTOS
5
Layer Structure
WindNet Networking
Core OS:
Wind Microkernal
6
Multitasking
P R D
S
Suspended used primarily for debugging
Preemption locks
These locks prevent task context switching, but do not
prevent interrupt handling.
8
Interrupt Service Code
Via interrupts, the system is informed of external
events.
10
Shared Code and
Reentrancy, Continued
Dynamic Stack Variables
Task1( ){ .. myData1
comFun(myData1)
} comFun(yourData){
}
Task2( ){ ..
comFun(myData2)
myData2
}
11
Shard Code and
Reentrancy, Continued
Task Variables
Four byte variables are added to the task context
block (TCB).
12
Intertask Communications,
One CPU
Types of Intertask Communications:
Shared Data
Message Queue
13
Intertask Communication,
Shared Data
Tasks Memory
1. Access SharData
3. Access SharData
14
Semaphores
Semaphore - mechanism for mutual exclusion and intertask
communication.
Binary Semaphore
NO NO Task is
Semaphore TimeOut= pended for
available No_Wait timeOut
YES YES
Timeout Parameter:
Send message: how long to wait for buffer space
to place message.
Receive message: how long to wait to obtain
message.
17
Applications for VxWorks
Some usage of RTOS
19
Bibliography
20