摘要 |
<p>PROBLEM TO BE SOLVED: To provide an operating system capable of reducing power consumption. SOLUTION: After task scheduling is executed (S110), when any task in a ready state or running state is not present (S120: NO), the shortest residual time until alarm ignition being the factor of the transition of the task from a suspended state to the ready state is not less than a throw-out possible time (S130: YES), the clock of a CPU is topped, and a low power consumption mode is set in the throw-out time shorter than the residual time (S140). Then, the supply of the clock is resumed, and a normal operation mode is restored after the lapse of the throw-out time set in a wakeup timer or according to the generation of external interruption. When the factor of restoration is the external interruption (S160: external interruption), the half time of the throw-out time is added to the system clock (S180). On the other hand, when the factor of restoration is the expiration of the throw-out time (S160: expiration), the throw-out time is added to the system clock (S170).</p> |