What are the factors to be considered to assign the priority for the tasks?
Here, I am using
- Time for Execution(Approximate)
- File Size
- Output size
- No of processing elements(PEs) needed for execution.
- Amount of storage space
You can use
time for execution as the main parameter or the
output size to assign priority for the tasks.
The tasks with high output size and the execution time will get higher priority.
Now, also assign priority to the available VMs according to its remaining resource(CPU, RAM, MIPS) where more available resource will get high priority.
Now, you can assign the task with high priority to the VM with high priority.