摘要 |
PROBLEM TO BE SOLVED: To accelerate the processing speed of saving and return in a register when system call or interruption is caused during task management processing, especially, task execution. SOLUTION: When system call or interruption is generated during task execution, only the contents of a register which is being used by the task among a plurality of registers owned by a CPU are saved(pushed) in the stack of the task which is being executed (S1). Afterwards, request processing such as system call or the decision of the next execution task is executed (S2 to S9), and then the contents of the register to be used for the task to be executed the next are loaded from the stack of the task to be executed the next to the corresponding register of the CPU (S5, S8). Thus, only the contents of not all the registers but the register to be used are saved/loaded so that the processing quantity can be reduced, and the high speed operation of processing can be achieved. Also, a push instruction and a pop instruction wherein the number of clocks required for processing is smaller than that of a data moving instruction are used, so that the processing speed can be accelated. COPYRIGHT: (C)2004,JPO
|