In this paper, an improved particle swarm optimization algorithm based on membrane system about resource scheduling in cloud computing is proposed. The resource scheduling in cloud computing mentioned combines improved particle swarm optimization algorithm and membrane system. The resource space of cloud is simulated as the whole membrane system and is treated as the entire optimization particle swarm search range. The membrane system is divided into the main membranes and the auxiliary membranes. The system optimizes the particles in the auxiliary membranes at the same time, and transfers the particles of high quality to the main membranes. The main membranes removes the inferior particles to achieve the optimal allocation of resources in cloud computing. It illustrates that the algorithm is more efficient in resource scheduling of large-scale tasks in cloud computing compared with other algorithms in the CloudSim platform.