摘要 |
<p>PROBLEM TO BE SOLVED: To provide a portable radio terminal having an OS(operating system) which can omit the state monitoring operation of a main CPU to be carried out by a sub-CPU and also the control of current consumption of the sub-CPU, can reduce the mounting area and the weight of the portable radio terminal by an extent equivalent to the sub-CPU and can invalidate a SLEEP request if the interrupt processing occurs while a SLEEP control task is started. SOLUTION: In this terminal, a SLEEP mask flag is reset into a storage area of hardware when a SLEEP control task is called (401), the presence or absence of a task under execution is judged (403), a SLEEP request is issued to the hardware if the task is absent (405) and returns to a scheduler (407). If the interrupt processing occurs in a step 402 or 409, even when the SLEEP request is issued to the hardware (405), the request is invalidated at the hardware side since the SLEEP mask flag is set to the storage area of hardware.</p> |