Research Article
On-Line Real-Time Service-Oriented Task Scheduling Using TUF
Algorithm 3
Preemption checking.
1: input: Let be the task currently being executed, and | β be the task wants to preempt , current time be , | β be the conditional expected utility density of | βat time , be the expected utility density of , | β and are the expected execution time of and , | respectively; | 2: | 3:When a new task arrives or it is the preemption checking | βpoint | 4: If then | 5: βCheck what is βs worst case finish time; | 6: βIf then | 7: ββPreemption not allowed; | 8: βelse | 9: ββPreemption allowed; | 10: βend if | 11: end if |
|