2

Is there any way to find out number of cloudlet on VM in cloudsim?

ly0905
  • 41
  • 2

1 Answers1

1

There's a method getVmId() of Class Cloudlet which gives you the ID of VM on which cloudlet would be scheduled.

cloudlet.getVmId()

Returns: VM Id or -1 if the Cloudlet was not assigned to a VM

By setting counter you can count number of cloudlets running on particular VM.

Chanda Korat
  • 2,453
  • 2
  • 19
  • 23