Documente Academic
Documente Profesional
Documente Cultură
Microkernal Functions:
Multitasking Scheduling Interrupt Service Code Shared Code and Reentrancy Intertask Communications Applications for VxWorks
2
Message queues
Memory management
4
WindNet Networking
Core OS: Wind Microkernal
6
R
S
Suspended
Round-robin scheduling
Preemption locks
8
Limitations of ISR
Shared Code
tasks.
Reentrancy Techniques:
Dynamic Stack Variables
10
Common Function
comFun(yourData){
}
Task2( ){ .. comFun(myData2) }
myData2
11
Guarded Global and Static Variables Mutual-exclusion mechanism - only one task at a time can be in a critical section of the code. Task Variables Four byte variables are added to the task context block (TCB).
12
Types of Intertask Communications: Shared Data Message Queue Pipes - Virtual I/0 Network Intertask Communication Sockets Remote Procedure Call
13
Tasks
1. Access SharData
Memory
2.
Access SharData
SharData
3.
Access SharData
14
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.
15
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
16
NO
Counting Semaphore
Timeout
Time the task is willing to wait (time in ticks) in pended state. If time > timeout, ERROR occurs.
17
18
www.google.com
19