|
Algorithm 1 StealRM. |
|
Require: the flow set F
|
|
Ensure: the scheduling results and
|
| 1: the schedulable transmission set ; |
| 2: for
do
|
| 3: ; |
| 4: sort according to the decreasing order of priorities; |
| 5: for each a from 1 to
do
|
| 6:
|
| 7: if
and
then
|
| 8: ; |
| 9: else
if
and
then
|
| 10: ; |
| 11: else
|
| 12: ; |
| 13: if
and
then
|
| 14: if
t exceeds the deadline of
then
|
| 15: return unschedulable; |
| 16: ; a random channel that is not in ; |
| 17: the next transmission of ; |
| 18: if
and
then
|
| 19: ; |
| 20: else
if
and
then
|
| 21: ; |
| 22: else
|
| 23: ; |
| 24: return
and ; |