摘要 |
PROBLEM TO BE SOLVED: To accurately realize time management on an RTOS simulator without receiving influence of a load of a general-purpose OS, and to prevent impartment of an unnecessary load to the general-purpose OS when an RTOS comes into an idle state. SOLUTION: First, a process relative time timer function generating a signal every prescribed time on the basis of a CPU assignment time is started in time of a start. A tick is realized by the signal. Next, when issuing a system call wherein a user task itself transits to a waiting state, it is decided whether a task switch from the normal user task to an idle task occurs, and if so, a real-time timer function generating the signal every prescribed time on the basis of real time is changed over to ON. When the signal simulating an interrupt is generated, it is decided whether the task switch from the idle task to the normal user task occurs after each interrupt handler processing completion, and it so the process relative time timer function is newly changed over to ON. COPYRIGHT: (C)2006,JPO&NCIPI
|