Research Article

An Energy-Aware Task Offloading Mechanism in Multiuser Mobile-Edge Cloud Computing

Algorithm 1

The Algorithm for classifying the mobile device and priority determination.
Initialization:
Mobile IoT device set: ;
Wireless channel set: ;
The task on mobile IoT device: ;
Transmission power of mobile IoT device: , ;
Idle power of mobile IoT device: , ;
Categorized device sets: ;
Priority set: ;
1: for mobile device to N do
2:  for channel to M do
3:  calculate the exclusive channel data transfer rate of each mobile device as in (11), and the energy consumption as in (12);
4:  if then
5:   ;
6:  else
7:   ;
8:   ;
9:   end if
10:  end for
Output:
The categorized device set: , ;
The priority set for the devices , .