Unit 4 RTOS
Unit 4 RTOS
The wind kernel supplies semaphores as the basic task synchronization and
mutual-exclusion mechanism. There are several kinds of semaphores in wind,
specialized for different application needs: binary semaphores, counting
semaphores, mutual-exclusion semaphores, and POSIX semaphores.
All of these semaphore types are fast and efficient. In addition to being
available to application developers, they have also been used extensively in
building higher-level facilities in VxWorks.
For intertask communications, the wind kernel also supplies message queues,
pipes, sockets, and signals. d low interrupt latency.
What is Real Time ?
• Scheduling
– Uses preemptive priority with round robin scheduling to
accommodate for both
• Real time processes
• Non-real time processes
VxWorks (contd..)
• Memory Protection
– MMU based memory protection.
• C++ and Ada are the next more popular for large
projects.
POSIX Y N N Y N
support
Scalable Y Hard to scale beyond Y Scalable upto 8 N
target platform CPUs
•Memory management system is a collection of hardware and software procedures for managing programs in memory.
•Features of MMU are:-
1.
A facility that maps logical memory references to physical memory addresses.
2.
A provision of sharing common programs stored in memory by different users.
3.
Protection of information against un-authorised access between users.
Virtual Memory
VIRTUAL MEMORY
Give the programmer the illusion that the system has a very
large memory, even though the computer actually has a
relatively small main memory
Address Space(Logical) and Memory Space(Physical)
address space memory space
address
virtual Mapping
address physical address
(logical
address generated by programs
address) actual main memory address