1: Input: Let be the accepted tasks in the |
βready queue, and let be the expected execution time of |
β. Let current time be and let be the task currently |
βbeing executed, expected execution time of is . Let |
βthe expected utility density threshold be . |
2: |
3: if A new task, that is, arrives then |
4: βAccept if ; |
5: βReject if ; |
6: βRemove in the ready queue end if ; |
7: end if |
8: |
9: If is completed then |
10: βChoose with the largest system utility density, that is, |
βββ. |
11: βRemove in the ready queue if ; |
12: end if |
13: |
14: If = the critical time of ββthen |
15: βAbort immediately; |
16: βChoose with the largest system utility density, that is, |
β. |
17: βRemove in the ready queue if ; |
18: end if |