Wireless Communications and Mobile Computing / 2018 / Article / Alg 1

Research Article

Dynamic Service Request Scheduling for Mobile Edge Computing Systems

Algorithm 1

Dynamic Service Request Scheduling (DSRS).
1:  In the beginning of each time slot , observe the current queue length .
2:  for all    do
3:  Set auxiliary variable ;
4:  Set ;
5:  for all    do
6:  Calculate the penalty factor ;
7:  if    then
8:  ;
9:  end if
10: end for
11: for all    do
12: if  then
13: Set ;
14: else
15: Set ;
16: end if
17: end for
18: end for