Research Article
An Energy-Aware Task Offloading Mechanism in Multiuser Mobile-Edge Cloud Computing
Algorithm 2
Reverse Auction-Based Offloading Algorithm for Offloading Decisions.
Input: , , η. | Output: Offloading decision . | 1: Set the temporary set ; | 2: while do | 3: Select the device i, where , ; | 4: for channel to M do | 5: Update the data transmission rate and update , as in (4) and (9); | 6: if then | 7: Calculate the bid density of each channel j based on the 2-tuple ; | 8: Set the bid density ; | 9: while do | 10: Select the channel j, where ; | 11: if && then | 12: Let ; | 13: ; | 14: else | 15: Let ; | 16: end if | 17: ; | 18: end while | 19: else | 20: Let ; | 21: end if | 22: end for | 23: | 24: end while |
|