摘要 |
PROBLEM TO BE SOLVED: To attain an appropriate task control in real time of an object of emergency under circumstances which normally change like control of an automobile. SOLUTION: An interruption factor value VAL is given to a priority decision circuit 40 by an interruption request IRQ, a task number and fixed priority to perform the processing, and variable preemption priority in correspondence with situations are stored in an input task register 15, and written in cyclic registers 11 and 12. Contents of the cyclic registers 11 and 12 are read sequentially by a cyclic register control circuit 35, the priority and the preemption priority are added by an adder 16 every task number awaiting processing, and effective priority is calculated. On the other hand, the priority of the task being executed and the preemption priority are read from an execution task register 31, and the effective priority is calculated accordingly. Then, a task of the highest effective priority is selected as an task to be executed. COPYRIGHT: (C)2005,JPO&NCIPI
|