Question: Consider three dependent tasks T1 ,T2 , and T3 . The tasks T2 and T3 have access to a shared resource R. In order to
Consider three dependent tasks T1 ,T2 , and T3 . The tasks T2 and T3 have access to a shared resource R. In order to describe this task set with the critical sections of task T1 and T3 , we add new parameters that specify the computation time ci as follows: cx : task duration before entering the critical section, cy : critical section duration, cz : task duration after the critical section. x y z O f course, we have ci = ci + ci +ci . So the task set is described by the parameters given in the following table. As we know, each task in a critical section can be preempted by a higher priority task which does not need this resource. Task (Ti) ci pi cix ciy ciz T1 4 16 4 0 0 T2 4 12 2 2 0 T3 8 24 0 8 0 Answer the following: 1. Construct the schedule obtained under the RMS algorithm. Indicate at what point priority inversion occurs. 2. In order to prevent this priority inversion, apply priority inheritance protocol. Construct the schedule obtained using RMS algorithm with priority inheritance protocol enabled.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
