| Input: TS = {ts, ts2, …, tsn} ⟶ Tasks set, |
| DLS = {dls1, dls2, …, dlsn} ⟶ Deadlines set, |
| HS = {hs1, hs2, …, hsm} ⟶ Hosts set, |
| VMts = {vm1, vm2, vm3, vm4} ⟶ VM-types set. |
| VMsFree () ⟶ function to check the VM is free |
| HostsFree() ⟶ function to check the VM is free |
| Output: Energy consumed and makespan time |
(1) | Update RQ ← SortedQueueTask (TS, DLS) from Algorithm 2 |
(2) | {Qs, Qt, Qu.} ← CategorizedTask (RQ) from Algorithm 3 |
(3) | for each and every task tkx ∈ TS then do |
(4) | VMsFree () from Algorithm 4 |
(5) | HostsFree () from Algorithm 5 |
(6) | vm ← VMTypeSelection (tsx, VMType(tsx, TS)) from Algorithm 6 |
(7) | h ← HostSelection (vm) from Algorithm 7 |
(8) | Allot tsx to vm which is placed on host h |
(9) | end for loop |
(10) | VMsFree () |
(11) | HostsFree() |