Patent ID: 9563465
Date: 2017-02-07
CPC Classifications: G06F

Claim:
1. A multi-task scheduling method comprising: assigning a first thread and at least one fourth thread to a first processor, alternatively, for execution during a first time slice; detecting a second thread that is executed after the first thread; calculating based on a load of a processor that is assigned a third thread that generates the second thread, a first time that lasts until a start of the second thread; calculating a second time that lasts until completion of execution of the first thread; and changing the first time slice to a second time slice when the second time is greater than the first time, the first time slice and the second time slice being intervals for alternating the first thread and the at least one fourth thread, the second time slice being longer than the first time slice, and the second time slice being calculated based on the processing time of the first thread and based on a number of times the first thread is executed until completion.