|
Algorithm 3 Allocation priority sequence construction |
Require: the task set , the final task set , the refresh task sequence ; Ensure: the allocation priority sequence ;
-
1:
for to
do
-
2:
for each task in
do
-
3:
if
then
-
4:
Set is the task with the maximum expected finishing time among all the tasks in .
-
5:
Compute the expected finishing time ;
-
6:
Set ;
-
7:
whiledo
-
8:
Find the final task with maximum expected finishing time;
-
9:
Construct the critical task sequence of task ;
-
10:
Set ;
-
11:
Find the task with the lowest level in the critical task sequence of task ;
-
12:
Delete from ;
-
13:
if
then
-
14:
Delete from ;
-
15:
Gather all the rest tasks that have priority relationship with in the sequence ;
-
16:
for each task in
do
-
17:
Set is the task with the maximum expected finishing time among all the tasks in .
-
18:
Compute the expected finishing time ;
-
19:
Add all the rest tasks that have priority relationship with to the back of sequence ;
-
20:
Set ;
|