摘要 |
PROBLEM TO BE SOLVED: To reduce thread switching time in multithreading.SOLUTION: In multithread processing, a program is executed while switching threads by cores in a multi-core CPU. A detection unit 21 detects a thread to be switched to standby state, on the basis of execution state of threads in execution. A specifying unit 22 specifies position information of a command estimated to be executed hereafter in the thread to be switched, on the basis of a command being executed or executed in the past in the thread to be switched, detected by the detection unit 21. A rewrite unit 23 rewrites a part of a program indicated by the position information of the command specified by the specifying unit 22, with an instruction for switching the thread.SELECTED DRAWING: Figure 3 |