19.4 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005Overview of Real-Time Systems specified deadline period.. 19.8 Silberschatz, Galvin and Gag
Trang 1Chapter 19: Real-Time Systems
Trang 219.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
Chapter 19: Real-Time Systems
Trang 319.3 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
Objectives
Trang 419.4 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
Overview of Real-Time Systems
specified deadline period
system (I.e automobile, airliner.)
results in case of failure
completed within their required deadlines
non real-time tasks
Trang 519.5 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
Trang 619.6 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
System-on-a-Chip
(SOC) strategy
attached peripheral ports (I.e USB) to be contained in a single integrated circuit
Trang 719.7 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
Bus-Oriented System
Trang 819.8 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
Features of Real-Time Kernels
standard desktop system
hardware that what is typically available in a real-time system
Trang 919.9 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
Virtual Memory in Real-Time Systems
addresses
Trang 1019.10 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
Address Translation
Trang 1119.11 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
Implementing Real-Time
Operating Systems
(1) Preemptive, priority-based scheduling
(2) Preemptive kernels
(3) Latency must be minimized
Trang 1219.12 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
Minimizing Latency
when it is serviced
Trang 1319.13 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
Interrupt Latency
at the CPU to when it is serviced
Trang 1419.14 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
Dispatch Latency
to stop one process and start another
Trang 1519.15 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
Real-Time CPU Scheduling
■ p is the duration of the period
■ d is the deadline by when the process must be serviced
■ t is the processing time
Trang 1619.16 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
Trang 1719.17 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
Rate Montonic Scheduling
Trang 1819.18 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
Missed Deadlines with Rate Monotonic Scheduling
Trang 1919.19 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
Earliest Deadline First Scheduling
the earlier the deadline, the higher the priority;
the later the deadline, the lower the priority
Trang 2019.20 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
Proportional Share Scheduling
■ T shares are allocated among all processes in the system.
processor time
Trang 2119.21 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
Pthread Scheduling
(1) SCHED_FIFO - threads are scheduled using a FCFS strategy with a FIFO queue There is no time-slicing for threads of equal priority
(2) SCHED_RR - similar to SCHED_FIFO except time-slicing occurs for threads of equal priority
Trang 2219.22 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
VxWorks 5.0
Trang 2319.23 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005
Wind Microkernel
(1) Processes and threads;
(2) preemptive and non-preemptive round-robin scheduling;
(3) manages interrupts (with bounded interrupt and dispatch latency times);
(4) shared memory and message passing interprocess communication facilities
Trang 24End of Chapter 19