Rtos
Rtos
Rtos
Deterministic
Operations are performed at fixed,
predetermined times or within predetermined
time intervals
Concerned with how long the operating
system delays before acknowledging an
interrupt
Responsiveness
How long, after acknowledgment, it takes the
operating system to service the interrupt
Includes amount of time to begin execution
of the interrupt
Includes the amount of time to perform the
interrupt
User control
User specifies priority
Specify paging
What processes must always reside in main
memory
Disks algorithms to use
Rights of processes
Reliability
Degradation of performance may have
catastrophic consequences
Attempt either to correct the problem or
minimize its effects while continuing to run
Most critical, high priority tasks execute
Rules:
each process has a fixed priority (1 highest);
highest-priority ready process gets CPU;
process continues until done.
Processes
P1: priority 1, execution time 10
P2: priority 2, execution time 30
P3: priority 3, execution time 20
© 2000 Morgan Overheads for Computers as
Kaufman Components
Priority-driven scheduling
example
P3 ready t=18
P2 ready t=0 P1 ready t=15
P2 P1 P2 P3
0 10 20 30 40 50 60
time
© 2000 Morgan Overheads for Computers as
Kaufman Components
The scheduling problem
Scheduling policies:
RMS;
EDF.
Scheduling modeling assumptions.
period i
Pi
computation time Ti
P1 P1 P1 P1 P1
P2 P2 P2
P3 P3
critical
instant
P4
P2 period
P2
P1 period
P1 P1 P1
0 5 10
time
© 2000 Morgan Overheads for Computers as
Kaufman Components
RMS CPU utilization
Collective utilization of processor by i tasks
(where 1<= i <= n) is i Ti / i
Upper bound of utilization for RMS = n(2exp(1/n) - 1)
where n is number of tasks;
As number of tasks approaches infinity, maximum
utilization approaches 69%.
Set of tasks is schedulable of if their collective
processor utilization does not exceed the upper bound.
Efficient implementation:
scan processes;
choose highest-priority active process.
Information used
Ready time
Starting deadline
Completion deadline
Processing time
Resource requirements
Priority
Subtask structure
© 2000 Morgan Overheads for Computers as
Kaufman Components
Two Tasks
Memory
– cache can be flushed and
switched off – write the
memory to the disk and switch it off;
Wireless communications - turn the radio
off if not in use
Thermal management
Battery magement
Driver management
Examples
change from color output to black and
white
speech recognition reduces vocabulary
less resolution or detail in an image
Hardware platform
© 2000 Morgan Overheads for Computers as
Kaufman Components
ACPI global power states