real time systems Flashcards
what is a real time process
a process that delivers results of processing in a given time span
what is a real time system
a system where its correctness is based on the correct result but also on time
deadline
the latest acceptable time for a process to complete
soft real time
deadlines can be broken
hard real time
deadlines are critical
e.g. embedded/control systems
what is real time scheduling driven by
events and deadlines
periodic events
predictable e.g. clock
aperiodic events
unpredictable; expected but not sure when
why do we require admission control
to ensure that we dont take on too much work so everything can be done before their deadline
ensures that resources are never being used more that 100% (including overhead)
what is the rate of periodic tasks
1/period
what two things do we need to check when carrying out periodic tasks
the processing time must be < the process deadline
the total processing time per cycle must be < the period
what are the two types of preemptive real time schedulers
rate monotonic (rm)
earliest deadline first (edf)
rate monotonic
assumes the processes have the same amount of work each cycle
fixed repeating schedule for worst case
the priority is inversely proportional to work required: more frequent = higher priority
how does rate monotonic have a fixed repeating schedule
fixed priority: priority assigned once based on its period and never changes
tasks with shorter periods and higher frequency always have a higher priority than those with longer periods
repeating pattern: since tasks are periodic they always execute at fixed time intervals therefore the schedule is predictable