[go: up one dir, main page]

JP2002073354A - Task control device and task contol method - Google Patents

Task control device and task contol method

Info

Publication number
JP2002073354A
JP2002073354A JP2000258439A JP2000258439A JP2002073354A JP 2002073354 A JP2002073354 A JP 2002073354A JP 2000258439 A JP2000258439 A JP 2000258439A JP 2000258439 A JP2000258439 A JP 2000258439A JP 2002073354 A JP2002073354 A JP 2002073354A
Authority
JP
Japan
Prior art keywords
task
deadline
execution
tasks
occurrences
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2000258439A
Other languages
Japanese (ja)
Inventor
Satoshi Suga
智 須賀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2000258439A priority Critical patent/JP2002073354A/en
Publication of JP2002073354A publication Critical patent/JP2002073354A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a device and method for improving stability of an overall real time system by reducing occurrence of deadline mistake of a task. SOLUTION: A processing division 9 for a missed deadline adds '1' to the number of times deadline mistakes have occurred on the task, stored in a task control information storage division 8 when a deadline mistake occurs at the first to fourth task 11a-11d, and implements processing of a deadline handler by a corresponding handler out of the first to fourth deadline handler 12a-12d. A task scheduler division 10, based on priority of implementation for each task stored in the task control information storage division 8 and number of times of deadline mistakes have occurred, moves up the task which has missed a deadline in the past, in the implementation order, and decides which task to implement next.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、実行動作に時間
的な制約のある複数のタスクのスケジューリングや実行
を制御するリアルタイムマルチタスクオペレーティング
システムによるタスク制御装置とタスク制御方法に関す
る。
[0001] 1. Field of the Invention [0002] The present invention relates to a task control device and a task control method using a real-time multitasking operating system for controlling the scheduling and execution of a plurality of tasks whose execution operations have time constraints.

【0002】[0002]

【従来の技術】従来のタスク制御装置とタスク制御方法
(例えば、特開平11−184717号,特開平8−2
72627号,特開平8−55036号の各公報を参
照)におけるリアルタイムオペレーティングシステムに
よるリアルタイムタスクの制御では、リアルタイムタス
クの実行がデッドライン時刻まで実行したときにデッド
ラインミスを検出し、デッドラインハンドラ処理を実行
していた。
2. Description of the Related Art Conventional task control apparatuses and task control methods (for example, Japanese Patent Application Laid-Open Nos. 11-184717 and 8-2).
In the control of the real-time task by the real-time operating system in JP-A-72627 and JP-A-8-55036), when the execution of the real-time task is executed up to the deadline time, a deadline miss is detected and the deadline handler processing is performed. Was running.

【0003】上記デッドライン時刻とは、タスクが動作
を完了させるまでの予め設定された所定時間であり、上
記デッドラインミスとは、タスクが予め設定された所定
時間までに動作を終了しなかったことであり、上記デッ
ドラインハンドラ処理とは、タスクのデッドラインミス
が発生したときに実行するエラー復旧処理である。
[0003] The deadline time is a preset predetermined time until the task completes the operation, and the deadline miss is a task in which the operation does not end by the predetermined time. That is, the deadline handler process is an error recovery process executed when a deadline miss occurs in a task.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来の
タスク制御装置とタスク制御方法では、デッドラインミ
スをしたタスクが終了せずに再び連続して定期時間毎に
動作する場合、そのタスクは再びデッドラインミスをす
る可能性が高く、リアルタイムタスクシステム全体が不
安定になるという問題があった。
However, in the conventional task control device and task control method, if a task that has made a deadline miss continues to operate at regular time intervals without terminating, the task becomes dead again. There is a high possibility that a line mistake is made, and the entire real-time task system becomes unstable.

【0005】この発明は上記の課題を解決するためにな
されたものであり、タスクのデッドラインミスする頻度
を低下させることにより、リアルタイムシステム全体の
安定性の向上を図ることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and has as its object to improve the stability of the whole real-time system by reducing the frequency of task deadline misses.

【0006】[0006]

【課題を解決するための手段】この発明は上記の目的を
達成するため、それぞれ所定時間までに動作を完了させ
る制約を持つ複数のタスクの実行を制御するタスク制御
手段を備えたタスク制御装置において、上記各タスクに
対する実行優先度とそれぞれの所定時間までに動作を終
了しなかったデッドラインミスの発生回数とからなるタ
スク制御情報を格納するタスク制御情報格納手段と、上
記各タスクのデッドラインミスが発生したときにそれぞ
れのエラー復旧処理であるデッドラインハンドラ処理を
実行するデッドラインハンドラ処理実行手段と、上記タ
スク制御情報格納手段に格納された各デッドラインミス
の発生回数をそれぞれ対応するタスクにデッドラインミ
スが発生する度に加算し、上記デッドラインハンドラ処
理実行手段によってデッドラインミスを起こしたタスク
に対応するデッドラインハンドラ処理を実行させるデッ
ドラインミス発生時制御手段と、上記タスク制御情報格
納手段に格納された各タスクに対する実行優先度とデッ
ドラインミスの発生回数とに基づいて過去にデッドライ
ンミスを起こしたタスクほど実行順を繰り上げるように
して次に実行するタスクを決定する実行タスク決定制御
手段を設けたものである。
SUMMARY OF THE INVENTION In order to achieve the above object, the present invention relates to a task control apparatus provided with task control means for controlling execution of a plurality of tasks each having a constraint to complete an operation by a predetermined time. A task control information storage unit for storing task control information including execution priority for each of the tasks and the number of occurrences of a deadline miss whose operation has not been completed by a predetermined time; and a deadline miss for each of the tasks. A deadline handler process executing means for executing a deadline handler process which is an error recovery process when an error occurs, and the number of occurrences of each deadline miss stored in the task control information storage means to a corresponding task. Each time a deadline miss occurs, the value is incremented by the deadline handler process execution means. A deadline miss occurrence control means for executing a deadline handler process corresponding to the task in which the deadline miss has occurred; execution priority and the number of deadline miss occurrences for each task stored in the task control information storage means; , An execution task determination control means for determining a task to be executed next by increasing the execution order of tasks in which a deadline miss has occurred in the past.

【0007】また、それぞれ所定時間までに動作を完了
させる制約を持つ複数のタスクの実行を制御するタスク
制御手段を備えたタスク制御装置において、上記各タス
クに対する実行優先度とそれぞれのタスク実行中の割り
込み処理による中断回数とからなるタスク制御情報を格
納するタスク制御情報格納手段と、上記タスク制御情報
格納手段に格納された各中断回数をそれぞれ対応するタ
スクが中断されるたびに加算する中断回数加算手段と、
上記タスク制御情報格納手段に格納された各タスクに対
する実行優先度と中断回数とに基づいて過去により多く
中断されたタスクほど実行順を繰り上げるようにして次
に実行するタスクを決定する実行タスク決定制御手段を
設けるとよい。
Further, in a task control device provided with task control means for controlling execution of a plurality of tasks each having a constraint to complete an operation by a predetermined time, an execution priority for each of the tasks and Task control information storage means for storing task control information comprising the number of interruptions due to interrupt processing, and interruption number addition for adding each interruption number stored in the task control information storage means each time the corresponding task is interrupted Means,
Execution task determination control for determining a task to be executed next by increasing the execution order of tasks that have been interrupted more in the past based on the execution priority and the number of interruptions for each task stored in the task control information storage means Means may be provided.

【0008】さらに、上記のようなタスク制御装置にお
いて、上記中断回数に基づいてタスクの割り込み禁止レ
ベルを上げるように設定する割り込み禁止レベル設定制
御手段を設けるとよい。
Further, in the above-described task control device, it is preferable to provide an interrupt prohibition level setting control means for setting so as to raise the interrupt prohibition level of the task based on the number of interruptions.

【0009】また、それぞれ所定時間までに動作を完了
させる制約を持つ複数のタスクの実行を制御するタスク
制御手段を備えたタスク制御装置において、上記各タス
クに対する実行優先度とそれぞれのタスク実行中に行わ
れたタスクスイッチング回数とからなるタスク制御情報
を格納するタスク制御情報格納手段と、上記タスク制御
情報格納手段に格納された各タスクスイッチング回数を
それぞれ対応するタスクの実行中にタスク切り換えが発
生するたびに加算するタスクスイッチング回数加算手段
と、上記タスク制御情報格納手段に格納された各タスク
に対する実行優先度とタスクスイッチング回数とに基づ
いて過去のタスク実行中に頻繁にタスク切り換えが起こ
ったタスクほど実行順を繰り上げるようにして次に実行
するタスクを決定する実行タスク決定制御手段を設ける
とよい。
Also, in a task control device provided with task control means for controlling execution of a plurality of tasks each having a constraint to complete an operation by a predetermined time, an execution priority for each of the tasks and a time during execution of each task. Task control information storage means for storing task control information including the number of task switching operations performed, and task switching occurs during execution of a task corresponding to each task switching frequency stored in the task control information storage means. A task switching frequency adding means for adding each time, and a task in which task switching has frequently occurred during past task execution based on the execution priority and the task switching frequency for each task stored in the task control information storage means. Decide the next task to execute by moving up the execution order That may be provided to perform the task determination control means.

【0010】さらに、上記のようなタスク制御装置にお
いて、上記タスクスイッチング回数に基づいてタスク実
行レベルを上げるように設定するタスク実行レベル設定
手段を設けるとよい。
Further, in the above-described task control device, it is preferable to provide a task execution level setting means for setting the task execution level to be increased based on the task switching count.

【0011】また、それぞれ所定時間までに動作を完了
させる制約を持つ複数のタスクの実行を制御するタスク
制御手段を備えたタスク制御装置において、上記各タス
クに対する実行優先度とそれぞれの所定時間までに動作
を終了しなかったデッドラインミスの発生回数と予め関
連づけられた他のタスクとのグループ識別情報とからな
るタスク制御情報を格納するタスク制御情報格納手段
と、上記各タスクのデッドラインミスが発生したときに
それぞれのエラー復旧処理であるデッドラインハンドラ
処理を実行するデッドラインハンドラ処理実行手段と、
上記タスク制御情報格納手段に格納された各デッドライ
ンミスの発生回数をそれぞれ対応するタスクにデッドラ
インミスが発生する度に加算し、上記デッドラインハン
ドラ処理実行手段によってデッドラインミスを起こした
タスクとそのタスクと同じグループ識別情報を持つタス
クとにそれぞれ対応するデッドラインハンドラ処理を実
行させるデッドラインミス発生時制御手段を設けるとよ
い。
Also, in a task control device provided with task control means for controlling execution of a plurality of tasks each having a constraint to complete an operation by a predetermined time, an execution priority of each of the tasks and a predetermined time by the predetermined time Task control information storage means for storing task control information including the number of occurrences of deadline misses whose operations have not been completed and group identification information with other tasks associated in advance, and occurrence of deadline misses in each of the above tasks A deadline handler process executing means for executing a deadline handler process which is an error recovery process when
The number of occurrences of each deadline miss stored in the task control information storage means is added to the corresponding task each time a deadline miss occurs, and the task in which the deadline miss has occurred by the deadline handler processing execution means It is preferable to provide a deadline miss occurrence control means for executing a deadline handler process corresponding to the task and a task having the same group identification information.

【0012】さらに、上記のようなタスク制御装置にお
いて、上記タスク制御情報格納手段に格納されたデッド
ラインミスの発生回数を加算するとき、その発生回数に
対応するグループ識別情報と同じグループ識別情報を持
つデッドラインミスの発生回数をも同時に加算するグル
ープ内デッドラインミス発生回数同時加算手段を設ける
とよい。
Further, in the above-described task control device, when the number of occurrences of the deadline miss stored in the task control information storage means is added, the same group identification information as the group identification information corresponding to the number of occurrences is added. It is preferable to provide a means for simultaneously adding the number of deadline miss occurrences within the group, which simultaneously adds the number of deadline miss occurrences possessed.

【0013】また、それぞれ所定時間までに動作を完了
させる制約を持つ複数のタスクの実行を制御するタスク
制御手段を備えたタスク制御装置において、上記各タス
クに対する実行優先度とそれぞれの所定時間までに動作
を終了しなかったデッドラインミスの発生回数と予め関
連づけられた他のタスクを示す識別情報とからなるタス
ク制御情報を格納するタスク制御情報格納手段と、上記
各タスクのデッドラインミスが発生したときにそれぞれ
のエラー復旧処理であるデッドラインハンドラ処理を実
行するデッドラインハンドラ処理実行手段と、上記タス
ク制御情報格納手段に格納された各デッドラインミスの
発生回数をそれぞれ対応するタスクにデッドラインミス
が発生する度に加算し、上記デッドラインハンドラ処理
実行手段によってデッドラインミスを起こしたタスクと
該タスクに対応する識別情報によって示されるタスクと
にそれぞれ対応するデッドラインハンドラ処理を実行さ
せるデッドラインミス発生時制御手段を設けるとよい。
Further, in a task control device provided with task control means for controlling execution of a plurality of tasks each having a constraint to complete an operation by a predetermined time, an execution priority of each of the tasks and a predetermined time by the predetermined time Task control information storage means for storing task control information including the number of occurrences of deadline misses whose operations have not been completed and identification information indicating another task associated in advance, and a deadline miss has occurred in each of the tasks. A deadline handler process executing means for executing a deadline handler process which is an error recovery process, and the number of occurrences of each deadline miss stored in the task control information storage means is assigned to the corresponding task. Is added every time the deadline handler process execution means Ddorainmisu may be provided a deadline miss occurs when the control unit to execute the deadline handler process corresponding respectively to the task indicated by the task identification information corresponding to the task that caused the.

【0014】さらに、上記のようなタスク制御装置にお
いて、上記タスク制御情報格納手段に格納されたデッド
ラインミスの発生回数を加算するとき、その発生回数に
対応する識別情報によって示されるタスクのデッドライ
ンミスの発生回数をも同時に加算する他タスクデッドラ
インミス発生回数同時加算手段を設けるとよい。
Further, in the above task control device, when the number of occurrences of the deadline miss stored in the task control information storage means is added, the deadline of the task indicated by the identification information corresponding to the number of occurrences is added. It is preferable to provide another task deadline miss occurrence count simultaneous addition means for simultaneously adding the number of miss occurrences.

【0015】また、それぞれ所定時間までに動作を完了
させる制約を持つ複数のタスクの実行を制御するタスク
制御方法において、上記各タスクに対する実行優先度と
それぞれの所定時間までに動作を終了しなかったデッド
ラインミスの発生回数とからなるタスク制御情報を格納
し、その格納された各デッドラインミスの発生回数をそ
れぞれ対応するタスクにデッドラインミスが発生する度
に加算すると共に、デッドラインミスを起こしたタスク
に対応するデッドラインハンドラ処理を実行し、上記格
納された各タスクに対する実行優先度とデッドラインミ
スの発生回数とに基づいて過去にデッドラインミスを起
こしたタスクほど実行順を繰り上げるようにして次に実
行するタスクを決定するとよい。
Further, in the task control method for controlling the execution of a plurality of tasks each having a constraint to complete the operation by a predetermined time, the execution priority of each of the tasks and the operation are not terminated by the predetermined time. Task control information consisting of the number of deadline miss occurrences is stored, and the stored number of deadline miss occurrences is added each time a deadline miss occurs in the corresponding task, and a deadline miss occurs. The deadline handler process corresponding to the task executed is executed, and based on the execution priority and the number of occurrences of the deadline miss for each of the stored tasks, the task in which the deadline miss occurred in the past is advanced in the execution order. To determine the next task to execute.

【0016】さらに、それぞれ所定時間までに動作を完
了させる制約を持つ複数のタスクの実行を制御するタス
ク制御方法において、上記各タスクに対する実行優先度
とそれぞれのタスク実行中の割り込み処理による中断回
数とからなるタスク制御情報を格納し、その格納された
各中断回数をそれぞれ対応するタスクが中断されるたび
に加算し、上記格納された各タスクに対する実行優先度
と中断回数とに基づいて過去により多く中断されたタス
クほど実行順を繰り上げるようにして次に実行するタス
クを決定するとよい。
Further, in the task control method for controlling the execution of a plurality of tasks each having a constraint to complete the operation by a predetermined time, the execution priority of each of the tasks, the number of interruptions caused by interrupt processing during execution of each task, and The task control information is stored, and the stored number of interruptions is added each time the corresponding task is interrupted. Based on the execution priority and the number of interruptions for each of the stored tasks, the number of interruptions is increased in the past. The task to be executed next may be determined such that the interrupted task is advanced in the execution order.

【0017】さらにまた、上記のようなタスク制御方法
において、上記中断回数に基づいてタスクの割り込み禁
止レベルを上げるように設定するとよい。
Further, in the above-described task control method, it is preferable that the interrupt inhibition level of the task is set to be raised based on the number of interruptions.

【0018】また、それぞれ所定時間までに動作を完了
させる制約を持つ複数のタスクの実行を制御するタスク
制御方法において、上記各タスクに対する実行優先度と
それぞれのタスク実行中に行われたタスクスイッチング
回数とからなるタスク制御情報を格納し、その格納され
た各タスクスイッチング回数をそれぞれ対応するタスク
の実行中にタスク切り換えが発生するたびに加算し、上
記格納された各タスクに対する実行優先度とタスクスイ
ッチング回数とに基づいて過去のタスク実行中に頻繁に
タスク切り換えが起こったタスクほど実行順を繰り上げ
るようにして次に実行するタスクを決定するとよい。
In a task control method for controlling the execution of a plurality of tasks each having a constraint to complete an operation by a predetermined time, the execution priority of each of the tasks and the number of task switching performed during the execution of each task Is stored, and the stored task switching counts are added each time task switching occurs during execution of the corresponding task, and the execution priority and task switching for each of the stored tasks are stored. Based on the number of times, the task to be executed next may be determined in such a manner that the task that has been frequently switched during the past task execution is advanced in the execution order.

【0019】さらに、上記のようなタスク制御方法にお
いて、上記タスクスイッチング回数に基づいてタスク実
行レベルを上げるように設定するとよい。
Further, in the above-described task control method, it is preferable that the task execution level is increased based on the number of task switching.

【0020】また、それぞれ所定時間までに動作を完了
させる制約を持つ複数のタスクの実行を制御するタスク
制御方法において、上記各タスクに対する実行優先度と
それぞれの所定時間までに動作を終了しなかったデッド
ラインミスの発生回数と予め関連づけられた他のタスク
とのグループ識別情報とからなるタスク制御情報を格納
し、その格納された各デッドラインミスの発生回数をそ
れぞれ対応するタスクにデッドラインミスが発生する度
に加算し、デッドラインミスを起こしたタスクとそのタ
スクと同じグループ識別情報を持つタスクとにそれぞれ
対応するデッドラインハンドラ処理を実行するとよい。
Further, in the task control method for controlling the execution of a plurality of tasks each having a constraint to complete the operation by a predetermined time, the execution priority of each of the tasks and the operation are not terminated by the predetermined time. It stores task control information consisting of the number of occurrences of deadline misses and group identification information with other tasks associated in advance, and stores the number of occurrences of each stored deadline miss in the corresponding task. It is preferably added each time a deadline miss occurs, and deadline handler processes corresponding to the task in which the deadline miss has occurred and the task having the same group identification information as the task are executed.

【0021】さらに、上記のようなタスク制御方法にお
いて、上記格納されたデッドラインミスの発生回数を加
算するとき、その発生回数に対応するグループ識別情報
と同じグループ識別情報を持つデッドラインミスの発生
回数をも同時に加算するとよい。
Further, in the above task control method, when the stored number of occurrences of the deadline miss is added, the occurrence of the deadline miss having the same group identification information as the group identification information corresponding to the number of occurrences is added. The number of times may be added at the same time.

【0022】また、それぞれ所定時間までに動作を完了
させる制約を持つ複数のタスクの実行を制御するタスク
制御方法において、上記各タスクに対する実行優先度と
それぞれの所定時間までに動作を終了しなかったデッド
ラインミスの発生回数と予め関連づけられた他のタスク
を示す識別情報とからなるタスク制御情報を格納し、そ
の格納された各デッドラインミスの発生回数をそれぞれ
対応するタスクにデッドラインミスが発生する度に加算
し、デッドラインミスを起こしたタスクとそのタスクに
対応する識別情報によって示されるタスクとにそれぞれ
対応するデッドラインハンドラ処理を実行するとよい。
Further, in the task control method for controlling the execution of a plurality of tasks each having a constraint to complete the operation by a predetermined time, the execution priority of each of the tasks and the operation are not terminated by the predetermined time. Stores task control information including the number of occurrences of deadline misses and identification information indicating another task that has been associated in advance, and stores the number of occurrences of each of the stored deadline misses in the corresponding task. The deadline handler process may be performed for each of the tasks in which the deadline miss has occurred and the task indicated by the identification information corresponding to the task.

【0023】さらに、上記のようなタスク制御方法にお
いて、上記格納されたデッドラインミスの発生回数を加
算するとき、その発生回数に対応する識別情報によって
示されるタスクのデッドラインミスの発生回数をも同時
に加算するとよい。
Further, in the task control method as described above, when the stored number of occurrences of the deadline miss is added, the number of occurrences of the deadline miss of the task indicated by the identification information corresponding to the number of occurrences is also calculated. It is good to add at the same time.

【0024】[0024]

【発明の実施の形態】以下、この発明の実施形態を図面
に基づいて具体的に説明する。図1は、この発明の一実
施形態であるリアルタイムタスク制御装置の構成を示す
ブロック図である。
Embodiments of the present invention will be specifically described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a real-time task control device according to one embodiment of the present invention.

【0025】このリアルタイムタスク制御装置は、CP
U,ROM,RAM等からなるマイクロコンピュータに
よって実現されるソフトウェアシステムであり、マルチ
タスクに対応したリアルタイムオペレーティングシステ
ム1と、そのリアルタイムオペレーティングシステム1
によって制御及び実行される複数個のタスクである第1
タスク11a,第2タスク11b,第3タスク11c,
第4タスク11dと、第1〜第4タスク11a〜11d
にそれぞれ対応する第1デッドラインハンドラ12a,
第2デッドラインハンドラ12b,第3デッドラインハ
ンドラ12c,第4デッドラインハンドラ12dとから
なる。
This real-time task control device has a CP
A software system realized by a microcomputer including U, ROM, RAM, etc., a real-time operating system 1 corresponding to multitasking and a real-time operating system 1
The first is a plurality of tasks controlled and executed by
Task 11a, second task 11b, third task 11c,
Fourth task 11d and first to fourth tasks 11a to 11d
, The first deadline handlers 12a,
It comprises a second deadline handler 12b, a third deadline handler 12c, and a fourth deadline handler 12d.

【0026】上記第1〜第4タスク11a〜11dに
は、それぞれタスクID1〜4が割り当てられている。
Task IDs 1 to 4 are assigned to the first to fourth tasks 11a to 11d, respectively.

【0027】リアルタイムオペレーティングシステム1
は、CPUの内部的及び外部的な割り込みや異常時など
での処理を行う例外処理部2と、メモリ,セマフォなど
のハードウェアとソフトウェア的な資源を管理する資源
管理部3と、オペレーティングシステムでの特別なルー
チンをタスクから要求された時に実行するシステムコー
ル処理部4と、ハードウェアを動作させる各種のドライ
バである第1ドライバ部5a,第2ドライバ部5b,第
3ドライバ部5cとタスクを制御するタスク制御部6な
どからなる。
Real-time operating system 1
Is an exception processing unit 2 for performing internal and external interrupts and abnormal processing of the CPU, a resource management unit 3 for managing hardware and software resources such as a memory and a semaphore, and an operating system. A system call processing unit 4 for executing a special routine when requested by a task, a first driver unit 5a, a second driver unit 5b, and a third driver unit 5c which are various drivers for operating hardware. It consists of a task control unit 6 for controlling.

【0028】さらに、タスク制御部6は、第1〜第4タ
スク11a〜11dの実行時間を計測する時間管理部7
と、第1〜第4タスク11a〜11dのタスク制御情報
を格納するタスク制御情報格納部8と、時間管理部7に
よって実行中のタスクがタスク制御情報格納部8に登録
されたデッドライン時刻(所定時間)を越えてしまった
場合、同じくタスク制御情報格納部8に登録されたアド
レスに基づいて対応するデッドラインハンドラ、すなわ
ち第1〜第4デッドラインハンドラ12a〜12dを実
行するデッドライン超過処理部9と、時間管理部7によ
る所定時間単位にまたは各タスクが実行待ちとなった場
合に、第1〜第4タスク11a〜11dの中から次に実
行するタスクを決定して実行させるスケジューリング処
理を行うタスクスケジューラ部10とからなる。
Further, the task control unit 6 includes a time management unit 7 for measuring the execution time of the first to fourth tasks 11a to 11d.
A task control information storage unit 8 for storing task control information of the first to fourth tasks 11a to 11d; and a deadline time when a task being executed by the time management unit 7 is registered in the task control information storage unit 8 ( If the time exceeds the predetermined time, the deadline handler corresponding to the address registered in the task control information storage unit 8, ie, the first to fourth deadline handlers 12a to 12d, is executed. A scheduling process for determining the next task to be executed from among the first to fourth tasks 11a to 11d and executing the task in a predetermined time unit or when each task is waiting to be executed by the unit 9 and the time management unit 7 And a task scheduler unit 10 for performing

【0029】このリアルタイムタスク制御装置は、上記
のように構成し、過去にデッドラインミスしたタスクに
対して、デッドラインミス以降での実行で再びデッドラ
インミスする頻度を低下させ、リアルタイムシステム全
体の安定性の向上を図っている。
This real-time task control device is configured as described above, and reduces the frequency of deadline misses in the execution of the tasks after the deadline miss again for the tasks that have made a deadline miss in the past. Improving stability.

【0030】すなわち、上記リアルタイムオペレーショ
ンシステム1が、この発明に係わるタスク制御手段の機
能を果たす。また、上記タスク制御情報格納部8が、こ
の発明に係わるタスク制御情報格納手段の機能を果た
す。
That is, the real-time operation system 1 functions as the task control means according to the present invention. Further, the task control information storage section 8 functions as a task control information storage means according to the present invention.

【0031】さらに、上記第1〜第4デッドラインハン
ドラ12a〜12dと上記デッドライン超過処理部9
が、この発明に係わるデッドラインハンドラ処理実行手
段とデッドラインミス発生時制御手段の機能を果たす。
上記デッドライン超過処理部9はまた、この発明に係わ
る中断回数加算手段とタスクスイッチング回数加算手段
とグループ内デッドラインミス発生回数同時加算手段と
他タスクデッドラインミス発生回数同時加算手段の機能
も果たす。
Further, the first to fourth deadline handlers 12a to 12d and the deadline excess processing unit 9
Perform the functions of the deadline handler processing execution means and the deadline miss occurrence control means according to the present invention.
The deadline excess processing unit 9 also functions as the number-of-interruptions adding means, the number-of-task-switching number adding means, the number-of-groups deadline-missing-number-of-groups simultaneous adding means, and the number-of-other-tasks deadline-missing-number-of-times simultaneous adding means of the present invention. .

【0032】また、上記タスクスケジューラ部10が、
この発明に係わる実行タスク決定制御手段と割り込み禁
止レベル設定制御手段とタスク実行レベル設定手段の機
能を果たす。
Further, the task scheduler section 10
It performs the functions of the execution task determination control means, the interrupt inhibition level setting control means, and the task execution level setting means according to the present invention.

【0033】さらに、上記タスク制御部6が、この発明
に係わるタスク制御方法の処理を実行する。
Further, the task control section 6 executes the processing of the task control method according to the present invention.

【0034】次に、上記タスク制御情報格納部8内にお
ける上記タスク制御情報のデータフォーマットの一例に
ついて説明する。図2は、図1に示したタスク制御情報
格納部8におけるこの発明に係わるタスク制御情報のデ
ータフォーマット例を示す説明図である。
Next, an example of a data format of the task control information in the task control information storage section 8 will be described. FIG. 2 is an explanatory diagram showing an example of a data format of task control information according to the present invention in the task control information storage unit 8 shown in FIG.

【0035】このタスク制御情報格納部8のタスク制御
情報は、第1〜第4タスク11a〜11dの各タスク毎
(各タスクに割り当てられたタスクID毎)に格納され
ている。タスク制御情報は、そのタスクの識別子である
タスクID21,動作実行を完了する制約時間(所定時
間)であるデッドライン時刻22,デッドラインミスが
発生したときに実行する第1〜第4デッドラインハンド
ラ12a〜12dのいずれかのデッドラインハンドラの
格納位置を示すアドレス23,そのタスクの実行優先度
24,デッドラインミス情報25からなる。
The task control information in the task control information storage section 8 is stored for each of the first to fourth tasks 11a to 11d (for each task ID assigned to each task). The task control information includes a task ID 21 as an identifier of the task, a deadline time 22 as a constraint time (predetermined time) for completing the execution of the operation, and first to fourth deadline handlers to be executed when a deadline miss occurs. It comprises an address 23 indicating the storage position of any of the deadline handlers 12a to 12d, an execution priority 24 of the task, and deadline miss information 25.

【0036】上記デッドラインミス情報25は、この発
明の請求項1に係わる情報としてはデッドラインミスの
発生回数であり、この発明の請求項2に係わる情報とし
てはタスク実行中の他の処理の割り込み処理による中断
回数であり、この発明の請求項4に係わる情報としては
タスク実行中に行われたタスクスイッチング回数であ
る。
The deadline miss information 25 is information on the number of occurrences of deadline misses as information according to claim 1 of the present invention, and is information on other processes during task execution as information according to claim 2 of the present invention. The number of interruptions due to interrupt processing is the number of task switching operations performed during task execution.

【0037】次に、図1に示したリアルタイムタスク制
御装置におけるこの発明の請求項1と10に係わる制御
処理について説明する。
Next, control processing according to the first and tenth aspects of the present invention in the real-time task control device shown in FIG. 1 will be described.

【0038】この制御処理は、リアルタイムオペレーテ
ィングシステム1において、時間制約のあるタスクがデ
ッドラインミスしたあとに終了せずに引き続き実時間で
実行するとき、再びデッドラインミスを起こす頻度を低
減するものである。
This control processing reduces the frequency of occurrence of a deadline miss when a task with a time constraint is executed in real time without terminating after a deadline miss in the real-time operating system 1. is there.

【0039】そこで、この制御処理を実現するため、上
記リアルタイムタスク制御装置のリアルタイムオペレー
ティングシステム1が、それぞれ所定時間までに動作を
完了させる制約を持つ複数のタスクの実行を制御するタ
スク制御手段の機能を果たす。
Therefore, in order to realize this control processing, the real-time operating system 1 of the real-time task control device has a function of task control means for controlling the execution of a plurality of tasks each having a constraint to complete the operation by a predetermined time. Fulfill.

【0040】また、上記タスク制御情報格納部8が、上
記各タスクに対する実行優先度とそれぞれの所定時間ま
でに動作を終了しなかったデッドラインミスの発生回数
とからなるタスク制御情報を格納するタスク制御情報格
納手段の機能を果たす。
The task control information storage section 8 stores task control information including execution priority for each of the tasks and the number of occurrences of deadline misses whose operations have not been completed by a predetermined time. Functions as control information storage means.

【0041】さらに、上記デッドライン超過処理部9と
第1〜第4デッドラインハンドラ12a〜12dが、上
記各タスクのデッドラインミスが発生したときにそれぞ
れのエラー復旧処理であるデッドラインハンドラ処理を
実行するデッドラインハンドラ処理実行手段の機能を果
たす。
Further, the deadline excess processing section 9 and the first to fourth deadline handlers 12a to 12d execute deadline handler processing as error recovery processing when a deadline miss occurs in each task. It performs the function of a deadline handler process executing means to be executed.

【0042】また、上記デッドライン超過処理部9が、
上記タスク制御情報格納手段に格納された各デッドライ
ンミスの発生回数をそれぞれ対応するタスクにデッドラ
インミスが発生する度に加算し、上記デッドラインハン
ドラ処理実行手段によってデッドラインミスを起こした
タスクに対応するデッドラインハンドラ処理を実行させ
るデッドラインミス発生時制御手段の機能を果たす。
The deadline excess processing unit 9
The number of occurrences of each deadline miss stored in the task control information storage means is added to the corresponding task each time a deadline miss occurs, and the number of deadline misses is added to the task in which the deadline miss has occurred by the deadline handler processing execution means. It functions as a deadline miss occurrence control means for executing a corresponding deadline handler process.

【0043】さらに、上記タスクスケジューラ部10
が、上記タスク制御情報格納手段に格納された各タスク
に対する実行優先度とデッドラインミスの発生回数とに
基づいて過去にデッドラインミスを起こしたタスクほど
実行順を繰り上げるようにして次に実行するタスクを決
定する実行タスク決定制御手段の機能を果たす。
Further, the task scheduler 10
However, based on the execution priority of each task stored in the task control information storage means and the number of occurrences of a deadline miss, the task in which a deadline miss has occurred in the past is executed in an earlier execution order so as to be advanced. It performs the function of an execution task determination control means for determining a task.

【0044】そして、このタスク制御部6におけるリア
ルタイムタスク制御処理は、第1〜第4タスク11a〜
11dに対する実行優先度とそれぞれの所定時間までに
動作を終了しなかったデッドラインミスの発生回数とか
らなるタスク制御情報を格納し、その各デッドラインミ
スの発生回数をそれぞれ対応するタスクにデッドライン
ミスが発生する度に加算すると共に、デッドラインミス
を起こしたタスクに対応する第1〜第4デッドラインハ
ンドラ12a〜12dのいずれかによるデッドラインハ
ンドラ処理を実行し、各タスクに対する実行優先度とデ
ッドラインミスの発生回数とに基づいて過去にデッドラ
インミスを起こしたタスクほど実行順を繰り上げるよう
にして次に実行するタスクを決定する。
The real-time task control processing in the task control unit 6 includes the first to fourth tasks 11a to 11a.
The task control information includes the execution priority for 11d and the number of occurrences of deadline misses whose operations have not been completed by the predetermined time, and stores the number of occurrences of each deadline miss in the corresponding task. A deadline handler process is performed by one of the first to fourth deadline handlers 12a to 12d corresponding to the task in which the deadline miss has occurred, and is added each time a miss occurs. The task to be executed next is determined based on the number of occurrences of the deadline miss, such that the task in which the deadline miss has occurred in the past is advanced in the execution order.

【0045】次に、このリアルタイムタスク制御処理に
おける本発明の請求項1と10で特徴的な制御処理とし
て、デッドライン超過処理部9とタスクスケジューラ部
10の処理について説明する。
Next, the processing of the deadline excess processing unit 9 and the task scheduler unit 10 will be described as a characteristic control process in the real-time task control process according to claims 1 and 10 of the present invention.

【0046】図3は、上記タスク制御部6内のデッドラ
イン超過処理部9におけるこの発明の請求項1と10に
係わる制御処理を示すフローチャート図である。図4
は、上記タスク制御部6内のタスクスケジューラ部10
におけるこの発明の請求項1と10に係わる制御処理を
示すフローチャート図である。
FIG. 3 is a flow chart showing the control processing in the deadline excess processing section 9 in the task control section 6 according to the first and the tenth aspects of the present invention. FIG.
Is the task scheduler 10 in the task controller 6
FIG. 10 is a flowchart showing a control process according to claims 1 and 10 of the present invention.

【0047】上記デッドライン超過処理部9は、時間管
理部7によってデッドラインミスが検出されると、図3
に示すように、ステップ(図中「S」で示す)1でタス
ク制御情報格納部のタスク制御情報中のデッドラインミ
ス情報を更新する。この場合のデッドラインミス情報は
デッドラインミスの発生回数であり、その値に“1”を
加算する。
When the deadline error is detected by the time management unit 7, the deadline excess processing unit 9
As shown in (1), in step (indicated by "S" in the figure) 1, deadline miss information in the task control information of the task control information storage is updated. The deadline miss information in this case is the number of deadline miss occurrences, and "1" is added to the value.

【0048】ステップ2へ進んでタスク制御情報格納部
に登録されているデッドラインハンドラのアドレスを取
得し、そのアドレスに基づいてデッドラインミスの発生
したタスクに対応する第1〜第4デッドラインハンドラ
のいずれかを実行し、この処理を終了する。
The process proceeds to step 2 to obtain the address of the deadline handler registered in the task control information storage, and based on the address, the first to fourth deadline handlers corresponding to the task in which the deadline miss has occurred. And ends this processing.

【0049】上記タスクスケジューラ部10は、タスク
がスイッチングされる状態となったとき、図4に示すよ
うに、ステップ11でタスク制御情報格納部から全ての
タスクの実行優先度及びデッドラインミス情報を得る。
この場合はデッドラインミス情報は以前にそのタスクに
デッドラインミスが発生した発生回数が格納されてい
る。
When the task is switched, the task scheduler unit 10 stores the execution priority and deadline miss information of all tasks from the task control information storage unit in step 11 as shown in FIG. obtain.
In this case, the deadline miss information stores the number of times a deadline miss has occurred in the task before.

【0050】ステップ12でその発生回数とそのタスク
の本来の実行優先度から次に実行するタスクを決定す
る。ここではそれら二つが決定要因として入っていれば
その決定方法は特に問わない。次にステップ13で上記
決定したタスクを実行状態として、この処理を終了す
る。
In step 12, the task to be executed next is determined from the number of occurrences and the original execution priority of the task. Here, as long as these two factors are included as determinants, the determination method is not particularly limited. Next, in step 13, the task determined as described above is set to the execution state, and this processing ends.

【0051】このようにして、上記のようなタスク制御
情報格納部8での各タスクの情報構成と、デッドライン
超過処理制御及びタスクスケジューラ制御処理により、
過去にデッドラインミスを起こしたタスクほど次に実行
する権限を高めることができるので、タスクのデッドラ
インミスを低減することができ、安定したリアルタイム
システムを構築することができる。
As described above, the information structure of each task in the task control information storage unit 8 as described above, the deadline excess process control, and the task scheduler control process enable
The right to execute the next task can be increased as the task has a deadline miss in the past. Therefore, the task deadline miss can be reduced and a stable real-time system can be constructed.

【0052】次に、図1に示したリアルタイムタスク制
御装置におけるこの発明の請求項2と11に係わる制御
処理について説明する。
Next, the control processing according to claims 2 and 11 of the present invention in the real-time task control device shown in FIG. 1 will be described.

【0053】この制御処理を実行するため、上記リアル
タイムタスク制御装置のリアルタイムオペレーティング
システム1が、それぞれ所定時間までに動作を完了させ
る制約を持つ複数のタスクの実行を制御するタスク制御
手段の機能を果たす。
In order to execute this control processing, the real-time operating system 1 of the real-time task control device functions as a task control means for controlling the execution of a plurality of tasks each having a constraint to complete the operation by a predetermined time. .

【0054】また、上記タスク制御情報格納部8が、上
記各タスクに対する実行優先度とそれぞれのタスク実行
中の割り込み処理による中断回数とからなるタスク制御
情報を格納するタスク制御情報格納手段の機能を果た
す。
The task control information storage section 8 has a function of a task control information storage means for storing task control information including the execution priority of each task and the number of interruptions due to interrupt processing during execution of each task. Fulfill.

【0055】さらに、上記デッドライン超過処理部9
が、上記タスク制御情報格納手段に格納された各中断回
数をそれぞれ対応するタスクが中断されるたびに加算す
る中断回数加算手段の機能を果たす。
Further, the deadline excess processing section 9
Performs the function of the number-of-interruptions adding means for adding the respective number of interruptions stored in the task control information storage means each time the corresponding task is interrupted.

【0056】さらにまた、上記タスクスケジューラ部1
0が、上記タスク制御情報格納手段に格納された各タス
クに対する実行優先度と中断回数とに基づいて過去によ
り多く中断されたタスクほど実行順を繰り上げるように
して次に実行するタスクを決定する実行タスク決定制御
手段の機能を果たす。
Further, the task scheduler 1
0 is a task that determines the task to be executed next in such a manner that the task that has been interrupted more in the past is advanced in the execution order based on the execution priority and the number of interruptions for each task stored in the task control information storage means. Performs the function of task determination control means.

【0057】そして、このタスク制御部6におけるリア
ルタイムタスク制御処理は、第1〜第4タスク11a〜
11dに対する実行優先度とそれぞれのタスク実行中の
割り込み処理による中断回数とからなるタスク制御情報
を格納し、その各中断回数をそれぞれ対応するタスクが
中断されるたびに加算し、各タスクに対する実行優先度
と中断回数とに基づいて過去により多く中断されたタス
クほど実行順を繰り上げるようにして次に実行するタス
クを決定する。
The real-time task control processing in the task control section 6 includes the first to fourth tasks 11a to 11a.
Task control information including the execution priority for 11d and the number of interruptions due to interrupt processing during execution of each task is stored, and the number of interruptions is added each time the corresponding task is interrupted. Based on the degree and the number of interruptions, the task to be executed next is determined by moving up the execution order for tasks interrupted more in the past.

【0058】次に、このリアルタイムタスク制御処理に
おける本発明の請求項2と11で特徴的な制御処理につ
いてさらに説明する。
Next, the control processing characteristic of the real-time task control processing according to claims 2 and 11 of the present invention will be further described.

【0059】この発明の請求項2と11に係わる制御処
理では、図2のタスク制御情報格納部8のデッドライン
ミス情報25として、そのタスク実行中にCPUの内部
的及び外部的割り込みの要因などで例外処理部2によっ
て他の処理の実行が割り込まれて中断された中断回数を
記録する。
In the control processing according to the second and eleventh aspects of the present invention, the deadline miss information 25 of the task control information storage section 8 in FIG. The exception processing unit 2 interrupts the execution of another process and records the number of interruptions.

【0060】そして、上記デッドライン超過処理部9
は、例外処理部2による実行時に、そのときに実行して
いたタスクのデッドラインミス情報25の中断回数に
“1”を加算する。
The deadline excess processing section 9
Adds "1" to the number of interruptions in the deadline miss information 25 of the task being executed at the time of execution by the exception processing unit 2.

【0061】また、上記タスクスケジューラ部10は、
タスクスイッチング時には、タスク制御情報格納部8か
ら全てのタスクの実行優先度と中断回数を取得し、その
実行優先度と中断回数に基づいて次に実行するタスクを
決定する。
The task scheduler unit 10
At the time of task switching, the execution priority and the number of interruptions of all tasks are acquired from the task control information storage unit 8, and the next task to be executed is determined based on the execution priority and the number of interruptions.

【0062】上述のようなタスク制御情報格納部8での
各タスクの情報構成と、デッドライン超過処理制御及び
タスクスケジューラ制御処理により、過去に例外処理部
2により多く中断されたタスクほど次に実行する権限を
高めることができるので、デッドラインミスを低減する
ことができ、安定したリアルタイムシステムにすること
ができる。
Due to the information configuration of each task in the task control information storage unit 8 described above, the deadline excess process control, and the task scheduler control process, the task that has been interrupted by the exception processing unit 2 in the past is executed next. Authority can be increased, deadline mistakes can be reduced, and a stable real-time system can be realized.

【0063】このようにして、過去に例外処理部2によ
り多く中断されたタスクほど次に実行する権限を高める
ことができるので、デッドラインミスを低減することが
でき、安定したリアルタイムシステムを構築することが
できる。
In this way, the task that has been interrupted by the exception processing unit 2 in the past can have higher authority to execute next, so that deadline mistakes can be reduced and a stable real-time system can be constructed. be able to.

【0064】次に、図1に示したリアルタイムタスク制
御装置におけるこの発明の請求項3と12に係わる制御
処理について説明する。
Next, control processing according to the third and twelfth aspects of the present invention in the real-time task control device shown in FIG. 1 will be described.

【0065】この制御処理を実行するため、上述した機
能を備えると共に、上記タスクスケジューラ部10が上
記中断回数に基づいてタスクの割り込み禁止レベルを上
げるように設定する割り込み禁止レベル設定制御手段の
機能を果たす。
In order to execute this control processing, the task scheduler unit 10 has the above-mentioned function, and also has a function of an interrupt prohibition level setting control means for setting the task prohibition level to increase the task's interrupt prohibition level based on the number of interruptions. Fulfill.

【0066】そして、このタスク制御部6におけるリア
ルタイムタスク制御処理は、上述した制御処理の際に、
タスク制御情報格納部8の中断回数に基づいてタスクの
割り込み禁止レベルを上げるように設定する。
Then, the real-time task control processing in the task control section 6 is performed in the above-described control processing.
Based on the number of interruptions in the task control information storage unit 8, the setting is made so as to increase the task interrupt inhibition level.

【0067】図5は、上記タスク制御部6内のタスクス
ケジューラ部10におけるこの発明の請求項3と12に
係わる制御処理を示すフローチャート図である。
FIG. 5 is a flowchart showing a control process in the task scheduler section 10 in the task control section 6 according to claims 3 and 12 of the present invention.

【0068】上記タスクスケジューラ部10は、タスク
がスイッチングされる状態となったとき、図5に示すよ
うに、ステップ21でタスク制御情報格納部から全ての
タスクの実行優先度及びデッドラインミス情報を得る。
この場合のデッドラインミス情報は以前にそのタスクの
実行中に他のタスクの割り込みによって中断された中断
回数が格納されている。
When the task is switched, the task scheduler unit 10 stores the execution priority and deadline miss information of all tasks from the task control information storage unit in step 21 as shown in FIG. obtain.
In the deadline miss information in this case, the number of interruptions previously interrupted by the interruption of another task during execution of the task is stored.

【0069】ステップ22でその中断回数とそのタスク
の本来の実行優先度から次に実行するタスクを決定す
る。ここではそれら二つが決定要因として入っていれば
その決定方法は特に問わない。次にステップ23でその
タスクに設定された割り込み禁止レベルを上記中断回数
(割り込み回数)に応じた割り込み禁止レベルに変更
し、ステップ24で上記決定したタスクを実行状態とし
て、この処理を終了する。
In step 22, a task to be executed next is determined from the number of interruptions and the original execution priority of the task. Here, as long as these two factors are included as determinants, the determination method is not particularly limited. Next, in step 23, the interrupt disable level set for the task is changed to an interrupt disable level corresponding to the number of interruptions (the number of interrupts), and in step 24, the task determined above is set to the execution state, and this processing ends.

【0070】このようにして、過去にタスクが実行中に
受けた割り込みの頻度によって割り込み禁止レベルを設
定することができるので、他のタスクの割り込みによる
デッドラインミスを低減することができ、安定したリア
ルタイムシステムにすることができる。
As described above, the interrupt disable level can be set according to the frequency of interrupts received during the execution of the task in the past, so that a deadline miss due to an interrupt of another task can be reduced, and a stable operation can be achieved. Can be a real-time system.

【0071】次に、図1に示したリアルタイムタスク制
御装置におけるこの発明の請求項4と13に係わる制御
処理について説明する。
Next, the control processing according to claims 4 and 13 of the present invention in the real-time task control device shown in FIG. 1 will be described.

【0072】この制御処理を実行するため、上記リアル
タイムタスク制御装置のリアルタイムオペレーティング
システム1が、それぞれ所定時間までに動作を完了させ
る制約を持つ複数のタスクの実行を制御するタスク制御
手段の機能を果たす。
In order to execute the control processing, the real-time operating system 1 of the real-time task control device functions as a task control means for controlling the execution of a plurality of tasks each having a constraint to complete the operation by a predetermined time. .

【0073】また、上記タスク制御情報格納部8が、上
記各タスクに対する実行優先度とそれぞれのタスク実行
中に行われたタスクスイッチング回数とからなるタスク
制御情報を格納するタスク制御情報格納手段の機能を果
たす。
The function of the task control information storage means for storing the task control information comprising the execution priority for each of the tasks and the number of task switching performed during the execution of each task. Fulfill.

【0074】さらに、上記デッドライン超過処理部9
が、上記タスク制御情報格納手段に格納された各タスク
スイッチング回数をそれぞれ対応するタスクの実行中に
タスク切り換えが発生するたびに加算するタスクスイッ
チング回数加算手段の機能を果たす。
Further, the deadline excess processing section 9
Performs the function of a task switching frequency adding means for adding each task switching frequency stored in the task control information storage means each time task switching occurs during execution of a corresponding task.

【0075】さらにまた、上記タスクスケジューラ部1
0が、上記タスク制御情報格納手段に格納された各タス
クに対する実行優先度とタスクスイッチング回数とに基
づいて過去のタスク実行中に頻繁にタスク切り換えが起
こったタスクほど実行順を繰り上げるようにして次に実
行するタスクを決定する実行タスク決定制御手段の機能
を果たす。
Further, the task scheduler 1
0 is based on the execution priority and the task switching count for each task stored in the task control information storage means, so that the task that has been frequently switched during the past task execution is advanced in the execution order. And performs the function of the execution task determination control means for determining the task to be executed.

【0076】そして、このタスク制御部6におけるリア
ルタイムタスク制御処理は、第1〜第4タスク11a〜
11dに対する実行優先度とそれぞれのタスク実行中に
行われたタスクスイッチング回数とからなるタスク制御
情報を格納し、その各タスクスイッチング回数をそれぞ
れ対応するタスクの実行中にタスク切り換えが発生する
たびに加算し、各タスクに対する実行優先度とタスクス
イッチング回数とに基づいて過去のタスク実行中に頻繁
にタスク切り換えが起こったタスクほど実行順を繰り上
げるようにして次に実行するタスクを決定する。
The real-time task control processing in the task control unit 6 includes the first to fourth tasks 11a to 11a.
Task control information including the execution priority for 11d and the number of task switching performed during execution of each task is stored, and each task switching number is added each time task switching occurs during execution of the corresponding task. Then, based on the execution priority of each task and the number of times of task switching, the task to be executed next is determined by moving up the execution order of tasks in which task switching has occurred more frequently during past task execution.

【0077】次に、このリアルタイムタスク制御処理に
おける本発明の請求項4と13で特徴的な制御処理につ
いてさらに説明する。本発明の請求項4と13に係わる
制御処理では、図2のタスク制御情報格納部8のタスク
のデッドラインミス情報25として、そのタスク実行中
に行われたタスクスイッチング回数を記録する。
Next, the control processing characteristic of the real-time task control processing according to claims 4 and 13 of the present invention will be further described. In the control processing according to claims 4 and 13 of the present invention, the number of times of task switching performed during the execution of the task is recorded as deadline miss information 25 of the task in the task control information storage unit 8 of FIG.

【0078】そして、上記デッドライン超過処理部9
は、例外処理部2による制御中にそのときに実行してい
たタスクのデッドラインミス情報25のタスクスイッチ
ング回数に“1”を加算する。
The deadline excess processing section 9
Adds “1” to the task switching frequency of the deadline miss information 25 of the task being executed at that time during the control by the exception processing unit 2.

【0079】また、上記タスクスケジューラ部10は、
タスクスイッチング時には、タスク制御情報格納部8か
ら全てのタスクの実行優先度及びスイッチング回数を取
得し、その実行優先度及びスイッチング回数を考慮して
実行タスクを決定する。
The task scheduler unit 10
At the time of task switching, the execution priority and the switching frequency of all tasks are acquired from the task control information storage unit 8, and the execution task is determined in consideration of the execution priority and the switching frequency.

【0080】図6は、上記タスク制御部6内のタスクス
ケジューラ部10におけるこの発明の請求項4に係わる
制御処理を示すフローチャート図である。
FIG. 6 is a flowchart showing a control process according to a fourth aspect of the present invention in the task scheduler section 10 in the task control section 6.

【0081】上記タスクスケジューラ部10は、タスク
がスイッチングされる状態となったとき、図6に示すよ
うに、ステップ31でタスク制御情報格納部から全ての
タスクの実行優先度及びデッドラインミス情報を得る。
この場合のデッドラインミス情報は以前にそのタスクの
実行中に行われたタスクの切り換えであるタスクスイッ
チング回数が格納されている。
When the task is switched, the task scheduler unit 10 stores the execution priority and deadline miss information of all tasks from the task control information storage unit in step 31 as shown in FIG. obtain.
In this case, the deadline miss information stores the number of times of task switching, which is the task switching performed during the execution of the task before.

【0082】ステップ32でそのタスクスイッチング回
数とそのタスクの本来の実行優先度から次に実行するタ
スクを決定する。ここではそれら二つが決定要因として
入っていればその決定方法は特に問わない。次にステッ
プ33で実行されるタスクをスイッチするか否かによっ
て次に実行されるタスクがそれまでと違うタスクか否か
を判断し、タスクスイッチがなければステップ35へ進
み、タスクスイッチがあれば、ステップ34でスイッチ
前のタスクのスイッチング回数を加算し、すなわち、そ
れまでの実行タスクのタスク制御情報格納部でのタスク
のデッドラインミス情報としてタスクスイッチング回数
に“1”を加算し、ステップ35で上記決定したタスク
を実行状態として、この処理を終了する。
In step 32, the task to be executed next is determined from the task switching count and the original execution priority of the task. Here, as long as these two factors are included as determinants, the determination method is not particularly limited. Next, it is determined whether or not the task to be executed next is a different task from the previous task depending on whether or not to switch the task to be executed in step 33. If there is no task switch, the process proceeds to step 35. In step 34, the number of times of switching of the task before the switch is added, that is, "1" is added to the number of times of task switching as deadline miss information of the task in the task control information storage unit of the task executed so far, and step 35 Then, the task determined as described above is set to the execution state, and this processing is terminated.

【0083】このようにして、過去にタスク実行中に起
ったタスクスイッチングの頻度に応じて次に実行するタ
スクを決定することが可能になり、タスクスイッチング
によるデッドラインミスを低減することができ、安定し
たリアルタイムシステムにすることができる。
In this way, it is possible to determine the next task to be executed in accordance with the frequency of task switching that has occurred during the execution of a task in the past, and it is possible to reduce deadline errors due to task switching. It can be a stable real-time system.

【0084】次に、図1に示したリアルタイムタスク制
御装置におけるこの発明の請求項5と14に係わる制御
処理について説明する。
Next, a description will be given of a control process according to claims 5 and 14 of the present invention in the real-time task control device shown in FIG.

【0085】この制御処理を実行するため、上述した機
能を備えると共に、上記タスクスケジューラ部10が上
記タスクスイッチング回数に基づいてタスク実行レベル
を上げるように設定する実行タスク決定制御手段の機能
を果たす。
In order to execute this control processing, the above-mentioned functions are provided, and the task scheduler section 10 functions as an execution task determination control means for setting the task execution level to be increased based on the number of times of task switching.

【0086】そして、このタスク制御部6におけるリア
ルタイムタスク制御処理は、上述した制御処理の際、タ
スク制御情報格納部8のタスクスイッチング回数に基づ
いてタスク実行レベルを上げるように設定する。
Then, the real-time task control processing in the task control section 6 is set so as to raise the task execution level based on the number of times of task switching in the task control information storage section 8 in the above-described control processing.

【0087】図7は、上記タスク制御部6内のタスクス
ケジューラ部10におけるこの発明の請求項5と14に
係わる制御処理を示すフローチャート図である。
FIG. 7 is a flowchart showing a control process in the task scheduler section 10 in the task control section 6 according to claims 5 and 14 of the present invention.

【0088】上記タスクスケジューラ部10は、タスク
がスイッチングされる状態となったとき、図7に示すよ
うに、ステップ41でタスク制御情報格納部から全ての
タスクの実行優先度及びデッドラインミス情報を得る。
この場合のデッドラインミス情報はタスク実行中に行わ
れたタスクスイッチング回数が格納されている。
When the task is switched, the task scheduler section 10 stores the execution priority and deadline miss information of all tasks from the task control information storage section in step 41 as shown in FIG. obtain.
The deadline miss information in this case stores the number of times of task switching performed during task execution.

【0089】ステップ42でそのタスクスイッチング回
数とそのタスクの本来の実行優先度から次に実行するタ
スクを決定する。ここではそれら二つが決定要因として
入っていればその決定方法は特に問わない。次にステッ
プ43で実行するタスクに設定されたタスク実行レベル
をタスク制御情報格納部に格納されたそのタスクのタス
クスイッチング回数に応じて変更し、ステップ43で上
記決定したタスクを実行状態として、この処理を終了す
る。
In step 42, the next task to be executed is determined from the task switching count and the original execution priority of the task. Here, as long as these two factors are included as determinants, the determination method is not particularly limited. Next, the task execution level set for the task to be executed in step 43 is changed in accordance with the number of times of task switching of the task stored in the task control information storage unit. The process ends.

【0090】このようにして、過去にタスクが実行中に
受けたスイッチングの頻度によってタスク実行レベルを
設定することが可能になり、他のタスクの実行によるデ
ッドラインミスの発生を低減することができ、安定した
リアルタイムシステムにすることができる。
In this way, the task execution level can be set according to the frequency of switching that the task has received during execution in the past, and the occurrence of deadline misses due to the execution of other tasks can be reduced. It can be a stable real-time system.

【0091】次に、図1に示したリアルタイムタスク制
御装置におけるこの発明の請求項6と15に係わる制御
処理について説明する。
Next, the control processing according to the sixth and fifteenth aspects of the present invention in the real-time task control device shown in FIG. 1 will be described.

【0092】この制御処理を実行するため、上記リアル
タイムタスク制御装置のリアルタイムオペレーティング
システム1が、それぞれ所定時間までに動作を完了させ
る制約を持つ複数のタスクの実行を制御するタスク制御
手段の機能を果たす。
In order to execute this control processing, the real-time operating system 1 of the real-time task control device functions as a task control means for controlling the execution of a plurality of tasks each having a constraint to complete the operation by a predetermined time. .

【0093】また、上記タスク制御情報格納部8が、上
記各タスクに対する実行優先度とそれぞれの所定時間ま
でに動作を終了しなかったデッドラインミスの発生回数
と予め関連づけられた他のタスクとのグループ識別情報
とからなるタスク制御情報を格納するタスク制御情報格
納手段の機能を果たす。
Further, the task control information storage section 8 stores the execution priority of each task and the number of occurrences of deadline misses whose operations have not been completed by the respective predetermined times, with the other tasks previously associated with each other. It functions as a task control information storage unit that stores task control information composed of group identification information.

【0094】さらに、上記デッドライン超過処理部9と
第1〜第4デッドラインハンドラ12a〜12dが、上
記各タスクのデッドラインミスが発生したときにそれぞ
れのエラー復旧処理であるデッドラインハンドラ処理を
実行するデッドラインハンドラ処理実行手段の機能を果
たす。
Further, the deadline excess processing unit 9 and the first to fourth deadline handlers 12a to 12d perform deadline handler processing as error recovery processing when a deadline miss occurs in each task. It performs the function of a deadline handler process executing means to be executed.

【0095】また、上記デッドライン超過処理部9が、
上記タスク制御情報格納手段に格納された各デッドライ
ンミスの発生回数をそれぞれ対応するタスクにデッドラ
インミスが発生する度に加算し、上記デッドラインハン
ドラ処理実行手段によってデッドラインミスを起こした
タスクとそのタスクと同じグループ識別情報を持つタス
クとにそれぞれ対応するデッドラインハンドラ処理を実
行させるデッドラインミス発生時制御手段の機能を果た
す。
Further, the deadline excess processing unit 9
The number of occurrences of each deadline miss stored in the task control information storage means is added to the corresponding task each time a deadline miss occurs, and the task in which the deadline miss has occurred by the deadline handler processing execution means It functions as a deadline miss occurrence control means for executing deadline handler processing corresponding to the task and a task having the same group identification information.

【0096】そして、このタスク制御部6におけるリア
ルタイムタスク制御処理は、第1〜第4タスク11a〜
11dに対する実行優先度とそれぞれの所定時間までに
動作を終了しなかったデッドラインミスの発生回数と予
め関連づけられた他のタスクとのグループ識別情報とか
らなるタスク制御情報を格納し、その各デッドラインミ
スの発生回数をそれぞれ対応するタスクにデッドライン
ミスが発生する度に加算し、デッドラインミスを起こし
たタスクとそのタスクと同じグループ識別情報を持つタ
スクとにそれぞれ対応するデッドラインハンドラ処理を
実行する。
The real-time task control processing in the task control unit 6 includes the first to fourth tasks 11a to 11a.
Task control information including execution priority for 11d, the number of occurrences of deadline misses whose operations have not been completed by a predetermined time, and group identification information of another task associated in advance is stored. The number of occurrences of line misses is added each time a deadline miss occurs in the corresponding task, and deadline handler processing corresponding to the task that caused the deadline miss and the task that has the same group identification information as the task are performed. Execute.

【0097】図8は、図1に示したタスク制御情報格納
部8におけるこの発明に係わるタスク制御情報の他のデ
ータフォーマット例を示す説明図であり、図2と共通す
る部分には同一符号を付してその説明を省略する。
FIG. 8 is an explanatory diagram showing another example of the data format of the task control information according to the present invention in the task control information storage section 8 shown in FIG. 1. In FIG. The description is omitted here.

【0098】このタスク制御情報には、上述の各データ
に新たに関連タスク情報26を加えている。この関連タ
スク情報26は、そのタスクがデッドラインミスしたと
きに影響を受ける他のタスクとのグループ識別子(グル
ープ識別情報)である。
In the task control information, related task information 26 is newly added to the above data. The related task information 26 is a group identifier (group identification information) with another task affected when the task has a deadline miss.

【0099】次に、このリアルタイムタスク制御処理に
おける本発明の請求項6と15で特徴的な制御処理とし
て、デッドライン超過処理部9の処理について説明す
る。図9は、上記タスク制御部6内のデッドライン超過
処理部9におけるこの発明の請求項6と15に係わる制
御処理を示すフローチャート図である。
Next, the processing of the deadline excess processing unit 9 will be described as a characteristic control processing in claims 6 and 15 of the present invention in this real-time task control processing. FIG. 9 is a flowchart showing the control processing in the deadline excess processing section 9 in the task control section 6 according to claims 6 and 15 of the present invention.

【0100】上記デッドライン超過処理部9は、時間管
理部7によってデッドラインミスが検出されると、図9
に示すように、ステップ51でタスク制御情報格納部の
実行中のタスクのデッドラインミス情報を更新する。こ
の場合のデッドラインミス情報はデッドラインミスの発
生回数であり、その値に“1”を加算する。
When the time management unit 7 detects a deadline error, the deadline excess processing unit 9
As shown in (5), in step 51, the task control information storage unit updates the deadline miss information of the running task. The deadline miss information in this case is the number of deadline miss occurrences, and "1" is added to the value.

【0101】ステップ52へ進んでタスク制御情報格納
部に登録されているデッドラインハンドラのアドレスを
取得し、そのアドレスに基づいてデッドラインミスの発
生した実行タスクに対応する第1〜第4デッドラインハ
ンドラのいずれかを実行する。
In step 52, the address of the deadline handler registered in the task control information storage unit is obtained, and based on the address, the first to fourth deadlines corresponding to the execution task in which the deadline miss has occurred. Execute one of the handlers.

【0102】次に、ステップ53でタスク制御情報格納
部に登録された関連タスク情報からグループ識別子を得
て、それと同じグループ識別子をもつタスクがあるか否
かを判断し、無ければこの処理を終了し、有ればステッ
プ54へ進んでそのタスクのタスク制御情報からタスク
IDを得て、ステップ55でそのタスクIDに対応する
デッドラインハンドラを実行する。
Next, in step 53, a group identifier is obtained from the related task information registered in the task control information storage unit, and it is determined whether or not there is a task having the same group identifier. If there is, the process proceeds to step 54, where the task ID is obtained from the task control information of the task, and the deadline handler corresponding to the task ID is executed in step 55.

【0103】そして、ステップ53へ戻ってさらにタス
ク制御情報格納部に登録された関連タスク情報から同様
にして同じグループ識別子をもつ他のタスクがあるか否
かを調べ、同じグループ識別子を持つタスク全部にデッ
ドラインハンドラを実行して、この処理を終了する。
Then, the flow returns to step 53, and it is further checked from the related task information registered in the task control information storage section whether there is another task having the same group identifier. Then, a deadline handler is executed, and this processing ends.

【0104】このようにして、動作実行に関してお互い
に依存性のあるタスクの全部をグループ化し、その各タ
スクに同じグループ識別子を付与することにより、デッ
ドラインミス発生時において同じグループ識別子を持つ
タスクの全部にデッドラインハンドラを実行するので、
タスク処理時に効率的な後処理を行うことができ、依存
性の無いそれ以外のタスクに対して悪影響を与えること
が少なくなり、安定したリアルタイムシステムにするこ
とができる。
In this way, by grouping all the tasks that are mutually dependent on the execution of the operation and assigning the same group identifier to each task, the tasks having the same group identifier when a deadline miss occurs Run deadline handlers for all,
Efficient post-processing can be performed during task processing, adverse effects on other tasks having no dependency are reduced, and a stable real-time system can be realized.

【0105】次に、図1に示したリアルタイムタスク制
御装置におけるこの発明の請求項7と16に係わる制御
処理について説明する。
Next, a description will be given of a control process according to claims 7 and 16 of the present invention in the real-time task control device shown in FIG.

【0106】この制御処理を実行するため、上述した機
能を備えると共に、上記デッドライン超過処理部9が、
上記タスク制御情報格納部8に格納されたデッドライン
ミスの発生回数を加算するとき、その発生回数に対応す
るグループ識別情報と同じグループ識別情報を持つデッ
ドラインミスの発生回数をも同時に加算するグループ内
デッドラインミス発生回数加算手段の機能も果たす。
In order to execute this control process, the above-described functions are provided, and the deadline excess processing unit 9
When adding the number of occurrences of the deadline miss stored in the task control information storage unit 8, the group that simultaneously adds the number of occurrences of the deadline miss having the same group identification information as the group identification information corresponding to the number of occurrences It also functions as a means for adding the number of times of occurrence of deadline misses.

【0107】そして、このタスク制御部6におけるリア
ルタイムタスク制御処理は、上述した制御処理の際に、
上記タスク制御情報格納部8に格納されたデッドライン
ミスの発生回数を加算するとき、その発生回数に対応す
るグループ識別情報と同じグループ識別情報を持つデッ
ドラインミスの発生回数をも同時に加算する。
The real-time task control processing in the task control unit 6 is performed in the above-described control processing.
When the number of occurrences of the deadline miss stored in the task control information storage unit 8 is added, the number of occurrences of the deadline miss having the same group identification information as the group identification information corresponding to the number of occurrences is also added.

【0108】この制御処理では、上述したタスク制御部
6内のデッドライン超過処理部9が、図9に示したステ
ップ51の処理において、デッドラインミスが発生した
タスクについてタスク制御情報格納部8に登録されてい
るデッドラインミス情報であるデッドラインミスの発生
回数に“1”を加算して更新すると共に、その関連タス
ク情報であるグループ識別子を参照し、同じグループ識
別子を持つ他のタスクのすべてに対してそのデッドライ
ンミス情報(デッドラインミスの発生回数)を更新
(“1”の加算)する制御処理をも同時に行う。
In this control processing, the deadline excess processing section 9 in the task control section 6 described above stores the task in which the deadline miss has occurred in the task control information storage section 8 in the processing of step 51 shown in FIG. In addition to updating the number of occurrences of the deadline miss, which is registered deadline miss information, by adding “1”, referring to the group identifier, which is related task information, all other tasks having the same group identifier are referred to. In addition, control processing for updating the deadline miss information (the number of occurrences of the deadline miss) (addition of “1”) is performed at the same time.

【0109】このようにして、あるタスクでデッドライ
ンミスが発生したときには、そのタスクのデッドライン
ミスの発生回数だけでなく、そのタスクに関連する他の
タスクのデッドラインミスの発生回数も更新するので、
あるタスクに対して依存性の高い他のタスクも含めて優
先的にタスク実行を決定することが可能になり、システ
ム全体としてデッドラインミスを低減することができ、
安定したリアルタイムシステムにすることができる。
As described above, when a deadline miss occurs in a certain task, not only the number of deadline misses of the task but also the number of deadline misses of another task related to the task are updated. So
It is possible to prioritize the task execution including other tasks highly dependent on a certain task, and reduce deadline mistakes as a whole system.
It can be a stable real-time system.

【0110】次に、図1に示したリアルタイムタスク制
御装置におけるこの発明の請求項8と17に係わる制御
処理について説明する。
Next, the control processing according to claims 8 and 17 of the present invention in the real-time task control device shown in FIG. 1 will be described.

【0111】この制御処理を実行するため、上記リアル
タイムタスク制御装置のリアルタイムオペレーティング
システム1が、それぞれ所定時間までに動作を完了させ
る制約を持つ複数のタスクの実行を制御するタスク制御
手段の機能を果たす。
In order to execute this control processing, the real-time operating system 1 of the real-time task control device functions as a task control means for controlling the execution of a plurality of tasks each having a constraint to complete the operation by a predetermined time. .

【0112】また、上記タスク制御情報格納部8が、上
記各タスクに対する実行優先度とそれぞれの所定時間ま
でに動作を終了しなかったデッドラインミスの発生回数
と予め関連づけられた他のタスクを示す識別情報とから
なるタスク制御情報を格納するタスク制御情報格納手段
の機能を果たす。
The task control information storage section 8 indicates other tasks which are associated in advance with the execution priority of each task and the number of occurrences of deadline misses whose operations have not been completed by the predetermined time. It functions as a task control information storage unit that stores task control information including identification information.

【0113】さらに、上記デッドライン超過処理部9と
第1〜第4デッドラインハンドラ12a〜12dが、上
記各タスクのデッドラインミスが発生したときにそれぞ
れのエラー復旧処理であるデッドラインハンドラ処理を
実行するデッドラインハンドラ処理実行手段の機能を果
たす。
Further, the deadline excess processing section 9 and the first to fourth deadline handlers 12a to 12d perform deadline handler processing as error recovery processing when a deadline miss of each task occurs. It performs the function of a deadline handler process executing means to be executed.

【0114】上記デッドライン超過処理部9はまた、上
記タスク制御情報格納手段に格納された各デッドライン
ミスの発生回数をそれぞれ対応するタスクにデッドライ
ンミスが発生する度に加算し、上記デッドラインハンド
ラ処理実行手段によってデッドラインミスを起こしたタ
スクとそのタスクに対応する識別情報によって示される
タスクとにそれぞれ対応するデッドラインハンドラ処理
を実行させるデッドラインミス発生時制御手段の機能も
果たす。
The deadline excess processing section 9 also adds the number of occurrences of each deadline miss stored in the task control information storage means each time a deadline miss occurs in the corresponding task, and It also performs the function of deadline miss occurrence control means for executing deadline handler processing corresponding to the task in which the deadline miss has occurred by the handler processing execution means and the task indicated by the identification information corresponding to the task.

【0115】そして、このタスク制御部6におけるリア
ルタイムタスク制御処理は、第1〜第4タスク11a〜
11dに対する実行優先度とそれぞれの所定時間までに
動作を終了しなかったデッドラインミスの発生回数と予
め関連づけられた他のタスクを示す識別情報とからなる
タスク制御情報を格納し、その各デッドラインミスの発
生回数をそれぞれ対応するタスクにデッドラインミスが
発生する度に加算し、デッドラインミスを起こしたタス
クとそのタスクに対応する識別情報によって示されるタ
スクとにそれぞれ対応するデッドラインハンドラ処理を
実行する。
The real-time task control processing in the task control section 6 includes the first to fourth tasks 11a to 11a.
Task control information including execution priority for 11d, the number of occurrences of deadline misses whose operations have not been completed by a predetermined time, and identification information indicating another task associated in advance is stored. The number of misses is added each time a deadline miss occurs in the corresponding task, and the deadline handler processing corresponding to the task that caused the deadline miss and the task indicated by the identification information corresponding to the task is added. Execute.

【0116】この制御処理を実施する場合、上記タスク
制御情報格納部8のタスク制御情報には、図2に示した
各データの他に関連タスク情報26としてそのタスクが
デッドラインミスしたときに影響を受けるタスクを示す
タスクIDを格納する。この関連タスク情報26に格納
するタスクIDは1タスクのタスクIDでもよいし、同
時に複数のタスクのタスクIDでもよい。
When this control processing is performed, the task control information in the task control information storage section 8 includes, as related task information 26 in addition to the data shown in FIG. A task ID indicating the task to receive the task is stored. The task ID stored in the related task information 26 may be the task ID of one task, or may be the task IDs of a plurality of tasks at the same time.

【0117】次に、このリアルタイムタスク制御処理に
おける本発明の請求項8と17で特徴的な制御処理とし
て、デッドライン超過処理部9の処理について説明す
る。
Next, the processing of the deadline excess processing unit 9 will be described as a control processing characteristic of the real-time task control processing according to claims 8 and 17 of the present invention.

【0118】上記デッドライン超過処理部9は、時間管
理部7によってデッドラインミスの発生が検出される
と、タスク制御情報格納部8の実行中のタスクのデッド
ラインミス情報を更新する。この場合のデッドラインミ
ス情報はデッドラインミスの発生回数であり、その値に
“1”を加算する。
When the time management unit 7 detects the occurrence of a deadline miss, the deadline excess processing unit 9 updates the deadline miss information of the task being executed in the task control information storage unit 8. The deadline miss information in this case is the number of deadline miss occurrences, and "1" is added to the value.

【0119】また、タスク制御情報格納部8に登録され
ているデッドラインハンドラのアドレスを取得し、その
アドレスに基づいてデッドラインミスの発生した実行タ
スクに対応する第1〜第4デッドラインハンドラのいず
れかを実行する。
Further, the address of the deadline handler registered in the task control information storage unit 8 is obtained, and based on the address, the first to fourth deadline handlers corresponding to the execution task in which the deadline miss has occurred are obtained. Do one of them.

【0120】さらに、タスク制御情報格納部8に登録さ
れた関連タスク情報からタスクIDを得て、そのタスク
IDで示されるタスクに対応するデッドラインハンドラ
を実行し、この処理を終了する。
Further, the task ID is obtained from the related task information registered in the task control information storage unit 8, the deadline handler corresponding to the task indicated by the task ID is executed, and the process is terminated.

【0121】このようにして、あるタスクがデッドライ
ンミスしたとき、そのタスクに依存するタスクを含めて
デッドラインハンドラを実行するので、タスク間の依存
性を柔軟に設定することでさらに効率的な後処理を行う
ことができ、他のリアルタイムタスクに悪影響を与える
ことがより少なくなり、安定したリアルタイムシステム
にすることができる。
As described above, when a task misses a deadline, a deadline handler is executed including tasks dependent on the task, so that the dependency between tasks can be set flexibly and more efficient. Post-processing can be performed, resulting in less adverse effects on other real-time tasks and a stable real-time system.

【0122】次に、図1に示したリアルタイムタスク制
御装置におけるこの発明の請求項9と18に係わる制御
処理について説明する。
Next, the control processing according to claims 9 and 18 of the present invention in the real-time task control device shown in FIG. 1 will be described.

【0123】この制御処理を実行するため、上述した機
能を備えると共に、上記デッドライン超過処理部9が、
上記タスク制御情報格納手段に格納されたデッドライン
ミスの発生回数を加算するとき、その発生回数に対応す
る識別情報によって示されるタスクのデッドラインミス
の発生回数をも同時に加算する他タスクデッドラインミ
ス発生回数同時加算手段の機能も果たす。
In order to execute this control process, the above-described functions are provided, and the deadline excess processing unit 9
When the number of occurrences of deadline misses stored in the task control information storage means is added, the number of occurrences of deadline misses of the task indicated by the identification information corresponding to the number of occurrences is also added at the same time. Also functions as a means for simultaneously adding the number of occurrences.

【0124】そして、このタスク制御部6におけるリア
ルタイムタスク制御処理は、上述した制御処理の際に、
上記タスク制御情報格納部8に格納されたデッドライン
ミスの発生回数を加算するとき、その発生回数に対応す
る識別情報(タスクID)によって示されるタスクのデ
ッドラインミスの発生回数をも同時に加算する。
Then, the real-time task control processing in the task control section 6 is performed in the above-described control processing.
When the number of occurrences of the deadline miss stored in the task control information storage unit 8 is added, the number of occurrences of the deadline miss of the task indicated by the identification information (task ID) corresponding to the number of occurrences is also added. .

【0125】この制御処理では、上述したタスク制御部
6内のデッドライン超過処理部9が、上述の処理におい
て、デッドラインミスが発生したタスクについてタスク
制御情報格納部8に登録されているデッドラインミス情
報であるデッドラインミスの発生回数に“1”を加算し
て更新すると共に、タスク制御情報格納部8での実行中
のタスクに登録してある関連タスク情報であるタスクI
Dを得て、そのタスクIDで示されるタスク(関連タス
ク)のデッドラインミス情報(デッドラインミスの発生
回数)を更新(“1”の加算)する制御処理をも同時に
行う。
In this control processing, the deadline excess processing section 9 in the above-described task control section 6 executes the deadline registration in the task control information storage section 8 for the task in which the deadline miss has occurred in the above-described processing. In addition to updating “1” to the number of occurrences of the deadline miss, which is the miss information, the task I, which is the related task information registered as the task being executed in the task control information storage unit 8, is updated.
At the same time, control processing for obtaining D and updating the deadline miss information (the number of occurrences of the deadline miss) of the task (related task) indicated by the task ID (adding “1”) is also performed.

【0126】このようにして、過去にあるタスクでのデ
ッドラインミスした回数に応じて、そのタスクだけでな
く依存性の高いタスクも優先的にタスク実行を決定する
ことができ、さらにタスク間の依存性を柔軟に設定する
ことができるので、システム全体としてデッドラインミ
スをより低減させることができ、安定したリアルタイム
システムにすることができる。
In this way, according to the number of deadline misses in a past task, not only that task but also a highly dependent task can be preferentially determined to execute a task. Since the dependency can be set flexibly, a deadline miss can be further reduced as a whole system, and a stable real-time system can be realized.

【0127】[0127]

【発明の効果】以上説明してきたように、この発明のタ
スク制御装置とタスク制御方法によれば、タスクのデッ
ドラインミスする頻度を低下させることにより、リアル
タイムシステム全体の安定性の向上を図ることができ
る。
As described above, according to the task control device and the task control method of the present invention, the frequency of the task deadline miss is reduced, thereby improving the stability of the whole real-time system. Can be.

【図面の簡単な説明】[Brief description of the drawings]

【図1】この発明の一実施形態であるリアルタイムタス
ク制御装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a real-time task control device according to an embodiment of the present invention.

【図2】図1に示したタスク制御情報格納部8における
タスク制御情報のデータフォーマット例を示す説明図で
ある。
FIG. 2 is an explanatory diagram showing a data format example of task control information in a task control information storage unit 8 shown in FIG.

【図3】図1に示したタスク制御部6内のデッドライン
超過処理部9におけるこの発明の請求項1に係わる制御
処理を示すフローチャート図である。
FIG. 3 is a flowchart showing a control process according to claim 1 of the present invention in a deadline excess processing section 9 in the task control section 6 shown in FIG. 1;

【図4】図1に示したタスク制御部6内のタスクスケジ
ューラ部10におけるこの発明の請求項1に係わる制御
処理を示すフローチャート図である。
FIG. 4 is a flowchart showing a control process according to claim 1 of the present invention in a task scheduler unit 10 in the task control unit 6 shown in FIG. 1;

【図5】図1に示したタスク制御部6内のタスクスケジ
ューラ部10におけるこの発明の請求項3に係わる制御
処理を示すフローチャート図である。
FIG. 5 is a flowchart showing a control process according to claim 3 of the present invention in the task scheduler unit 10 in the task control unit 6 shown in FIG. 1;

【図6】図1に示したタスク制御部6内のタスクスケジ
ューラ部10におけるこの発明の請求項4に係わる制御
処理を示すフローチャート図である。
FIG. 6 is a flowchart showing a control process according to claim 4 of the present invention in the task scheduler unit 10 in the task control unit 6 shown in FIG. 1;

【図7】図1に示したタスク制御部6内のタスクスケジ
ューラ部10におけるこの発明の請求項5に係わる制御
処理を示すフローチャート図である。
FIG. 7 is a flowchart showing a control process according to claim 5 of the present invention in the task scheduler unit 10 in the task control unit 6 shown in FIG. 1;

【図8】図1に示したタスク制御情報格納部8における
タスク制御情報の他のデータフォーマット例を示す説明
図である。
FIG. 8 is an explanatory diagram showing another example of the data format of the task control information in the task control information storage unit 8 shown in FIG.

【図9】図1に示したタスク制御部6内のデッドライン
超過処理部9におけるこの発明の請求項6と15に係わ
る制御処理を示すフローチャート図である。
FIG. 9 is a flow chart showing a control process according to claims 6 and 15 of the present invention in the deadline excess processing unit 9 in the task control unit 6 shown in FIG. 1;

【符号の説明】[Explanation of symbols]

1:リアルタイムオペレーティングシステム 2:例外処理部 3:資源管理部 4:システムコール処理部 5a〜5c:第1〜第3ドライバ部 6:タスク制御部 7:時間管理部 8:タスク制御情報格納部 9:デッドライン超過処理部 10:タスクスケジューラ部 11a〜11d:第1〜第4タスク 12a〜12d:第1〜第4デッドラインハンドラ 21:タスクID 22:デッドライン時刻 23:デッドラインハンドラアドレス 24:実行優先度 25:デッドラインミス情報 26:関連タスク情報 1: Real-time operating system 2: Exception processing unit 3: Resource management unit 4: System call processing unit 5a to 5c: First to third driver units 6: Task control unit 7: Time management unit 8: Task control information storage unit 9 : Deadline excess processing unit 10: Task scheduler unit 11a to 11d: First to fourth tasks 12a to 12d: First to fourth deadline handlers 21: Task ID 22: Deadline time 23: Deadline handler address 24: Execution priority 25: Deadline miss information 26: Related task information

Claims (18)

【特許請求の範囲】[Claims] 【請求項1】 それぞれ所定時間までに動作を完了させ
る制約を持つ複数のタスクの実行を制御するタスク制御
手段を備えたタスク制御装置において、 前記各タスクに対する実行優先度とそれぞれの所定時間
までに動作を終了しなかったデッドラインミスの発生回
数とからなるタスク制御情報を格納するタスク制御情報
格納手段と、 前記各タスクのデッドラインミスが発生したときにそれ
ぞれのエラー復旧処理であるデッドラインハンドラ処理
を実行するデッドラインハンドラ処理実行手段と、 前記タスク制御情報格納手段に格納された各デッドライ
ンミスの発生回数をそれぞれ対応するタスクにデッドラ
インミスが発生する度に加算し、前記デッドラインハン
ドラ処理実行手段によってデッドラインミスを起こした
タスクに対応するデッドラインハンドラ処理を実行させ
るデッドラインミス発生時制御手段と、 前記タスク制御情報格納手段に格納された各タスクに対
する実行優先度とデッドラインミスの発生回数とに基づ
いて過去にデッドラインミスを起こしたタスクほど実行
順を繰り上げるようにして次に実行するタスクを決定す
る実行タスク決定制御手段とを設けたことを特徴とする
タスク制御装置。
1. A task control device comprising a task control means for controlling execution of a plurality of tasks each having a constraint to complete an operation by a predetermined time, comprising: an execution priority for each of the tasks; Task control information storage means for storing task control information comprising the number of occurrences of deadline misses whose operations have not been completed; and a deadline handler for error recovery processing when a deadline miss of each of the tasks occurs A deadline handler executing means for executing a process, and adding the number of occurrences of each deadline miss stored in the task control information storage means each time a deadline miss occurs in the corresponding task. Deadline corresponding to the task that caused the deadline miss by the processing execution means A deadline miss occurrence control means for executing a line handler process, and a deadline miss has occurred in the past based on the execution priority and the number of deadline miss occurrences for each task stored in the task control information storage means. A task control device comprising: an execution task determination control unit that determines a task to be executed next in such a manner that a task is executed in a higher execution order.
【請求項2】 それぞれ所定時間までに動作を完了させ
る制約を持つ複数のタスクの実行を制御するタスク制御
手段を備えたタスク制御装置において、 前記各タスクに対する実行優先度とそれぞれのタスク実
行中の割り込み処理による中断回数とからなるタスク制
御情報を格納するタスク制御情報格納手段と、 前記タスク制御情報格納手段に格納された各中断回数を
それぞれ対応するタスクが中断されるたびに加算する中
断回数加算手段と、 前記タスク制御情報格納手段に格納された各タスクに対
する実行優先度と中断回数とに基づいて過去により多く
中断されたタスクほど実行順を繰り上げるようにして次
に実行するタスクを決定する実行タスク決定制御手段と
を設けたことを特徴とするタスク制御装置。
2. A task control apparatus comprising: a task control unit for controlling execution of a plurality of tasks each having a constraint to complete an operation by a predetermined time; Task control information storage means for storing task control information comprising the number of interruptions due to interrupt processing; and interruption count addition for adding each interruption count stored in the task control information storage means each time the corresponding task is interrupted. Means for determining a task to be executed next by moving up the execution order of tasks interrupted more in the past based on the execution priority and the number of interruptions for each task stored in the task control information storage means, A task control device comprising a task determination control means.
【請求項3】 請求項2記載のタスク制御装置におい
て、 前記中断回数に基づいてタスクの割り込み禁止レベルを
上げるように設定する割り込み禁止レベル設定制御手段
を設けたことを特徴とするタスク制御装置。
3. The task control device according to claim 2, further comprising an interrupt prohibition level setting control means for setting the task prohibition level to increase based on the number of interruptions.
【請求項4】 それぞれ所定時間までに動作を完了させ
る制約を持つ複数のタスクの実行を制御するタスク制御
手段を備えたタスク制御装置において、 前記各タスクに対する実行優先度とそれぞれのタスク実
行中に行われたタスクスイッチング回数とからなるタス
ク制御情報を格納するタスク制御情報格納手段と、 前記タスク制御情報格納手段に格納された各タスクスイ
ッチング回数をそれぞれ対応するタスクの実行中にタス
ク切り換えが発生するたびに加算するタスクスイッチン
グ回数加算手段と、 前記タスク制御情報格納手段に格納された各タスクに対
する実行優先度とタスクスイッチング回数とに基づいて
過去のタスク実行中に頻繁にタスク切り換えが起こった
タスクほど実行順を繰り上げるようにして次に実行する
タスクを決定する実行タスク決定制御手段とを設けたこ
とを特徴とするタスク制御装置。
4. A task control device comprising a task control means for controlling execution of a plurality of tasks each having a constraint to complete an operation by a predetermined time, comprising: an execution priority for each of said tasks; Task control information storage means for storing task control information including the number of task switching operations performed; and task switching occurs during execution of a task corresponding to each task switching frequency stored in the task control information storage means. A task switching frequency adding means for adding each time, and a task in which task switching frequently occurs during past task execution based on the execution priority and the task switching frequency for each task stored in the task control information storage means. Decide the next task to execute by moving up the execution order A task control device comprising: an execution task determination control unit.
【請求項5】 請求項4記載のタスク制御装置におい
て、 前記タスクスイッチング回数に基づいてタスク実行レベ
ルを上げるように設定するタスク実行レベル設定手段を
設けたことを特徴とするタスク制御装置。
5. The task control device according to claim 4, further comprising: a task execution level setting unit configured to set the task execution level to increase based on the number of task switching.
【請求項6】 それぞれ所定時間までに動作を完了させ
る制約を持つ複数のタスクの実行を制御するタスク制御
手段を備えたタスク制御装置において、 前記各タスクに対する実行優先度とそれぞれの所定時間
までに動作を終了しなかったデッドラインミスの発生回
数と予め関連づけられた他のタスクとのグループ識別情
報とからなるタスク制御情報を格納するタスク制御情報
格納手段と、 前記各タスクのデッドラインミスが発生したときにそれ
ぞれのエラー復旧処理であるデッドラインハンドラ処理
を実行するデッドラインハンドラ処理実行手段と、 前記タスク制御情報格納手段に格納された各デッドライ
ンミスの発生回数をそれぞれ対応するタスクにデッドラ
インミスが発生する度に加算し、前記デッドラインハン
ドラ処理実行手段によってデッドラインミスを起こした
タスクと該タスクと同じグループ識別情報を持つタスク
とにそれぞれ対応するデッドラインハンドラ処理を実行
させるデッドラインミス発生時制御手段とを設けたこと
を特徴とするタスク制御装置。
6. A task control device comprising a task control means for controlling execution of a plurality of tasks each having a constraint to complete an operation by a predetermined time, comprising: an execution priority for each of the tasks; Task control information storage means for storing task control information including the number of occurrences of deadline misses whose operations have not been completed and group identification information with other tasks associated in advance, and the occurrence of deadline misses in each of the tasks A deadline handler process executing means for executing a deadline handler process, which is an error recovery process, when the number of times of each deadline miss stored in the task control information storage means is deadlined to a corresponding task. Each time a mistake occurs, the value is added and the deadline handler process execution means executes the process. Control means for executing deadline handler processing corresponding to a task which has caused a deadline miss and a task having the same group identification information as the task. .
【請求項7】 請求項6記載のタスク制御装置におい
て、 前記タスク制御情報格納手段に格納されたデッドライン
ミスの発生回数を加算するとき、その発生回数に対応す
るグループ識別情報と同じグループ識別情報を持つデッ
ドラインミスの発生回数をも同時に加算するグループ内
デッドラインミス発生回数同時加算手段を設けたことを
特徴とするタスク制御装置。
7. The task control device according to claim 6, wherein when adding the number of occurrences of the deadline miss stored in the task control information storage means, the same group identification information as the group identification information corresponding to the number of occurrences. A task control device characterized by comprising a means for simultaneously adding the number of deadline miss occurrences within a group for simultaneously adding the number of occurrences of deadline misses having the following.
【請求項8】 それぞれ所定時間までに動作を完了させ
る制約を持つ複数のタスクの実行を制御するタスク制御
手段を備えたタスク制御装置において、 前記各タスクに対する実行優先度とそれぞれの所定時間
までに動作を終了しなかったデッドラインミスの発生回
数と予め関連づけられた他のタスクを示す識別情報とか
らなるタスク制御情報を格納するタスク制御情報格納手
段と、 前記各タスクのデッドラインミスが発生したときにそれ
ぞれのエラー復旧処理であるデッドラインハンドラ処理
を実行するデッドラインハンドラ処理実行手段と、 前記タスク制御情報格納手段に格納された各デッドライ
ンミスの発生回数をそれぞれ対応するタスクにデッドラ
インミスが発生する度に加算し、前記デッドラインハン
ドラ処理実行手段によってデッドラインミスを起こした
タスクと該タスクに対応する識別情報によって示される
タスクとにそれぞれ対応するデッドラインハンドラ処理
を実行させるデッドラインミス発生時制御手段とを設け
たことを特徴とするタスク制御装置。
8. A task control device comprising a task control means for controlling execution of a plurality of tasks each having a constraint to complete an operation by a predetermined time, comprising: an execution priority for each of the tasks; Task control information storage means for storing task control information including the number of occurrences of deadline misses whose operations have not been completed and identification information indicating another task associated in advance, and a deadline miss of each of the tasks has occurred. A deadline handler process executing means for executing a deadline handler process which is an error recovery process, and the number of occurrences of each deadline miss stored in the task control information storage means is assigned to the corresponding task. Is incremented each time an error occurs, and the deadline handler A task control device comprising a deadline miss occurrence control means for executing deadline handler processing corresponding to a task in which a drain miss has occurred and a task indicated by identification information corresponding to the task.
【請求項9】 請求項8記載のタスク制御装置におい
て、 前記タスク制御情報格納手段に格納されたデッドライン
ミスの発生回数を加算するとき、その発生回数に対応す
る識別情報によって示されるタスクのデッドラインミス
の発生回数をも同時に加算する他タスクデッドラインミ
ス発生回数同時加算手段を設けたことを特徴とするタス
ク制御装置。
9. The task control device according to claim 8, wherein when the number of occurrences of the deadline miss stored in the task control information storage unit is added, the deadline of the task indicated by the identification information corresponding to the number of occurrences. A task control device characterized by further comprising means for simultaneously adding the number of occurrences of line misses and a means for simultaneously adding the number of occurrences of dead line misses.
【請求項10】 それぞれ所定時間までに動作を完了さ
せる制約を持つ複数のタスクの実行を制御するタスク制
御方法において、 前記各タスクに対する実行優先度とそれぞれの所定時間
までに動作を終了しなかったデッドラインミスの発生回
数とからなるタスク制御情報を格納し、該格納された各
デッドラインミスの発生回数をそれぞれ対応するタスク
にデッドラインミスが発生する度に加算すると共に、デ
ッドラインミスを起こしたタスクに対応するデッドライ
ンハンドラ処理を実行し、前記格納された各タスクに対
する実行優先度とデッドラインミスの発生回数とに基づ
いて過去にデッドラインミスを起こしたタスクほど実行
順を繰り上げるようにして次に実行するタスクを決定す
ることを特徴とするタスク制御方法。
10. A task control method for controlling execution of a plurality of tasks each having a constraint to complete an operation by a predetermined time, wherein an execution priority of each of the tasks and an operation are not ended by the predetermined time. Task control information including the number of deadline miss occurrences is stored, and the stored number of deadline miss occurrences is added each time a deadline miss occurs in the corresponding task, and a deadline miss occurs. Executing a deadline handler process corresponding to the stored task, and based on the execution priority and the number of occurrences of the deadline miss for each of the stored tasks, a task in which a deadline miss has occurred in the past is advanced in execution order. A task to be executed next.
【請求項11】 それぞれ所定時間までに動作を完了さ
せる制約を持つ複数のタスクの実行を制御するタスク制
御方法において、 前記各タスクに対する実行優先度とそれぞれのタスク実
行中の割り込み処理による中断回数とからなるタスク制
御情報を格納し、該格納された各中断回数をそれぞれ対
応するタスクが中断されるたびに加算し、前記格納され
た各タスクに対する実行優先度と中断回数とに基づいて
過去により多く中断されたタスクほど実行順を繰り上げ
るようにして次に実行するタスクを決定することを特徴
とするタスク制御方法。
11. A task control method for controlling execution of a plurality of tasks each having a constraint to complete an operation by a predetermined time, comprising: an execution priority for each task; a number of interruptions caused by interrupt processing during execution of each task; The task control information is stored, and the stored number of interruptions is added each time the corresponding task is interrupted. Based on the execution priority and the number of interruptions for each of the stored tasks, the number of interruptions is increased in the past. A task control method characterized by determining the next task to be executed by moving up the execution order of the interrupted tasks.
【請求項12】 請求項11記載のタスク制御方法にお
いて、 前記中断回数に基づいてタスクの割り込み禁止レベルを
上げるように設定することを特徴とするタスク制御方
法。
12. The task control method according to claim 11, wherein a setting is made so as to increase a task interrupt inhibition level based on the number of interruptions.
【請求項13】 それぞれ所定時間までに動作を完了さ
せる制約を持つ複数のタスクの実行を制御するタスク制
御方法において、 前記各タスクに対する実行優先度とそれぞれのタスク実
行中に行われたタスクスイッチング回数とからなるタス
ク制御情報を格納し、該格納された各タスクスイッチン
グ回数をそれぞれ対応するタスクの実行中にタスク切り
換えが発生するたびに加算し、前記格納された各タスク
に対する実行優先度とタスクスイッチング回数とに基づ
いて過去のタスク実行中に頻繁にタスク切り換えが起こ
ったタスクほど実行順を繰り上げるようにして次に実行
するタスクを決定することを特徴とするタスク制御方
法。
13. A task control method for controlling the execution of a plurality of tasks each having a constraint to complete an operation by a predetermined time, comprising: an execution priority for each of the tasks; and a number of task switching operations performed during each of the tasks. , And adds the stored task switching counts each time task switching occurs during execution of the corresponding task, and executes the execution priority and task switching for each of the stored tasks. A task control method comprising: determining a task to be executed next in such a manner that a task whose task has been frequently switched during execution of a past task is advanced in execution order based on the number of times.
【請求項14】 請求項13記載のタスク制御方法にお
いて、 前記タスクスイッチング回数に基づいてタスク実行レベ
ルを上げるように設定することを特徴とするタスク制御
方法。
14. The task control method according to claim 13, wherein the task execution level is set to increase based on the task switching count.
【請求項15】 それぞれ所定時間までに動作を完了さ
せる制約を持つ複数のタスクの実行を制御するタスク制
御方法において、 前記各タスクに対する実行優先度とそれぞれの所定時間
までに動作を終了しなかったデッドラインミスの発生回
数と予め関連づけられた他のタスクとのグループ識別情
報とからなるタスク制御情報を格納し、該格納された各
デッドラインミスの発生回数をそれぞれ対応するタスク
にデッドラインミスが発生する度に加算し、デッドライ
ンミスを起こしたタスクと該タスクと同じグループ識別
情報を持つタスクとにそれぞれ対応するデッドラインハ
ンドラ処理を実行することを特徴とするタスク制御方
法。
15. A task control method for controlling execution of a plurality of tasks each having a constraint to complete an operation by a predetermined time, wherein the execution priority of each of the tasks and the operation are not terminated by the predetermined time. Task control information including the number of occurrences of a deadline miss and group identification information with another task associated in advance is stored, and the number of occurrences of each stored deadline miss is stored in the corresponding task. A task control method comprising: adding a deadline error each time a task occurs; and executing a deadline handler process corresponding to each of the task having the deadline miss and the task having the same group identification information as the task.
【請求項16】 請求項15記載のタスク制御方法にお
いて、 前記格納されたデッドラインミスの発生回数を加算する
とき、その発生回数に対応するグループ識別情報と同じ
グループ識別情報を持つデッドラインミスの発生回数を
も同時に加算することを特徴とするタスク制御方法。
16. The task control method according to claim 15, wherein when adding the stored number of occurrences of the deadline miss, the deadline miss having the same group identification information as the group identification information corresponding to the number of occurrences is added. A task control method characterized by simultaneously adding the number of occurrences.
【請求項17】 それぞれ所定時間までに動作を完了さ
せる制約を持つ複数のタスクの実行を制御するタスク制
御方法において、 前記各タスクに対する実行優先度とそれぞれの所定時間
までに動作を終了しなかったデッドラインミスの発生回
数と予め関連づけられた他のタスクを示す識別情報とか
らなるタスク制御情報を格納し、該格納された各デッド
ラインミスの発生回数をそれぞれ対応するタスクにデッ
ドラインミスが発生する度に加算し、デッドラインミス
を起こしたタスクと該タスクに対応する識別情報によっ
て示されるタスクとにそれぞれ対応するデッドラインハ
ンドラ処理を実行することを特徴とするタスク制御方
法。
17. A task control method for controlling the execution of a plurality of tasks each having a constraint to complete an operation by a predetermined time, wherein the execution priority of each task and the operation are not terminated by the predetermined time. Task control information including the number of occurrences of deadline misses and identification information indicating another task associated in advance is stored, and the number of occurrences of each stored deadline miss is stored in the corresponding task. And a deadline handler corresponding to the task having the deadline miss and the task indicated by the identification information corresponding to the task.
【請求項18】 請求項17記載のタスク制御方法にお
いて、 前記格納されたデッドラインミスの発生回数を加算する
とき、その発生回数に対応する識別情報によって示され
るタスクのデッドラインミスの発生回数をも同時に加算
することを特徴とするタスク制御方法。
18. The task control method according to claim 17, wherein when the stored number of occurrences of the deadline miss is added, the number of occurrences of the deadline miss of the task indicated by the identification information corresponding to the number of occurrences is added. A task control method characterized by adding the same at the same time.
JP2000258439A 2000-08-29 2000-08-29 Task control device and task contol method Pending JP2002073354A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000258439A JP2002073354A (en) 2000-08-29 2000-08-29 Task control device and task contol method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000258439A JP2002073354A (en) 2000-08-29 2000-08-29 Task control device and task contol method

Publications (1)

Publication Number Publication Date
JP2002073354A true JP2002073354A (en) 2002-03-12

Family

ID=18746755

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000258439A Pending JP2002073354A (en) 2000-08-29 2000-08-29 Task control device and task contol method

Country Status (1)

Country Link
JP (1) JP2002073354A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005250659A (en) * 2004-03-02 2005-09-15 Nec Mobiling Ltd Task processing method and device using real time os and program
JP2007226587A (en) * 2006-02-24 2007-09-06 Mitsubishi Electric Corp Computer resource dynamic controller, computer resource dynamic control system and computer resource dynamic control method
JP2007264997A (en) * 2006-03-28 2007-10-11 Toyota Motor Corp Distributed control device
US8921497B2 (en) 2001-12-28 2014-12-30 Illinois Tool Works Inc. Adhesive of expoxy compound, aliphatic amine and tertiary amine
US9170841B2 (en) 2010-07-02 2015-10-27 Panasonic Intellectual Property Management Co., Ltd. Multiprocessor system for comparing execution order of tasks to a failure pattern
JP2016184308A (en) * 2015-03-26 2016-10-20 コニカミノルタ株式会社 Device, program, recording medium in which program is recorded, and method for causing multi-core processor to execute task
JP6242557B1 (en) * 2017-03-21 2017-12-06 三菱電機株式会社 Control device and control program
CN112783619A (en) * 2020-12-31 2021-05-11 杭州海康威视数字技术股份有限公司 Task scheduling method and device and automatic driving system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8921497B2 (en) 2001-12-28 2014-12-30 Illinois Tool Works Inc. Adhesive of expoxy compound, aliphatic amine and tertiary amine
JP2005250659A (en) * 2004-03-02 2005-09-15 Nec Mobiling Ltd Task processing method and device using real time os and program
JP2007226587A (en) * 2006-02-24 2007-09-06 Mitsubishi Electric Corp Computer resource dynamic controller, computer resource dynamic control system and computer resource dynamic control method
JP2007264997A (en) * 2006-03-28 2007-10-11 Toyota Motor Corp Distributed control device
US9170841B2 (en) 2010-07-02 2015-10-27 Panasonic Intellectual Property Management Co., Ltd. Multiprocessor system for comparing execution order of tasks to a failure pattern
JP2016184308A (en) * 2015-03-26 2016-10-20 コニカミノルタ株式会社 Device, program, recording medium in which program is recorded, and method for causing multi-core processor to execute task
JP6242557B1 (en) * 2017-03-21 2017-12-06 三菱電機株式会社 Control device and control program
WO2018173123A1 (en) * 2017-03-21 2018-09-27 三菱電機株式会社 Control device and control program
CN112783619A (en) * 2020-12-31 2021-05-11 杭州海康威视数字技术股份有限公司 Task scheduling method and device and automatic driving system
CN112783619B (en) * 2020-12-31 2024-01-02 杭州海康威视数字技术股份有限公司 Task scheduling method and device and automatic driving system

Similar Documents

Publication Publication Date Title
US6430594B1 (en) Real-time operating system and a task management system therefor
US7472214B2 (en) Real-time embedded simple monitor method and computer product
CN112099975B (en) Message processing method and system and storage medium
JP4241462B2 (en) Control unit and microcomputer
US8650336B2 (en) Direct memory access (DMA) device with event mover that moves event from event calendar to expired event queue without management of central processing unit
US20110078702A1 (en) Multiprocessor system
CN114564281A (en) Container scheduling method, device, device and storage medium
JP2002073354A (en) Task control device and task contol method
US8555285B2 (en) Executing a general-purpose operating system as a task under the control of a real-time operating system
JP2001236236A (en) Task controller and its task scheduling method
US20020010732A1 (en) Parallel processes run scheduling method and device and computer readable medium having a parallel processes run scheduling program recorded thereon
JP2000056989A (en) Task designing method
JP7263746B2 (en) Information processing equipment
EP1011045B1 (en) Object-oriented job scheduler
JP2001092676A (en) Task management system in integrated program
JP2004070579A (en) Task scheduling device, task scheduling method and program
CN118210611B (en) Logic event execution method, device, electronic equipment and storage medium
US20230176898A1 (en) Systems and methods for managing interrupt priority levels
US9847919B2 (en) Data network device discovery optimization to reduce data transfer volume
JPH0452942A (en) File transfer system
KR100321408B1 (en) Real-time processing system based on data processing sequence according to processing time and its processing method
JP2903525B2 (en) Job management method
JPH04370846A (en) Automatic change system for cpu use time
JP2010165209A (en) Multi-thread processor system
JPH05257718A (en) Process controller