Patent ID: 8832695

Claim:
A non-transitory computer-readable storage medium storing a program, the program causing a computer to perform a procedure comprising: producing a first schedule of jobs including ongoing jobs and pending jobs which is to cause a plurality of computing resources to execute the pending jobs while preventing suspension of the ongoing jobs running on the computing resources; producing a second schedule of the jobs which allows the ongoing jobs to be suspended and rescheduled to cause the computing resources to execute the suspended jobs and pending jobs; calculating an advantage factor representing advantages to be obtained by suspending the ongoing jobs, as well as a loss factor representing losses to be caused by suspending the ongoing jobs, based on the first and second schedules that are produced; and choosing either the first schedule or the second schedule, based on a comparison between the advantage factor and loss factor, wherein the calculating includes: calculating the advantage factor from a total difference, between the first schedule and second schedule, of start times of a group of pending jobs scheduled to start earlier in the second schedule than in the first schedule, and calculating the loss factor from a total length of suspension times of the ongoing jobs suspended in the second schedule.