Research Article

An Energy-Saving Task Scheduling Model via Greedy Strategy under Cloud Environment

Algorithm 2

TWD-CTCG.
Input: Tasks of ,VMs of
Output: Total energy consumption of cloud computing
 SortTask(Tasks,);
 SortVM(VMs,);
 foreach do :
  foreach do :
   ⟵ ComputeTime;
⟵0;
 foreach do :
  foreach do :
   if ( and
) do :
   ;
   ;
   endif;
  endfor;
 endfor;
⟵ SchedulVmTask ;
Output: