Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Topics Covered
What is Real Time Operating System (RTOS)
Microkernal Functions:
Multitasking Scheduling Interrupt Service Code Shared Code and Reentrancy Intertask Communications Applications for VxWorks
2
Types of RTOS
Hard RTOS
Soft RTOS
3
Message queues
Memory management
4
VxWorks OS as RTOS
Layer Structure
Real-Time Embedded Application Internet File System
WindNet Networking
Core OS: Wind Microkernal
6
Multitasking
P R
S
Suspended used primarily for debugging
10
Common Function
comFun(yourData){
}
Task2( ){ .. comFun(myData2) }
myData2
11
12
13
Memory
2.
Access SharData
SharData
3.
Access SharData
14
Semaphores
Semaphore - mechanism for mutual exclusion and intertask communication. Binary Semaphore
Semaphore available YES Task cont. Semaphore taken NO TimeOut= No_Wait YES Task cont. Semaphore not taken
15
NO
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
17
Navigation systems
Deep sea instrumentation Traffic control systems
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