Rtes Lab Assignments
Rtes Lab Assignments
Instruction :
Each one of you Choose any two from the following questions and solve using cheddar
simulation software and intrepet the output and upload the same.
Q1
For the task graph show below show that a priority driven schedule with non-preemption will
produce a better schedule than priority driven schedule with pre-emption
All tasks are aperiodic with a deadline of 12. All tasks except for J5 release at 0. J5 releases at
4. The priority of jobs is such that J1 has a higher priority when compared to J2 has a higher
priority when compared to J3 and so on. The scheduling is done on a processor which has dual
identical cores with jobs migratable at any point in time.
Q2
Show that the following tasks table is schedulable using EDF on a mono-core processor, if pre-
emption is allowed but is not schedulable if pre-emption is not allowed. All tasks are aperiodic.
J1 J2 J3
r 0 2 4
e 3 6 4
d 10 14 12
Q3
Show that the following tasks table is schedulable using LLF but not using EDF on a dual-core
processor. All tasks are aperiodic.
J1 J2 J3
r 0 0 0
e 1 1 5
d 1 2 5
Q4
Show that the following tasks table causes indeterminism due to the execution time – when
scheduled using EDF. All tasks are periodic
R d e
J1 0 10 5
J2 0 10 2-6
J3 4 15 8
J4 0 20 10
Q5
Show that the following tasks are not schedulable using either EDf/LLF on a tri-core processor.
All tasks are periodic and preemptable. Migration is not possible between a Job.
A B C D E
0 0 0 0 0
e 1 1 1 6 6
p 2 2 2 8 8
Q6
For the following Task set and scheduling algorithms – submit the screen shot of the schedule
generated by Cheddar – with proper interpretations and conclusions regarding the schedule
generated.
Q7
Q8.
Create a scheduler uf.sc that will assign highest static priority to task with the least CPU
utilization and compare it against the behaviour of a rate monotonic scheduler for any task set
example from class or from your textbook.
Q9
Create a scheduler critical.sc that will schedule a task that is critical immediately, else it uses
RMS and compare it against the behavior of a rate monotonic scheduler for the following task
set. If there are multiple critical tasks – then RMS is applied within them. Under what
circumstances will this scheduler work better than RMS – show such a task set example.
Q10
We consider two periodic tasks, synchronous and with deadline on request : tasks T1 and T2.
They are defined as follow:
Q11
We consider two periodic tasks, synchronous, with deadline on request: tasks T1 and T2.
They are defined as follow:
We investigate now another scheduling policy: LLF (Least Laxity First). This policy selects
the task to run amoung the ready tasks according to a dynamic priority called 'laxity'. Li(t),
the laxity of a task i at time t can be computed by Li(t)= Deadline - remaining(t) where
remaining(t) is the remaining capacity of the task at time t.
Q12
We now see a Cheddar model with two shared resources. We assume two periodic tasks with
the following parameters :
• T1 needs R1 from the 2nd unit of time of its capacity upto the 8th (included).
• T2 needs R1 from the 6th unit of time of its capacity upto the 8th (included).
• T1 needs R2 from the 4th unit of time of its capacity upto the 8th (included).
• T2 needs R2 from the 2nd unit of time of its capacity upto the 8th (included).
We also assume that both R1 and R2 apply PIP (Priority Inheritance Protocol).