Research Article

Task Classification Based Energy-Aware Consolidation in Clouds

Algorithm 2

Assign_Task ( ).
) if
()  for all ,
()   Find a with the lowest CPU utilization;
()    for all , ;
()     Check the number of computation-intensive tasks;
()     Find a having the least number of computation-intensive tasks;
()    end for
()  end for
()  Assign to
() else if
()  for all , ;
()    Find a with the lowest CPU utilization;
()      for all , ;
()        Check the number of tasks;
()        Find a having the least number of tasks;
()      end for
()  end for
()  Assign to ;
() end if