200 likes | 321 Views
Preemptive Behavior Analysis and Improvement of Priority Scheduling Algorithms. Xiaoying Wang Northeastern University China. Introduction 2. Micro scheduling model of ready queue 3. Case study and performance evaluation 4. Conclusion.
E N D
Preemptive Behavior Analysis and Improvement of Priority Scheduling Algorithms Xiaoying Wang Northeastern University China
Introduction 2. Micro scheduling model of ready queue 3. Case study and performance evaluation 4. Conclusion
This Research was supported by National Natural Science Foundation of China grant by 60203011.
Most of embedded real-time systems only deploy necessary resources so that the extra preemption overheads among tasks debase the system performance terribly. Through scheduling process analysis of periodic task, this paper presents the waiting limit formula of each task in ready queue while guarantees its deadline.
In addition, some properties such as final preempt time is deduced and the necessary condition of preemptive behavior of periodic tasks is quantitatively described. Based on them, a micro scheduling preempt model for periodic tasks in ready queue is put forward, which decreases preempt amount and optimizes system performance through change preempt relationship.
The model cannot only decreases preempt amount effectively but enhances processor utilization for static priority scheduling algorithm such as rate monotonic scheduling, which is demonstrated by case study and simulation.
Symbol Definition • n is the total number of tasks in task set; • Q is the ready queue; • τi is the identification of task, 1≤i≤n; • Ci is the worst case computation time of task τi, 1≤i≤n; • Ti is the period of task τi, 1≤i≤n; • Di is the deadline of task τi, 1≤i≤n;
Symbol Definition • Pi is the priority of task τi, a smaller value of Pi denotes a higher priority, 1≤i≤n; • Wi is the accumulate waiting time of taskτi in ready queue, namely the accumulate suspend time, 1≤i≤n; • Ri is the accumulate executing time of task τi in ready queue, 1≤i≤n; • Fi is the phase of task τi, 1≤i≤n.
Theorem • For a give task set of n periodic schedulable tasks, if the Kth execution of the lowest priority task τn postpones ℓnk time and can meet its deadline, then the K+1th execution of task τn can still meet its deadline.
Lemma • For a give task set of n periodic schedulable tasks, if the Kth execution of task τi postpones ℓik time and can meet its deadline, then the K+1th execution of task τi can still meet its deadline.
Case study and performance evaluation • Optimization on static priority scheduling • Optimization on dynamic priority scheduling
RM Sequence Adapting Micro Scheduling Algorithm RM Sequence Adapting Micro Scheduling Algorithm Sequence of EDF Scheduling EDF Sequence Adapting Micro Scheduling Algorithm
Conclusion • The model can not only decrease preempt amount and reduce overheads of real-time systems to a great extent, but improve processor schedulable utilization of static priority scheduling algorithm as well.
Future work • Compute task’s optimum phase offline through optimization algorithm • The longest postponement time of preemption for soft deadline tasks
Thank you for your consideration!