Multitasking operating system capable of reducing power consumption and vehicle electronic control unit using same
First Claim
1. A computer readable medium containing an operating system for controlling operation of a central processing unit (CPU) of a microcomputer, comprising:
- first means for managing a plurality of tasks, wherein said plurality of tasks are switched among a running state, a ready state and a third state including at least one of a waiting state and a suspended state; and
second means for switching said CPU to a low-power-consumption (LPC) mode if there is no task in the running state and no task in the ready state,wherein the switching of said CPU to the LPC mode is determined based on a predetermined allowable minimum time length of the LPC mode and an amount of time left before a task in the third state is switched to the ready state if the task is in the third state and the amount of time left before the task is switched to the ready state is known,wherein a duration of the LPC mode is set so as to be shorter than said amount of time left before the task in the third state is switched to the ready state.
1 Assignment
0 Petitions
Accused Products
Abstract
A real time operating system (RTOS) for a vehicle electronic control unit (ECU) switches the CPU of the vehicle ECU to a low-power-consumption (LPC) mode, if there is no task in a running state and no task in a ready state and the time left before a task in a suspended state is switched to the ready state is longer than a predetermined allowable minimum duration of the LPC mode. Duration of the LPC mode is set to a length shorter than the time left before a task in the suspended state is switched to the ready state. When an interrupt occurs or the duration of the LPC mode expires, the CPU is switched to a normal mode and temporary suspension of the system clock during the LPC mode is compensated for using the duration of the LPC mode.
-
Citations
10 Claims
-
1. A computer readable medium containing an operating system for controlling operation of a central processing unit (CPU) of a microcomputer, comprising:
-
first means for managing a plurality of tasks, wherein said plurality of tasks are switched among a running state, a ready state and a third state including at least one of a waiting state and a suspended state; and second means for switching said CPU to a low-power-consumption (LPC) mode if there is no task in the running state and no task in the ready state, wherein the switching of said CPU to the LPC mode is determined based on a predetermined allowable minimum time length of the LPC mode and an amount of time left before a task in the third state is switched to the ready state if the task is in the third state and the amount of time left before the task is switched to the ready state is known, wherein a duration of the LPC mode is set so as to be shorter than said amount of time left before the task in the third state is switched to the ready state. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A computer readable medium containing a computer program for implementing an operating system on a microcomputer, said computer program causing a central processing unit (CPU) of said microcomputer to-perform a method of:
-
managing a plurality of tasks by switching said plurality of tasks among a running state, a ready state and a third state including at least one of a waiting state and a suspended state; and switching said CPU to an low-power-consumption (LPC) mode if there is no task in the running state and no task in the ready state, wherein the switching of said CPU to the LPC mode is determined based on a predetermined allowable minimum time length of the LPC mode and an amount of time left before one of the plurality of tasks in the third state is switched to the ready state, if the one of the plurality of tasks is in the third state and if the amount of time left before the task is switched to the ready state is known, and wherein a duration of the LPC mode is set so as to be shorter than said amount of time left before the task in the third state is switched to the ready state.
-
-
7. An electronic control unit for a vehicle comprising:
-
a central processing unit (CPU); and an operating system for controlling operation of said CPU, said operating system including; first means for managing a plurality of tasks, wherein said plurality of tasks are switched among a running state, a ready state and a third state including at least one of a waiting state and a suspended state; and second means for switching said CPU to an low-power-consumption (LPC) mode if there is no task in the running state and no task in the ready state, wherein the switching of said CPU to the LPC mode is determined based on a predetermined allowable minimum time length of the LPC mode and an amount of time left before one of the plurality of tasks in the third state is switched to the ready state, if the one of the plurality of tasks is in the third state and if the amount of time left before the task is switched to the ready state is known, and wherein a duration of the LPC mode is set so as to be shorter than said amount of time left before the task in the third state is switched to the ready state.
-
-
8. A method for switching a central processing unit (CPU) to an low-power-consumption (LPC) mode in a microcomputer in which said CPU executes a program that includes a plurality of tasks, said method comprising the steps of:
-
scheduling said plurality of tasks by switching said plurality of tasks among a running state, a ready state and a third state including at least one of a waiting state and a suspended state; and switching said CPU to the LPC mode if there is no task in the running state and no task in the ready state, wherein said switching step includes the step of switching said CPU to the LPC mode based on a predetermined allowable minimum time length of the LPC mode and an amount of time left before a task in the third state is switched to the ready state, if the task is in the third state and if the amount of time left before the task is switched to the ready state is known; and setting a duration of the LPC mode so as to be shorter than said amount of time left before the task in the third state is switched to the ready state. - View Dependent Claims (9)
-
-
10. A computer-readable medium containing instructions associated with an operating system capable of being implemented on a microcomputer having a central processing unit (CPU), said instructions readable by said CPU, said instructions for causing said CPU to:
-
manage a plurality of tasks by switching said plurality of tasks among a running state, a ready state, and a third state including one of a waiting state and a suspended state; and switch said CPU to a low-power-consumption (LPC) mode if none of the plurality of tasks are in the running state and none of the plurality of tasks are in the ready state, wherein the switching of the CPU to the LPC mode is determined based on a predetermined allowable minimum time length of the LPC mode and an amount of a time left before a task in the third state is switched to the ready state, if the task is in the third state and the time left before the task is switched to the ready state is known, wherein a duration of the LPC mode is set so as to be shorter than said amount of time left before the task in the third state is switched to the ready state.
-
Specification