CloudletSchedulerSpaceShared

public class CloudletSchedulerSpaceShared extends CloudletSchedulerAbstract

CloudletSchedulerSpaceShared implements a policy of scheduling performed by a virtual machine to run its Cloudlets. It considers there will be only one Cloudlet per VM. Other Cloudlets will be in a waiting list. It also considers that the time to transfer Cloudlets to the Vm happens before Cloudlet starts executing. I.e., even though Cloudlets must wait for CPU, data transfer happens as soon as Cloudlets are submitted.

This scheduler does not consider Cloudlets priorities to define execution order. If actual priorities are defined for Cloudlets, they are just ignored by the scheduler.

Author:Rodrigo N. Calheiros, Anton Beloglazov, Manoel Campos da Silva Filho

Methods

canExecuteCloudletInternal

protected boolean canExecuteCloudletInternal(CloudletExecution cloudlet)

The space-shared scheduler does not share the CPU time between executing cloudlets. Each CPU (Pe) is used by another Cloudlet just when the previous Cloudlet using it has finished executing completely. By this way, if there are more Cloudlets than PEs, some Cloudlet will not be allowed to start executing immediately.

Parameters:
Returns:

{@inheritDoc}

cloudletResume

public double cloudletResume(Cloudlet cloudlet)