Due to the defect that requirement of speed for digital image generation of celestial background cant be met in time, a algorithm of celestial background is proposed, which is accelerated by multi-cores processor. First of all, clarify principle of confusion in generating digital image of celestial background is expounded, confusion effect of celestial background based on center-attenuated function of two-dimension Gauss model is modeled and simulated. Then, confusion effect generation algorithm is proposed based on multi-core processors generating and integrating sub-picture on multi-core processor. On the condition of different counts of stars, accelerated-ratio with parallel algorithm based on multi-core processors compared is analyzed by serial algorithm based on single core. Ultimately, confusion effect generation algorithm based on multi-core processors is applied to meet requirement of generating images in time in spatial detecting system of stimulation.