Resource schedule Strategy is the core technology of cloud computing. PSO algorithm is one of dynamic adaptation resource scheduling algorithms to cloud computing. The virtual machines and the hosts can be scheduled reasonable by adjusting parameters. The resource can be scheduled quickly because of the dynamic trend calculation of PSO algorithm, to ensure real-time of the Cloud Calculation.