CPE 746 CPE 746-
- Embedded Real
Embedded Real-
- Time
Time Systems Systems-
- Fall 06
CPE 746- -Embedded Real Embedded Real- -Time Time CPE 746 - - PowerPoint PPT Presentation
CPE 746- -Embedded Real Embedded Real- -Time Time CPE 746 Systems- - Fall 06 Fall 06 Systems Types of RTS Types of RTS Done By : Mohammed Al Afifi Mohammed Ismail Supervised By : Dr. Lo : Dr. Lo ai Tawalbeh ai Tawalbeh
Most RTOSs RTOSs today control the execution of application softw are today control the execution of application softw are tasks by using priority based pre tasks by using priority based pre-
em ptive scheduling.
I n this approach, softw are developers assign a num eric “ “priority priority” ” value to each task in their application softw are. value to each task in their application softw are.
The RTOS RTOS’ ’s s task scheduler w ill allow tasks to run, and w ill sw itch task scheduler w ill allow tasks to run, and w ill sw itch am ong the tasks. am ong the tasks.
the highest priority task that is ready to run, should alw ays be the the task that is actually running. task that is actually running.
if a relatively low priority task is running and a higher priority task ty task becom es ready becom es ready – – the scheduler m ust im m ediately stop the low the scheduler m ust im m ediately stop the low priority task ( even in m id priority task ( even in m id-
execution) and allow the higher priority task to begin to run im m ediately task to begin to run im m ediately
W hen the higher priority task is done, the low priority task is s allow ed to continue running allow ed to continue running – – from the point at w hich it w as from the point at w hich it w as stopped. stopped.
Task X to run before Task Y, even if Task Y norm ally has higher priority
a value called “laxity”, w here laxity = ( task deadline - task execution tim e) .
“play w ith” before causing the task to fail to m eet its deadline.
all tasks, it finds the task w ith the sm allest current value of laxity – and that is the task that needs to be scheduled to run next.
Three configurations of RTS are studied:
Foreground/ Background System s
Non Preem ptive “ “Cooperative Cooperative” ” Multitasking Multitasking
Preem ptive Multitasking
Som e of Scheduling algorithm s are studied:
Priority Based Pre-
emptive
EDF – – earliest deadline first scheduling earliest deadline first scheduling
LL – – least laxity scheduling least laxity scheduling
MUF – – maximum urgency first scheduling. maximum urgency first scheduling.