摘要 |
A microcomputer is put into a sleep mode immediately when tasks become ready for the sleep mode so as to eliminate wasted power. Multiple application tasks are executed. Each application task provides notification regarding entry into sleep-ready state. When any application task provides notification, a status management section program sets a flag indicating that the application task goes to the sleep-ready state. The status management section checks flags of all the application tasks to determine whether all the application tasks go to the sleep-ready state, whereupon the microcomputer is put into the sleep mode.
|