Task scheduling and virtual machine allocation policy in cloud computing environment