JPH0667899A - Method for activating plural task periods in task scheduling device - Google Patents

Method for activating plural task periods in task scheduling device

Info

Publication number
JPH0667899A
JPH0667899A JP21808092A JP21808092A JPH0667899A JP H0667899 A JPH0667899 A JP H0667899A JP 21808092 A JP21808092 A JP 21808092A JP 21808092 A JP21808092 A JP 21808092A JP H0667899 A JPH0667899 A JP H0667899A
Authority
JP
Japan
Prior art keywords
task
frame
tasks
information
frame number
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.)
Granted
Application number
JP21808092A
Other languages
Japanese (ja)
Other versions
JP3243849B2 (en
Inventor
Kazuo Watanabe
一生 渡辺
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP21808092A priority Critical patent/JP3243849B2/en
Publication of JPH0667899A publication Critical patent/JPH0667899A/en
Application granted granted Critical
Publication of JP3243849B2 publication Critical patent/JP3243849B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To efficiently execute the repeated activating wok of plural tasks to be activated at their processing at a certain time interval by taking a chance of utilizing a interval timer interruption. CONSTITUTION:The task scheduling device is constituted of a control information part 1 storing frame control information 4 for regulating a time interval or the like for periodically activating each task and task constituting list 5 being activating task information in each frame, a processing part 2 for simultaneously activating plural tasks based upon the information 4 and an input part 3 including an information input means 10 for inputting relation or the like between each frame and an activated task and an interval timer 11 for generating interval timer and constituted so that plural timers are simultaneously activated at every frame based upon the information 4 and the list 5 at the time of generating an interval timer interruption for informing the start of each frame.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、タスクにCPU実行権
を与えるタスクスケジューリング装置において、フレー
ム番号カウンタ値と起動間隔に基づき起動される同じフ
レームに対応したタスク群をグループ化することによ
り、複数タスクを一定時間内で繰り返し起動できるよう
にした複数タスク周期起動方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a task scheduling device for giving a CPU execution right to a task, by grouping task groups corresponding to the same frame activated on the basis of a frame number counter value and an activation interval. The present invention relates to a method of periodically activating multiple tasks so that tasks can be repeatedly activated within a fixed time.

【0002】タスクにCPU実行権を与えるタスクスケ
ジューリング処理は、例えば、自分の航跡確認のため、
また近接航空機の確認等のために、レーダ等の電子機器
から、ある一定時間内で繰り返しデータをサンプリング
する航空機搭載システム(アビオニクスシステム)と
か,ファクトリオートメーション分野の、例えば、鉄
鋼、セメント等流体を扱う分野における、一定時間毎
に、温度・液位・濃度等を計測し、その値によって次の
コントロールを行う、プロセス制御システムのようなリ
アルタイムシステムに用いられる。
A task scheduling process for giving a CPU execution right to a task is, for example, to confirm the track of oneself.
In addition, to check the proximity aircraft, etc., we handle aircraft-mounted systems (avionics systems) that repeatedly sample data from electronic equipment such as radar within a certain time, or fluids such as steel and cement in the field of factory automation. It is used for real-time systems such as process control systems that measure temperature, liquid level, concentration, etc. at fixed time intervals in the field and perform the following control according to the values.

【0003】このようなシステムにおけるタスクスケジ
ューリング処理においては、金融機関の勘定系システム
等で要求される以上のリアルタイム性が,厳しく要求さ
れる。このため、システム全体のオーバヘッドを低減し
て厳密なリアルタイム性を発揮できる、タスクスケジュ
ーリング処理の複数タスク周期起動技術が要求される。
In the task scheduling processing in such a system, real-time performance more strictly than that required in accounting systems of financial institutions is strictly required. Therefore, there is a demand for a multi-task cycle activation technique for task scheduling processing that can reduce the overhead of the entire system and exhibit strict real-time performance.

【0004】[0004]

【従来の技術】従来、用いられているタスクスケジュー
リング装置の複数タスク起動方法を図6、図7を用いて
説明する。
2. Description of the Related Art A conventional method of activating a plurality of tasks in a task scheduling apparatus will be described with reference to FIGS.

【0005】ある時刻に、あるタスクを起動したい場
合、予め、タスクリクエストブロック(以下、TRBと
いう)をタスク数分作成しておく。例えば、TASK1 の場
合、時刻 1H00M00S 経過時に、時刻 1H05M00S の登録を
すれば良い。従って、各時刻において、図6(c) {この
図は、1H00M00Sより前に作成された実行タスクのキュー
の例を示しており、1H00M00Sを経過すると、次の時刻、
例えば、1H05M00Sに実行されるタスクのキューが作成さ
れる}に示すように、タスク数分作成すれば良い。
When it is desired to activate a certain task at a certain time, task request blocks (hereinafter referred to as TRBs) are created in advance for the number of tasks. For example, in the case of TASK1, the time 1H05M00S should be registered when the time 1H00M00S has elapsed. Therefore, at each time, Fig. 6 (c) {This figure shows an example of the queue of execution tasks created before 1H00M00S. After 1H00M00S, the next time,
For example, a queue of tasks to be executed at 1H05M00S is created}, and as many tasks as the number of tasks may be created.

【0006】TRBは図6(b)に示すように、次のT
RBの存在を管理するタイマキュー情報、対応するタス
クコントロールブロック(以下、TCBという)アドレ
スと,起動時刻が格納された制御ブロックであり、作成
されたTRBを上記タイマキュー情報により時系列でキ
ューイングしておく。
The TRB has the following T
This is a control block in which timer queue information for managing the existence of RBs, a corresponding task control block (hereinafter referred to as TCB) address, and an activation time are stored. The created TRBs are queued in time series by the timer queue information. I'll do it.

【0007】例えば、図6(a)のように、時刻1時に
TASK1、4を、1時5分にTASK1、2を、1時
10分にTASK1、3を1時15分にTASK1、5
を起動したい場合、図6(c)のように、最初の起動時
刻毎に1TRB(この例では、計5つのTRB)を用意
し、時系列でキューイングしておく。
For example, as shown in FIG. 6A, TASK1 and TASK1 and TASK1 and TASK1 and TASK1 and TASK5 are TASK1 and TASK1 and TASK1 and TASK1 and TASK1 and TASK1 and TASK3, respectively.
6C, 1TRB (in this example, a total of 5 TRBs) are prepared for each initial start time and queued in time series, as shown in FIG. 6C.

【0008】一方、実際のタスク起動方法を図7を使っ
て説明する。先ずインタバルタイマ割り込みを契機に、
タイマキューの先頭から現在時刻を経過したTRBを検
索する(ステップ101 )。
On the other hand, an actual task starting method will be described with reference to FIG. First of all, triggered by the interval timer interrupt,
The TRB whose current time has elapsed from the head of the timer queue is searched (step 101).

【0009】該TRB内の起動時刻が現在時刻を経過し
ていなければ(ステップ102 )、処理を終了するために
ステップ 105に分岐する。又、起動時刻が、現在時刻を
経過していれば(ステップ102 )、該TRB内に格納さ
れたTCBアドレスから該当タスクを知り、そのタスク
を起動できる(タスク起動要求)状態にする(ステップ
103 )。
If the activation time in the TRB has not passed the current time (step 102), the process branches to step 105 to end the process. If the start time has passed the current time (step 102), the task is known from the TCB address stored in the TRB, and the task can be started (task start request) (step start request).
103).

【0010】更に、次のタイマキューがあるか否かをT
RBのタイマキュー情報より知り(ステップ104 )、も
し、次のTRBが存在すれば、ステップ101 に戻り同様
の処理を繰り返す。一方、次のTRBが存在しなければ
(ステップ104 )、起動要求のあるタスクの有無を調べ
(ステップ105 )、無ければ処理を終了し、有れば、タ
スクスケジューラに分岐し(ステップ106 )、起動要求
のでているタスクのうち優先順位の最も高いタスクにC
PU実行権を与える。即ち、デキューイングされる。
Further, it is determined whether or not there is a next timer queue.
Knowing from the timer queue information of the RB (step 104), if the next TRB exists, the process returns to step 101 and the same processing is repeated. On the other hand, if the next TRB does not exist (step 104), the presence / absence of the task with the activation request is checked (step 105). If there is not, the process is terminated, and if there is, the process branches to the task scheduler (step 106), C is assigned to the task with the highest priority among the tasks that are requested to start.
Grant PU execution right. That is, it is dequeued.

【0011】このように従来技術においては、同一時刻
に複数タスクを同時に起動させるためには、タイマキュ
ーの先頭から順次検索し、タイマキューがなくなるか、
あるいはTRB内の起動時刻が現在時刻を経過しなくな
るまで、ステップ101 からステップ104 を繰り返し処理
するものであった。
As described above, in the prior art, in order to activate a plurality of tasks at the same time at the same time, the timer queue is searched sequentially from the beginning, and whether or not the timer queue disappears,
Alternatively, steps 101 to 104 are repeated until the activation time in the TRB does not exceed the current time.

【0012】[0012]

【発明が解決しようとする課題】ところで、航空機搭載
システムやプロセス制御システムでは、外部装置(ディ
スプレイ装置、センサ等)が複数接続され、各々が異な
る機能を有し、それらに対応したタスクが機能単位に構
成されるため、各フレーム内で起動されるタスクが複数
存在し、しかもある一定時間間隔で繰り返し処理するこ
とが要求される。
By the way, in an aircraft-mounted system or a process control system, a plurality of external devices (display devices, sensors, etc.) are connected, each of which has a different function, and the tasks corresponding to them are functional units. Therefore, there are a plurality of tasks activated in each frame, and it is required to repeatedly process the tasks at a certain time interval.

【0013】このようなシステムでも、従来は、図6、
図7を使用して説明したように、タイマキューのキュー
イング機能、デキューイング機能等を使用して、複数タ
スクの起動処理を行っていた。
Even in such a system, conventionally, as shown in FIG.
As described with reference to FIG. 7, the queuing function of the timer queue, the dequeuing function, and the like are used to perform the activation processing of a plurality of tasks.

【0014】このため、同一フレーム内で起動されるタ
スクが多くなればなるほど、タイマキュー検索や時刻判
定の処理を繰り返すため、タイマキューの検索からタス
ク起動までの処理時間が長くなり、しいては、システム
全体のオーバヘッドが大きくなるという問題を生じてい
た。
Therefore, as the number of tasks activated in the same frame increases, the processing of timer queue search and time determination is repeated, so that the processing time from the timer queue search to the task activation becomes longer, which is more likely to occur. The problem is that the overhead of the entire system increases.

【0015】本発明は、タスクスケジューリング装置に
おいて、フレーム制御情報およびタスク構成リストか
ら、該当フレーム内の複数タスクを即座に起動させるこ
とができる、複数タスクの周期起動方法を提供すること
を目的とする。
It is an object of the present invention to provide a method for cyclically activating a plurality of tasks in a task scheduling device, which is capable of activating a plurality of tasks in a corresponding frame immediately from frame control information and a task configuration list. .

【0016】[0016]

【課題を解決するための手段】図1は本発明の原理構成
図である。上記の問題点は下記の如くに構成したタスク
スケジューリング装置の複数タスク周期起動方法により
解決される。
FIG. 1 is a block diagram showing the principle of the present invention. The above problems can be solved by a method of activating a plurality of tasks in a task scheduling apparatus configured as follows.

【0017】タスクスケジューリング装置を、周期的に
起動される各タスクの起動の時間間隔を規定するフレー
ムの制御情報4と,各フレーム内のタスク起動情報であ
るタスク構成リスト5を格納した制御情報部1と、該制
御情報部1に上記各フレームと起動タスクの関係を設定
し、インタバルタイマ割り込みを契機に、上記フレーム
制御情報4に基づき、複数のタスクを一度に起動させる
処理部2と、上記各フレームと起動タスクの関係等の情
報を入力する情報入出力手段10,及びインタバルタイマ
11 とからなる入力部3とで構成し、該制御情報部1
に、あるインタバルタイマ割り込みで、対象となるフレ
ームの番号を管理しているフレーム番号カウンタ4b
と,該フレーム番号カウンタ4bが指示するフレームで
起動されるタスク群を管理しているタスク構成リスト5
のアドレス情報4cと、タスク群を周期的に起動させる
ための管理に使用する最大フレーム番号情報4aからな
るフレーム制御情報4と、当該インタバルタイマ割り込
みで起動されるタスク数と、それらのタスクコントロー
ルブロック(TCB)群のアドレスを管理しているタス
ク構成リスト5とを設け、上記フレーム読み出しの開始
を通知するためのインタバルタイマ割り込みを契機に、
上記フレーム番号カウンタ4b、最大フレーム番号4a
より、該当フレームのタスク構成リスト5のアドレスを
求め、該タスク構成リスト5上に記された各フレーム番
号当たりの当該タスク群のタスクコントロールブロック
(TCB)アドレスを一度に検索することにより、各フ
レーム毎に複数タスクを一度に、かつ周期的に起動させ
るに構成する。
In the task scheduling device, a control information section that stores control information 4 of a frame that defines a time interval of activation of each task that is periodically activated and a task configuration list 5 that is task activation information in each frame. 1 and a processing unit 2 that sets the relationship between each frame and the activation task in the control information unit 1 and that activates a plurality of tasks at once based on the frame control information 4 triggered by an interval timer interrupt; Information input / output means 10 for inputting information such as the relationship between each frame and the activation task, and an interval timer
And the control information unit 1
The frame number counter 4b that manages the number of the target frame by a certain interval timer interrupt
And a task configuration list 5 that manages a group of tasks activated by the frame designated by the frame number counter 4b.
Address information 4c, frame control information 4 including maximum frame number information 4a used for management for periodically activating a task group, the number of tasks activated by the interval timer interrupt, and their task control blocks. A task configuration list 5 that manages addresses of the (TCB) group is provided, and triggered by an interval timer interrupt for notifying the start of the frame reading,
Frame number counter 4b, maximum frame number 4a
From the task configuration list 5 of the relevant frame, and the task control block (TCB) address of the relevant task group for each frame number written on the task configuration list 5 is searched at once to obtain each frame. Each task is configured to start multiple tasks at once and periodically.

【0018】[0018]

【作用】本発明では、インタバルタイマ割り込みを契機
に、図1に示したフレーム制御情報4上のフレーム番号
カウンタ値をインデックスとして、該当フレームのタス
ク構成リストを参照し、更に、該タスク構成リストによ
り、起動しなければならない複数のタスクを一度に把握
できる。またフレーム制御情報4上の最大フレーム番号
と、インタバルタイマ割り込み毎のフレーム番号カウン
タの更新とにより、一定周期毎にフレーム番号カウンタ
を同一フレーム番号に設定でき、その結果、周期的に同
じタスク群を起動することができる。
In the present invention, triggered by the interval timer interrupt, the task configuration list of the corresponding frame is referred to by using the frame number counter value in the frame control information 4 shown in FIG. 1 as an index. , You can grasp multiple tasks that need to be started at once. Further, the maximum frame number on the frame control information 4 and the update of the frame number counter for each interval timer interrupt can set the frame number counter to the same frame number at regular intervals, and as a result, the same task group can be periodically generated. Can be activated.

【0019】従って、従来の方法であるタイマキューの
キューイング、デキューイング機能を中心としたタイマ
管理方法に頼る必要がないので、キュー検索、時間経過
の判定の繰り返し処理等から生ずるシステム全体のオー
バーヘッドの回避ができ、複数タスクの周期起動を効率
的に行なえるという効果を発揮する。
Therefore, it is not necessary to rely on the conventional method of managing the timer queue such as the queuing and dequeuing functions of the timer queue, so that the overhead of the entire system resulting from the repeated processing of the queue search, the judgment of the passage of time, etc. It is possible to avoid the above, and it is possible to efficiently perform the cyclic activation of multiple tasks.

【0020】[0020]

【実施例】以下本発明の実施例を図面によって詳述す
る。前述の図1は、本発明の原理説明図であり、図2、
図3は本発明の一実施例を示した図である。尚、全図を
通して同じ符号は同じ対象物を示している。
Embodiments of the present invention will be described in detail below with reference to the drawings. The above-mentioned FIG. 1 is an explanatory view of the principle of the present invention.
FIG. 3 is a diagram showing an embodiment of the present invention. The same reference numerals indicate the same objects throughout the drawings.

【0021】先ず、制御情報部1はメモリに常駐し、本
装置(タスクスケジューリング装置)起動時、あるいは
フレーム内のタスク構成変更時に、フレーム番号カウン
タの初期値を設定(例えば7に設定)したり、タスク構
成リスト情報(各フレーム毎のタスク構成リストアドレ
ス)を設定する。
First, the control information unit 1 is resident in the memory, and sets the initial value of the frame number counter (for example, set to 7) when the present apparatus (task scheduling apparatus) is started or when the task configuration in the frame is changed. , Task configuration list information (task configuration list address for each frame) is set.

【0022】その構成は、図3に示すように、フレーム
制御情報4とタスクをグループ化したタスク構成リスト
5を含み、フレーム制御情報4として、最大フレーム番
号4aとフレーム番号カウンタ4bを装置全体で1つず
つ備え、タスク構成リスト5として、タスク数とタスク
を識別するためのTCBアドレスとを、起動すべきタス
クでグループ化された単位、すなわち各フレーム毎に起
動させるタスク群の組合せパターン数分備えている。
As shown in FIG. 3, the configuration includes a frame control information 4 and a task configuration list 5 in which tasks are grouped. As the frame control information 4, a maximum frame number 4a and a frame number counter 4b are used in the entire device. The number of tasks and the TCB address for identifying the tasks are provided as the task configuration list 5 in the unit grouped by the tasks to be activated, that is, the number of combination patterns of the task groups to be activated for each frame. I have it.

【0023】処理部2は制御情報部の初期設定7、該当
フレーム内の複数タスクを一度に起動する周期スケジュ
ーリング8、優先順位が最も高いタスクにCPU実行権
を与えるタスクスケジューラ9の各機能で構成されたプ
ログラム群であり、メモリ上に配置されCPU(プロセ
ッサ)で実行されるものである。
The processing unit 2 is composed of the initial setting 7 of the control information unit, the periodical scheduling 8 for activating a plurality of tasks in the frame at once, and the task scheduler 9 for giving the CPU execution right to the task with the highest priority. These are a group of executed programs, which are arranged on a memory and executed by a CPU (processor).

【0024】入力部3は、最大フレーム番号、タスク群
でグループ化された各タスク構成リストのタスク数、登
録タスク番号、そのリストを使用する最初のフレーム番
号(開始フレーム番号)、及び次にそのリストを使用す
るまでのフレーム間隔等、制御情報部1の設定情報を記
述したプログラム(情報入力手段)10、と一定時間間隔
で割り込みを発生させるインタバルタイマ11で構成さ
れ、上述のような周期起動に必要な情報を入力したり、
一定時間間隔で周期スケジューリング処理を実行させる
ためのものである。
The input unit 3 has a maximum frame number, the number of tasks in each task configuration list grouped by a task group, a registered task number, a first frame number (start frame number) using the list, and the next. It is composed of a program (information input means) 10 in which setting information of the control information section 1 such as a frame interval until the list is used, and an interval timer 11 for generating an interrupt at a constant time interval, and the above-described periodic activation. Enter the required information in
This is for executing the periodic scheduling process at regular time intervals.

【0025】図4は本発明の一実施例処理フロー図であ
る。入力部3の情報入力手段(プログラム)10に記述さ
れた、最大フレーム番号、タスク群でグループ化された
各タスク構成リスト 5のタスク数、各フレーム毎に起動
されるタスクの登録タスク番号、そのタスク構成リスト
5を使用する最初のフレーム番号等、周期起動に必要な
情報に基づき、制御情報部1に設けられたフレーム制御
情報4とタスク構成リスト5の内容を図3に示すように
設定した後、インタバルタイマ11に割り込み時間間隔を
設定する(ステップ201 )。
FIG. 4 is a processing flow chart of an embodiment of the present invention. The maximum frame number described in the information input means (program) 10 of the input unit 3, the number of tasks in each task configuration list 5 grouped by task group, the registered task number of the task activated for each frame, Task configuration list
After setting the contents of the frame control information 4 and the task configuration list 5 provided in the control information unit 1 as shown in FIG. Set an interrupt time interval in timer 11 (step 201).

【0026】次に、インタバルタイマ割り込みを受け付
け(ステップ202 )周期スケジューリング処理がCPU
により実行される。周期スケジューリング処理は、メモ
リ上に配置されたフレーム番号カウンタ(FCNT)4bを読
み込み、値が最大フレーム番号4a以上であれば『0』
クリアする。そうでなければフレーム番号カウンタ4b
に1を加算する(ステップ203 )。
Next, an interval timer interrupt is accepted (step 202) and the periodic scheduling process is executed by the CPU.
Executed by. In the periodic scheduling process, the frame number counter (FCNT) 4b arranged in the memory is read, and if the value is the maximum frame number 4a or more, it is "0".
clear. Otherwise, the frame number counter 4b
Is incremented by 1 (step 203).

【0027】周期スケジューリング処理は、フレーム番
号カウンタ4bからフレーム制御情報4内のタスク構成
リスト情報4cに格納されたタスク構成リストアドレス
を読み込み(ステップ204 )、タスク構成リストに格納
されたタスク数5aとTCBアドレス5bを読み込む
(ステップ205 )。
In the periodic scheduling process, the task configuration list address stored in the task configuration list information 4c in the frame control information 4 is read from the frame number counter 4b (step 204), and the number of tasks 5a stored in the task configuration list is read. The TCB address 5b is read (step 205).

【0028】ここで取得したタスク数5a、TCBアド
レス5bに基づいて、一度に複数タスクを起動要求有り
の状態(CPU実行権が得られる資格をもたせる)にさ
せる(ステップ206 )。
On the basis of the number of tasks 5a and the TCB address 5b acquired here, a plurality of tasks are brought into a state in which a start request is made at one time (a CPU execution right is obtained) (step 206).

【0029】次に、タスクスケジューラに分岐し(ステ
ップ207 )、起動要求有りの状態にされた複数タスクの
中で最も優先順位の高いタスクにCPU実行権を与え
る。上述の処理を図5の本発明の一実施例動作説明図を
用いて説明する。図5は、各フレームと起動タスクとの
関係から、入力部 3が入力する情報の具体的な値と、そ
の値から設定されたフレーム制御情報 4とタスク構成リ
スト 5の内容を示すものである。
Next, the process branches to the task scheduler (step 207) and the CPU execution right is given to the task having the highest priority among the plurality of tasks in the activation request state. The above processing will be described with reference to the operation explanatory diagram of the embodiment of the present invention in FIG. FIG. 5 shows the specific values of the information input by the input unit 3, the frame control information 4 and the contents of the task configuration list 5 set from the values based on the relationship between each frame and the activation task. .

【0030】例えば、最大フレーム番号4aを『7』と
し、タスク−1は、全てのフレーム(フレーム間隔が
『0』)で起動され、タスク−2は、フレーム番号
『1』を開始フレーム番号としフレーム間隔が『2』で
起動され、タスク−3は、フレーム番号『2』を開始フ
レーム番号としフレーム間隔が『4』で起動され、タス
ク−4は、フレーム番号『0』を開始フレーム番号とし
フレーム間隔が『8』で起動され、タスク−5は、フレ
ーム番号『4』を開始フレーム番号としフレーム間隔
『8』で起動されるものとして、タスクのグループ化を
行うと、図5に示すようにグループは、タスク−1・
4、タスク−1・2、タスク−1・3、タスク−1・5
の4通りの組合せ(CNLIST-1〜CNLIST-4)となる。
For example, the maximum frame number 4a is set to "7", task-1 is started in all frames (frame intervals are "0"), and task-2 is set to start frame number "1". Task-3 is started with a frame interval of "2", task-3 is started with a frame number of "2" as a start frame number, and task-4 is started with a frame number of "0" as a start frame number. Assuming that the task is started at the frame interval "8" and the task-5 is started at the frame interval "8" with the frame number "4" as the start frame number, the tasks are grouped as shown in FIG. Group is task-1
4, task-1.2, task-1.3, task-1.5
There are four combinations (CNLIST-1 to CNLIST-4).

【0031】フレーム番号カウンタ4bには、初期設定
値として、最大フレーム番号値(この例では『7』)を
設定する。制御情報部1のフレーム番号カウンタ4b以
外の内容は、初期設定時、あるいは各フレーム内のタス
ク構成を変更する場合のみ書き換えられる。
The maximum frame number value ("7" in this example) is set in the frame number counter 4b as an initial setting value. The contents of the control information section 1 other than the frame number counter 4b are rewritten only at the time of initial setting or when the task configuration in each frame is changed.

【0032】この状態で、インタバルタイマ割り込みが
発生すると、フレーム番号カウンタ4bの内容『7』が
最大フレーム番号4aの内容『7』と等しい(最大フレ
ーム番号値未満ではない)ため、フレーム番号カウンタ
4bに『0』を設定し、その値に基づき、タスク構成リ
スト情報 4c の0番目の内容(CNLIST-1 アドレス) か
ら、タスク構成リスト 5の先頭アドレスを読み込み、更
にタスク数5aとTCBアドレス (例えば、TCB-1 アド
レス) 5bを読み込み、フレーム番号『0』のタスク群
(タスク−1とタスク−4)を一度に起動させる。2回
目のインタバルタイマ割り込み発生時は、フレーム番号
カウンタ4bの内容『0』と最大フレーム番号4aの内
容を比較すると、フレーム番号カウンタ4bが小さいた
め、フレーム番号カウンタ4bの内容に1を加算して
『1』とし、その値に基づきタスク構成リスト情報4c
の1番目からタスク構成リスト 5のアドレスを読み込
み、フレーム番号『1』におけるタスク群(タスク−1
とタスク─2)を一度に起動させる。
When an interval timer interrupt occurs in this state, the content "7" of the frame number counter 4b is equal to the content "7" of the maximum frame number 4a (not less than the maximum frame number value), so the frame number counter 4b Is set to "0", and based on this value, the top address of the task configuration list 5 is read from the 0th content (CNLIST-1 address) of the task configuration list information 4c, and the number of tasks 5a and TCB address (for example, , TCB-1 address) 5b, and activates the task group (task-1 and task-4) of frame number "0" at once. When the second interval timer interrupt occurs, comparing the content "0" of the frame number counter 4b with the content of the maximum frame number 4a, the frame number counter 4b is smaller, so 1 is added to the content of the frame number counter 4b. Set to "1", and task configuration list information 4c based on that value
The address of the task configuration list 5 is read from the first of the, and the task group in the frame number "1" (task-1
And task-2) are started at once.

【0033】このようにして、フレーム番号カウンタ4
bが最大フレーム番号『7』を越えるまで、処理を繰り
返し、フレーム番号『0』から再び処理を開始すること
により、各タスクを周期的に起動させることが可能であ
る。
In this way, the frame number counter 4
By repeating the process until b exceeds the maximum frame number "7" and restarting the process from the frame number "0", each task can be activated periodically.

【0034】上述の実施例では、情報入力手段としてプ
ログラムを使用したが、他の実施例として英数字キーを
備えたキーボードを用いることも可能である。また、1
回のサイクル(最初のフレームから最後のフレームま
で)におけるフレーム数が『8』で、システム全体のタ
スク数が『5』の場合について説明したが、システム障
害により、システム全体の機能を縮小させ運用するよう
な縮退運用にも、これらフレーム数,タスク数等の内容
やタスク構成リスト情報4cを再設定するだけで適用で
きる。即ち、短時間にシステムを正常運転させることを
目的とするフォルト・トレラントシステムにも適用でき
る。
In the above-mentioned embodiment, the program is used as the information input means, but as another embodiment, a keyboard having alphanumeric keys can be used. Also, 1
The case where the number of frames in one cycle (from the first frame to the last frame) is “8” and the number of tasks in the entire system is “5” has been explained. However, due to a system failure, the function of the entire system is reduced to operate. Such degenerate operation can be applied only by resetting the contents such as the number of frames and the number of tasks and the task configuration list information 4c. That is, it can be applied to a fault tolerant system whose purpose is to make the system operate normally in a short time.

【0035】更に、タスクスケジューリング装置の複数
タスク周期起動方法は、航空機搭載システム(アビオニ
クスシステム)の他に、ロボット制御等のセンサーベー
スシステムのような、ある一定時間間隔で定型業務を繰
り返し処理するものにも適用できる。
Furthermore, the method for periodically activating a plurality of tasks of the task scheduling apparatus is a method for repeatedly performing routine tasks at a certain time interval, such as a sensor-based system such as a robot control in addition to an aircraft-mounted system (avionics system). Can also be applied to.

【0036】[0036]

【発明の効果】以上説明したように、本発明によれば、
開始フレーム番号とフレーム間隔により一意的に決ま
る、タスクをグループ化したタスク構成リストを用いる
ことにより、インタバルタイマ割り込みを契機として、
フレーム番号カウンタに基づき、フレーム内のタスク群
を一度に検索することができ、ある一定時間間隔で周期
的に、複数のタスクを一度に起動させることが可能であ
る。
As described above, according to the present invention,
By using a task configuration list that groups tasks, which is uniquely determined by the start frame number and frame interval, the interval timer interrupt
Based on the frame number counter, a task group in a frame can be searched at one time, and a plurality of tasks can be activated at once at a certain fixed time interval.

【0037】従って、従来の方法のように、キューの管
理(検索、キューイング、デキューイング)、時刻の判
定等の繰り返しの処理が必要ないため、システム全体の
オーバヘッドの低減に効果があり、効率的な複数タスク
の周期起動が可能となり、システム全体の処理時間の短
縮に寄与する。
Therefore, unlike the conventional method, there is no need for repeated processing such as queue management (searching, queuing, dequeuing) and time determination, which is effective in reducing the overhead of the entire system and is efficient. This enables periodical activation of multiple tasks, contributing to shortening the processing time of the entire system.

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

【図1】本発明の原理説明図FIG. 1 is an explanatory view of the principle of the present invention.

【図2】本発明の一実施例構成図(その1)FIG. 2 is a configuration diagram of an embodiment of the present invention (No. 1)

【図3】本発明の一実施例構成図(その2)FIG. 3 is a configuration diagram of an embodiment of the present invention (part 2)

【図4】本発明の一実施例処理フロー図FIG. 4 is a process flow chart of an embodiment of the present invention.

【図5】本発明の一実施例動作説明図FIG. 5 is an operation explanatory diagram of an embodiment of the present invention.

【図6】従来技術の説明図(その1)FIG. 6 is an explanatory view of a conventional technique (No. 1)

【図7】従来技術の説明図(その2)FIG. 7 is an explanatory diagram of a conventional technique (No. 2)

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

1 制御情報部 2 処理部 3 入力部 4 フレーム制御情報 4a 最大フレーム番号 4b フレーム番号カウンタ 4c タスク構成リスト情報 5 タスク構成リスト 5a タスク数 5b TCB(Task Control Block)アドレス 6 タスク制御ブロック(TCB) 7 初期設定部 8 フレーム内複数タスク同時起動要求部(周期スケ
ジューリング部) 9 タスクスケジューラ 10 情報入力手段(プログラム) 11 インタバルタイマ 101 〜106, 201 〜207 処理のステップ
DESCRIPTION OF SYMBOLS 1 control information section 2 processing section 3 input section 4 frame control information 4a maximum frame number 4b frame number counter 4c task configuration list information 5 task configuration list 5a number of tasks 5b TCB (Task Control Block) address 6 task control block (TCB) 7 Initial setting section 8 Multiple task simultaneous activation request section in frame (periodic scheduling section) 9 Task scheduler 10 Information input means (program) 11 Interval timer 101 to 106, 201 to 207 Steps of processing

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】タスクスケジューリング装置を、周期的に
起動される各タスクの起動の時間間隔を規定するフレー
ムの制御情報(4)と,各フレーム内のタスク起動情報
であるタスク構成リスト(5)を格納した制御情報部
(1)と、該制御情報部(1)に上記各フレームと起動
タスクの関係を設定し、インタバルタイマ割り込みを契
機に、上記フレーム制御情報(4)に基づき、複数のタ
スクを一度に起動させる処理部(2)と、上記各フレー
ムと起動タスクの関係等の情報を入力する情報入出力手
段(10) ,及びインタバルタイマ(11)とからなる入力部
(3)とで構成し、 該制御情報部(1)に、あるインタバルタイマ割り込み
で、対象となるフレームの番号を管理しているフレーム
番号カウンタ(4b)と,該フレーム番号カウンタ(4
b)が指示するフレームで起動されるタスク群を管理し
ているタスク構成リスト(5)のアドレス情報(4c)
と、タスク群を周期的に起動させるための管理に使用す
る最大フレーム番号情報(4a)からなるフレーム制御
情報(4)と、当該インタバルタイマ割り込みで起動さ
れるタスク数と、それらのタスクコントロールブロック
(TCB)群のアドレスを管理している上記タスク構成
リスト(5)とを設け、 上記フレーム読み出しの開始を通知するためのインタバ
ルタイマ割り込みを契機に、上記フレーム番号カウンタ
(4b)、最大フレーム番号(4a)より、該当フレー
ムのタスク構成リスト(5)のアドレスを求め、該タス
ク構成リスト(5)上に記された各フレーム番号当たり
の当該タスク群のタスクコントロールブロック(TC
B)アドレスを一度に検索することにより、各フレーム
毎に複数タスクを一度に、かつ周期的に起動させること
を特徴とするタスクスケジューリング装置の複数タスク
周期起動方法。
1. A task scheduling device, wherein control information (4) of a frame that defines a time interval of activation of each task that is periodically activated, and a task configuration list (5) that is task activation information in each frame. Is stored in the control information section (1), and the relationship between each frame and the activation task is set in the control information section (1). A processing unit (2) for activating tasks at one time, an input / output unit (10) for inputting information such as the relationship between each frame and the activation task, and an input unit (3) including an interval timer (11). And a frame number counter (4b) that manages the number of the target frame by a certain interval timer interrupt in the control information section (1), and the frame number counter (4
Address information (4c) of the task configuration list (5) that manages the task group activated in the frame designated by b)
Frame control information (4) consisting of maximum frame number information (4a) used for management for periodically activating a task group, the number of tasks activated by the interval timer interrupt, and those task control blocks The task configuration list (5) that manages the addresses of the (TCB) group is provided, and the frame number counter (4b) and the maximum frame number are triggered by the interval timer interrupt for notifying the start of the frame reading. From (4a), the address of the task configuration list (5) of the relevant frame is obtained, and the task control block (TC) of the relevant task group for each frame number written on the task configuration list (5).
B) A method for periodically activating multiple tasks in a task scheduling device, wherein a plurality of tasks are activated at once for each frame by retrieving addresses at once.
JP21808092A 1992-08-18 1992-08-18 Task scheduling device Expired - Fee Related JP3243849B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21808092A JP3243849B2 (en) 1992-08-18 1992-08-18 Task scheduling device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21808092A JP3243849B2 (en) 1992-08-18 1992-08-18 Task scheduling device

Publications (2)

Publication Number Publication Date
JPH0667899A true JPH0667899A (en) 1994-03-11
JP3243849B2 JP3243849B2 (en) 2002-01-07

Family

ID=16714329

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21808092A Expired - Fee Related JP3243849B2 (en) 1992-08-18 1992-08-18 Task scheduling device

Country Status (1)

Country Link
JP (1) JP3243849B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08339317A (en) * 1995-04-06 1996-12-24 Bull Sa Periodic polling management apparatus for monitoring of information processing resource in network and method executed by said apparatus
US6430594B1 (en) 1997-02-17 2002-08-06 Nec Corporation Real-time operating system and a task management system therefor
US6748444B1 (en) 1999-11-26 2004-06-08 Mitsubishi Denki Kabushiki Kaisha Transmission system of short time lag
US7386853B2 (en) 2001-07-12 2008-06-10 Denso Corporation Multitasking operating system capable of reducing power consumption and vehicle electronic control unit using same
US8184860B2 (en) 2006-07-21 2012-05-22 Hitachi, Ltd. Image processing device for controlling a plurality of tasks
WO2013031286A1 (en) * 2011-09-02 2013-03-07 株式会社日立製作所 Data sharing device and data sharing method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08339317A (en) * 1995-04-06 1996-12-24 Bull Sa Periodic polling management apparatus for monitoring of information processing resource in network and method executed by said apparatus
US6430594B1 (en) 1997-02-17 2002-08-06 Nec Corporation Real-time operating system and a task management system therefor
US6748444B1 (en) 1999-11-26 2004-06-08 Mitsubishi Denki Kabushiki Kaisha Transmission system of short time lag
US7386853B2 (en) 2001-07-12 2008-06-10 Denso Corporation Multitasking operating system capable of reducing power consumption and vehicle electronic control unit using same
US8184860B2 (en) 2006-07-21 2012-05-22 Hitachi, Ltd. Image processing device for controlling a plurality of tasks
WO2013031286A1 (en) * 2011-09-02 2013-03-07 株式会社日立製作所 Data sharing device and data sharing method

Also Published As

Publication number Publication date
JP3243849B2 (en) 2002-01-07

Similar Documents

Publication Publication Date Title
US7451447B1 (en) Method, computer program and apparatus for operating system dynamic event management and task scheduling using function calls
Stankovic et al. Deadline scheduling for real-time systems: EDF and related algorithms
Tindell et al. An extendible approach for analyzing fixed priority hard real-time tasks
Locke Software architecture for hard real-time applications: Cyclic executives vs. fixed priority executives
Mall Real-time systems: theory and practice
US7831980B2 (en) Scheduling threads in a multi-processor computer
Weiderman et al. Hartstone uniprocessor benchmark: Definitions and experiments for real-time systems
Fidge Real-time schedulability tests for preemptive multitasking
US6473780B1 (en) Scheduling of direct memory access
RU2003118641A (en) IMPLEMENTATION OF COMPUTER MULTI-TASK THROUGH VIRTUAL FLOW ORGANIZATION
Lee et al. On-line scheduling of scalable real-time tasks on multiprocessor systems
JPH0667899A (en) Method for activating plural task periods in task scheduling device
Stewart et al. A tool for analyzing and fine tuning the real-time properties of an embedded system
Nass et al. Analysis of Methods for Planning Data Processing Tasks in Distributed Systems for the Remote Access to Information Resources: Topic: Communication and control systems and networks
Nicol et al. Optimistic parallel simulation of continuous time Markov chains using uniformization
Bunt Scheduling techniques for operating systems
Nosrati et al. Task scheduling algorithms introduction
AL-Bakhrani et al. Comparative analysis of cpu scheduling algorithms: Simulation and its applications
Gergeleit et al. TaskPair-scheduling with optimistic case execution times-An example for an adaptive real-time system
Basha et al. Real Time Systems: Challenges and Applications
US8621471B2 (en) High accuracy timer in a multi-processor computing system without using dedicated hardware timer resources
Ploeg et al. 18 Progress in Transputer and Occam Research R. Miles and A. Chalmers (Eds.) IOS Press, 1994 Dedicated Multi-Priority Scheduling
CN112817811B (en) Method, device, equipment and storage medium for predicting scanning failure rate
Naghibzadeh Handling startling circumstances with IRM scheduler of real-time systems
JPH0199132A (en) Multi-task executing device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010925

LAPS Cancellation because of no payment of annual fees