JPH0895805A - Task management device - Google Patents

Task management device

Info

Publication number
JPH0895805A
JPH0895805A JP23110194A JP23110194A JPH0895805A JP H0895805 A JPH0895805 A JP H0895805A JP 23110194 A JP23110194 A JP 23110194A JP 23110194 A JP23110194 A JP 23110194A JP H0895805 A JPH0895805 A JP H0895805A
Authority
JP
Japan
Prior art keywords
task
priority
schedule
bit
priority level
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
JP23110194A
Other languages
Japanese (ja)
Inventor
Hideki Mochizuki
秀樹 望月
Hideto Kurose
秀人 黒瀬
Fujio Kodate
富士雄 小舘
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP23110194A priority Critical patent/JPH0895805A/en
Publication of JPH0895805A publication Critical patent/JPH0895805A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To select a task which is low in priority level without changing the position of the task in a task ready queue by selecting the task which is low in priority each time a task schedule is generated from timer information and timing information. CONSTITUTION: When the bit of timer information in a timer communication area 9 corresponding to a bit '1' of a timing mask 10 is '1', a task is selected on the basis of a special priority level schedule instead of a priority level schedule. In the special priority level schedule, a bit map 5 indicating the position of an executable task for a priority level schedule in a ready queue is masked with one of bit patterns 4a-4d of a bit pattern 4 to find a bit map 6 indicating the position of an executable task for the special priority level schedule in the ready queue. With this bit map, special priority level scheduling is performed to select, for example, the task 8c which is low in priority.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータシステム
に係わり、特に、システム内に存在する複数の実行可能
タスクをスケジュールするタスク管理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer system, and more particularly to a task management device for scheduling a plurality of executable tasks existing in the system.

【0002】[0002]

【従来の技術】図4は、コンピュータシステムに存在す
る複数のタスクを、優先順位によりスケジュールする従
来のタスク管理装置の概念を示す模式図である。
2. Description of the Related Art FIG. 4 is a schematic diagram showing the concept of a conventional task management apparatus for scheduling a plurality of tasks existing in a computer system in order of priority.

【0003】図4において、1は実行可能タスクのレデ
ィキューを示すビットマップ、2は実行可能タスクのレ
ディキュー、3a,3b,3cはタスク制御テーブルか
らなる実行可能タスクである。
In FIG. 4, 1 is a bitmap showing a ready queue of executable tasks, 2 is a ready queue of executable tasks, and 3a, 3b and 3c are executable tasks consisting of a task control table.

【0004】図4に示すタスクスケジュール方式は、優
先順位スケジュール方式と称されるものであって、始め
に、システム上に存在する実行可能タスクの内、レディ
キュー管理テーブルから、実行可能タスクのレディキュ
ーを示すビットマップ1により、実行可能タスクの存在
するレディキュー2を求める。
The task schedule method shown in FIG. 4 is called a priority order schedule method. First, among the executable tasks existing in the system, the ready task management table is used to read the ready task ready. The ready queue 2 in which the executable task exists is obtained from the bitmap 1 indicating the queue.

【0005】次に、求められたレディキュー2の中か
ら、最も優先順位の高いタスク(図4の場合では、タス
ク3a)を選択する。
Next, the task with the highest priority (task 3a in the case of FIG. 4) is selected from the obtained ready queues 2.

【0006】また、その他のタスクスケジュール方式と
して、前記図4に示す優先順位スケジュール方式を基
に、タスク切り替え時点でタスク管理ブロックの情報を
利用して長時間選択されないタスクを検出し優先順位を
変更し、あるいは、中央処理装置(CPU)の使用状況
を予測しタスクを選択する方式が、例えば、下記文献I
に記載されているように公知である。
As another task scheduling method, based on the priority scheduling method shown in FIG. 4, the task management block information is used at the time of task switching to detect a task that is not selected for a long time and change the priority. Alternatively, a method of predicting the usage status of a central processing unit (CPU) and selecting a task is disclosed in, for example, the following document I
Are known as described in.

【0007】I マドニック&ドノバン著、池田克夫訳
『オペレーティングシステム』 1976年 日本コンピュータ協会発行、第4章。
I Madonic & Donovan, Translated by Katsuo Ikeda, "Operating System," 1976, Computer Society of Japan, Chapter 4.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、前記文
献Iに記載されているタスクスケジュール方式において
は、タスク切り替え時に長時間選択されないタスクを検
出し優先順位を変更するために、タスクスケジュールが
複雑になり、中央処理装置(CPU)のオーバヘッドが
増加するという問題点があった。
However, in the task schedule method described in Document I, the task schedule becomes complicated because the task that is not selected for a long time is detected at the time of task switching and the priority is changed. However, there is a problem that the overhead of the central processing unit (CPU) increases.

【0009】また、システムの状態、ジョブ特性に応じ
た柔軟なタスク選択を実現しようとした場合、システム
の状態把握やジョブ特性の認識、今後のシステムの状態
予測が必要となり、さらに、タスクスケジュールが複雑
になるという問題点があった。
Further, in order to realize flexible task selection according to the system status and job characteristics, it is necessary to grasp the system status, recognize the job characteristics, and predict the system status in the future. There was a problem that it became complicated.

【0010】本発明は、前記従来技術の問題点を解決す
るためになされたものであり、本発明の目的は、タスク
管理装置において、タスク切り替え時の中央処理装置
(CPU)のオーバヘッドを増加させずに、システムの
効率を向上させるとともに、システムの使用状況に応じ
た柔軟なタスクスケジュールを実現可能とする技術を提
供することにある。
The present invention has been made to solve the above-mentioned problems of the prior art. An object of the present invention is to increase the overhead of the central processing unit (CPU) when switching tasks in a task management apparatus. It is another object of the present invention to provide a technology that can improve the efficiency of the system and realize a flexible task schedule according to the usage status of the system.

【0011】本発明の前記目的並びにその他の目的及び
新規な特徴は、本明細書の記載及び添付図面によって明
らかにする。
The above and other objects and novel features of the present invention will become apparent from the description of this specification and the accompanying drawings.

【0012】[0012]

【課題を解決するための手段】本願において開示される
発明のうち、代表的なものの概要を簡単に説明すれば、
下記の通りである。
Of the inventions disclosed in the present application, a representative one will be briefly described below.
It is as follows.

【0013】(1)複数のタスクをタスク実行キューに
より優先順位ごとに管理しそれぞれを切り替えながら実
行する情報処理装置のタスク管理装置において、最も優
先順位の高いタスクを選択するタスクスケジュール手段
と、タイマ情報とタイミング情報とから生成される一定
のタイミング毎のタスクスケジュール時に、優先順位を
変化させることなく優先順位の低いタスクを選択する手
段とを具備することを特徴とする。
(1) In a task management device of an information processing device that manages a plurality of tasks in priority order by a task execution queue and executes them while switching each of them, a task scheduling means for selecting the highest priority task and a timer. It is characterized by comprising means for selecting a task having a low priority order without changing the priority order when the task is scheduled at a constant timing generated from the information and the timing information.

【0014】[0014]

【作用】前記手段によれば、情報処理装置のタスク管理
装置において、タイマ情報とタイミング情報とから生成
されるタイミング毎のタスクスケジュール時に、優先順
位を変化させることなく優先順位の低いタスクを選択す
ることが可能となる。
According to the above means, in the task management device of the information processing device, when the task is scheduled for each timing generated from the timer information and the timing information, the task with the lower priority is selected without changing the priority. It becomes possible.

【0015】これにより、優先順位を管理するタスクレ
ディキュー上のタスクの位置は変化させず、所定のタイ
ミングで優先順位の低いタスクを選択することが可能と
なる。
As a result, it becomes possible to select a task having a low priority at a predetermined timing without changing the position of the task on the task ready queue for managing the priority.

【0016】また、シンプルな設計のため中央処理装置
(CPU)のオーバヘッドが小さく高速なタスクスケジ
ュールを実現することが可能となる。
Further, because of the simple design, the overhead of the central processing unit (CPU) is small and a high-speed task schedule can be realized.

【0017】さらに、タイミング情報を変化させること
で、あらゆるシステムの動作状況に応じたタスクスケジ
ュールを実現することが可能となり、システムの使用状
況に応じた柔軟なタスクスケジュールを実現することが
可能となる。
Furthermore, by changing the timing information, it becomes possible to realize a task schedule according to the operating status of all systems, and it is possible to realize a flexible task schedule according to the usage status of the system. .

【0018】[0018]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0019】なお、実施例を説明するための全図におい
て、同一機能を有するものは同一符号を付け、その繰り
返しの説明は省略する。
In all the drawings for explaining the embodiments, parts having the same function are designated by the same reference numerals, and the repeated description thereof will be omitted.

【0020】図1は、本発明の一実施例であるタスク管
理装置の概念を示す模式図である。
FIG. 1 is a schematic diagram showing the concept of a task management apparatus which is an embodiment of the present invention.

【0021】図1において、4は優先順位スケジュール
を崩すためのビットパターン、5は優先順位スケジュー
ル用の実行可能タスクのレディキューの位置を示すビッ
トマップ、6は特別優先順位スケジュール用の実行可能
タスクのレディキューの位置を示すビットマップ、7は
実行可能タスクのレディキュー、8a,8b,8c,8
dはタスク制御テーブルからなる実行可能タスク、9は
タイマ連絡領域、10は優先順位スケジュールを崩すた
めのタイミングマスクである。
In FIG. 1, 4 is a bit pattern for breaking the priority schedule, 5 is a bit map showing the position of the ready queue of the executable tasks for the priority schedule, and 6 is the executable task for the special priority schedule. Of the ready queue of the ready task, 7 is the ready queue of the executable task, 8a, 8b, 8c, 8
d is an executable task consisting of a task control table, 9 is a timer communication area, and 10 is a timing mask for breaking the priority schedule.

【0022】本実施例のタスク管理装置は、前記図4に
示すタスク管理装置と同様、システム上に存在する実行
可能タスクの内、レディキュー管理テーブルから、優先
順位スケジュール用の実行可能タスクのレディキューの
位置を示すビットマップ5により、実行可能タスクの存
在するレディキュー7を求める。
The task management apparatus of this embodiment, like the task management apparatus shown in FIG. 4, reads ready tasks for priority scheduling from the ready queue management table among the executable tasks existing in the system. The ready queue 7 in which the executable task exists is obtained from the bitmap 5 indicating the queue position.

【0023】次に、求められたレディキュー7の中か
ら、最も優先順位の高いタスク(図1に示す場合では、
タスク8a)を選択する。
Next, from the obtained ready queue 7, the task with the highest priority (in the case shown in FIG. 1,
Select task 8a).

【0024】そして、選択されたタスク8aは、タスク
スイッチ時に、同一優先順位であるタスク8bの次にチ
ェインされる。
Then, the selected task 8a is chained next to the task 8b having the same priority at the time of task switching.

【0025】次に、本実施例のタスク管理装置におけ
る、タスクスケジュールについて説明する。
Next, the task schedule in the task management system of this embodiment will be described.

【0026】本実施例では、タスクスケジュール時、ハ
ードウェアより連絡されるタイマ連絡領域9のタイマ情
報を、タイミングマスク10で判定し、タイミングマス
ク10の「1」のビットと、それに対応するタイマ連絡
領域9のタイマ情報のビットが「1」の場合に、優先順
位スケジュールの代わりに特別優先順位スケジュールに
基づいてタスクを選択する。
In this embodiment, when the task is scheduled, the timer information of the timer communication area 9 communicated from the hardware is judged by the timing mask 10, and the bit "1" of the timing mask 10 and the corresponding timer communication are determined. When the bit of the timer information in the area 9 is “1”, the task is selected based on the special priority schedule instead of the priority schedule.

【0027】ここで、タイマ連絡領域9のタイマ情報
は、ハードウェアからの連絡でカウントアップ、また
は、カウントダウンされるビットパターンである。
Here, the timer information in the timer communication area 9 is a bit pattern that is counted up or down by communication from the hardware.

【0028】なお、カウントアップ、または、カウント
ダウンにより、最大値または最小値になった場合には、
初期値に更新される。
In addition, when the maximum value or the minimum value is reached by counting up or counting down,
It is updated to the initial value.

【0029】特別優先順位スケジュールでは、優先順位
スケジュール用の実行可能タスクのレディキューの位置
を示すビットマップ5が、ビットパターン4の1つのビ
ットパターン(4a,4b,4c,4d)でマスクされ
て、即ち、ビットマップ5とビットパターン(4a,4
b,4c,4d)との対応するビットの論理積を取るこ
とにより、特別優先順位スケジュール用の実行可能タス
クのレディキューの位置を示すビットマップ6が求めら
れる。
In the special priority schedule, the bitmap 5 indicating the position of the ready queue of the executable task for the priority schedule is masked by one bit pattern (4a, 4b, 4c, 4d) of the bit pattern 4. , That is, the bitmap 5 and the bit pattern (4a, 4
b, 4c, 4d) and the corresponding bit is ANDed to obtain the bitmap 6 indicating the ready queue position of the executable task for the special priority schedule.

【0030】このビットマップ6により、特別優先順位
スケジュールを行うことで、例えば、優先順位の低いタ
スク(図1に示す場合ではタスク8c)を選択する。
By carrying out a special priority schedule using this bitmap 6, for example, a task with a low priority (task 8c in the case shown in FIG. 1) is selected.

【0031】ビットパターン4は、複数用意され、タス
クスケジュールの機会毎にビットパターン4a、ビット
パターン4b、ビットパターン4c、そしてビットパタ
ーン4aとビットパターン4を変化させることで、同一
優先順位のタスクを選択することを防止する。
A plurality of bit patterns 4 are prepared. By changing the bit pattern 4a, the bit pattern 4b, the bit pattern 4c, and the bit patterns 4a and 4 at each opportunity of the task schedule, the tasks of the same priority order are assigned. Prevent selection.

【0032】ビットパターン4は、対話低位優先順位お
よびバッチ業務の優先順位クラスを選択しやすくするよ
うに、システム立ち上げ時に設定しておく。
The bit pattern 4 is set at the time of system startup so that the interactive low priority and the batch job priority class can be easily selected.

【0033】図2は、本実施例のタスク管理装置におけ
る、タスクスケジュール時のタスク選択処理手順を示す
フローチャートである。
FIG. 2 is a flowchart showing a task selection processing procedure at the time of task scheduling in the task management system of this embodiment.

【0034】次に、図2を用いて、本実施例のタスク管
理装置における、タスクスケジュール時のタスク選択処
理手順を説明する。
Next, with reference to FIG. 2, a task selection processing procedure at the time of task scheduling in the task management apparatus of this embodiment will be described.

【0035】始めに、ステップ11で、タスクスケジュ
ール時に、タイミングマスク10の「1」のビットと、
それに対応するタイマ連絡領域9のタイマ情報のビット
が「1」かどうかを判定する。
First, in step 11, at the time of task scheduling, the bit "1" of the timing mask 10
It is determined whether or not the corresponding bit of the timer information in the timer communication area 9 is "1".

【0036】ステップ11でNOの場合には、ステップ
18に分岐する。
If NO in step 11, the process branches to step 18.

【0037】また、ステップ11でYESの場合には、
ステップ12以降で、優先順位スケジュールに代えて特
別優先順位スケジュールに基づくタスク選択処理を実行
する。
If YES at step 11,
After step 12, task selection processing based on the special priority schedule is executed instead of the priority schedule.

【0038】ステップ12で、ビットマップ5が、ビッ
トパターン4の1つのビットパターン(4a,4b,4
c)でマスクされて、特別優先順位スケジュール用の実
行可能タスクのレディキューの位置を示すビットマップ
6が求められる。
In step 12, the bit map 5 is converted into one bit pattern (4a, 4b, 4) of the bit pattern 4.
The bitmap 6 showing the position of the ready queue of the executable task for the special priority schedule is obtained, which is masked in c).

【0039】次に、ステップ13で、次の特別優先順位
スケジュールで、別のビットパターンを利用するために
ポインタを更新する。
Next, in step 13, the pointer is updated to utilize another bit pattern in the next special priority schedule.

【0040】次に、ステップ14で、ポインタがビット
パターン4の終端か、否かを判断し、ポインタがビット
パターン6の終端であれば、ステップ15で、ポインタ
をビットパターン6の先頭に更新する。
Next, in step 14, it is judged whether or not the pointer is the end of the bit pattern 4, and if the pointer is the end of the bit pattern 6, the pointer is updated to the beginning of the bit pattern 6 in step 15. .

【0041】ここで、ステップ13、ステップ14、ス
テップ15は、タスクスケジュールの機会毎に、ビット
パターン4a、ビットパターン4b、ビットパターン4
c、そしてビットパターン4aとビットパターン4を変
化させるための処理である。
Here, in step 13, step 14, and step 15, the bit pattern 4a, the bit pattern 4b, and the bit pattern 4 are set for each task scheduling opportunity.
c, and a process for changing the bit pattern 4a and the bit pattern 4.

【0042】本実施例のタスク管理装置における特別優
先順位スケジュールでは、優先順位スケジュール用の実
行可能タスクのレディキューの位置を示すビットマップ
5を、ビットパターン4の1つのビットパターン(4
a,4b,4c)でマスクして、ビットマップ6が求め
られる。
In the special priority schedule in the task management system of this embodiment, the bit map 5 indicating the position of the ready queue of the executable task for the priority schedule is set to one bit pattern (4).
a, 4b, 4c) and the bitmap 6 is obtained.

【0043】そして、ビットパターン(4a,4b,4
c)によっては、求められるビットパターン6のすべて
のビットが0になることが想定される。
Then, the bit patterns (4a, 4b, 4
Depending on c), it is assumed that all the bits of the required bit pattern 6 are 0.

【0044】そのため、ステップ16で、前記ステップ
12で求められたビットマップ6のすべてのビットが0
か、否かを判断する。
Therefore, in step 16, all the bits of the bitmap 6 obtained in step 12 are 0.
Or not.

【0045】ステップ16でYESの場合は、ステップ
17で、優先順位スケジュール用の実行可能タスクのレ
ディキューの位置を示すビットマップ5に切り換える。
If YES in step 16, in step 17, the bitmap 5 showing the position of the ready queue of the executable task for priority scheduling is switched.

【0046】ここで、ステップ16、ステップ17は、
求められたビットマップ6のすべてのビットが0の場合
に、元の優先順位スケジュール用の実行可能タスクのレ
ディキューの位置を示すビットマップ5に切り替えるた
めの処理である。
Here, step 16 and step 17 are
This is a process for switching to the bitmap 5 indicating the position of the ready queue of the executable task for the original priority schedule when all the bits of the obtained bitmap 6 are 0.

【0047】ステップ18では、優先順位スケジュール
用の実行可能タスクのレディキューの位置を示すビット
マップ5、あるいは、求められたビットマップ6によ
り、優先順位スケジュールを実行する。
In step 18, the priority schedule is executed by the bitmap 5 indicating the position of the ready queue of the executable task for the priority schedule or the obtained bitmap 6.

【0048】即ち、ビットマップ5により優先順位スケ
ジュールを実行することにより、図1の場合では、前記
した通りタスク8aが選択される。
That is, by executing the priority schedule by the bitmap 5, the task 8a is selected as described above in the case of FIG.

【0049】また、ビットマップ6により優先順位スケ
ジュールを実行することにより、図1の場合では、前記
した通りタスク8cが選択される。
By executing the priority schedule by the bitmap 6, the task 8c is selected as described above in the case of FIG.

【0050】ここで、システム制御等のサブシステムの
ように優先順位を守る必要がある場合には、ビットパタ
ーン4のビットを1にすることで対応可能である。
Here, when it is necessary to keep the priority order as in a subsystem such as system control, it can be dealt with by setting the bit of the bit pattern 4 to 1.

【0051】前記した優先順位スケジュールから特別優
先順位スケジュールに切り替えるタイミングは、タイミ
ングマスク10のパターンで決定される。
The timing of switching from the above-mentioned priority schedule to the special priority schedule is determined by the pattern of the timing mask 10.

【0052】即ち、図1において、タイミングマスク1
0のビットを、矢印Aの方向に順番に0番目のビット、
1番目のビット・・7番目のビットと表現し、また、矢
印Aの方向にタイマ連絡領域9のタイマ情報が変更され
るとすると、タイミングマスク10の0番目付近のビッ
トを「1」とすることにより、タイミングマスク10の
「1」のビットと、それに対応するタイマ連絡領域9の
タイマ情報のビットが「1」になる回数が多くなり、タ
スクスケジュール時に、特別優先順位スケジュール処理
を行う確率が高くなる。
That is, in FIG. 1, the timing mask 1
0 bit is the 0th bit in the direction of arrow A,
If it is expressed as the 1st bit ... 7th bit, and the timer information in the timer communication area 9 is changed in the direction of arrow A, the 0th bit of the timing mask 10 is set to "1". As a result, the number of times that the “1” bit of the timing mask 10 and the corresponding bit of the timer information in the timer communication area 9 becomes “1” increases, and the probability of performing the special priority schedule process at the time of task scheduling increases. Get higher

【0053】逆に、7番目付近のビットを「1」とすれ
ば、タイミングマスク10の「1」のビットと、それに
対応するタイマ連絡領域9のタイマ情報のビットが
「1」になる回数が低くなり、タスクスケジュール時
に、特別優先順位スケジュール処理を行う確率が低くな
る。
On the contrary, if the bit near the 7th bit is set to "1", the number of times that the bit of "1" of the timing mask 10 and the bit of the timer information corresponding to it in the timer communication area 9 becomes "1" is determined. As a result, the probability of performing special priority schedule processing at the time of task scheduling becomes low.

【0054】そして、タイミングマスク10のビットパ
ターンを、例えば、図1に示す「0,0,0,0,1,
1」ように、適宜選択することにより、低位優先順位タ
スクが選択される確率を任意に設定可能である。
Then, the bit pattern of the timing mask 10 is set to, for example, "0,0,0,0,1," shown in FIG.
1 ”, the probability that the low-priority task is selected can be arbitrarily set.

【0055】したがって、タイミングマスク10のビッ
トパターンをチューニング要素として、外部からシステ
ム立ち上げ時、および、オンライン業務中心からバッチ
業務中心の切り替え時点で変化させることで、低位優先
順位タスクが選択される確率を変えることができる。
Therefore, by using the bit pattern of the timing mask 10 as a tuning element and changing it at the time of system startup from the outside and at the time of switching from the online business center to the batch business center, the probability that the low priority task is selected Can be changed.

【0056】図3は、本実施例のタスク管理装置におい
て、タイミングマスク10のビットパターンを変化させ
た場合の、中央処理装置(CPU)使用率の変化を示す
グラフである。
FIG. 3 is a graph showing the change in the central processing unit (CPU) usage rate when the bit pattern of the timing mask 10 is changed in the task management system of this embodiment.

【0057】図3のグラフにおいて、19は高優先順位
タスクのCPU使用率、20は中優先順位タスクのCP
U使用率、21は低優先順位タスクのCPU使用率を示
している。
In the graph of FIG. 3, 19 is the CPU usage rate of the high priority task, and 20 is the CP of the medium priority task.
U usage rate, 21 indicates the CPU usage rate of the low priority task.

【0058】図3に示すように、タイミングマスク10
のビットパターンを変化させることにより、高優先順位
タスクと低優先順位タスクのCPU使用率を変化させる
ことが可能である。
As shown in FIG. 3, the timing mask 10
It is possible to change the CPU usage rate of the high priority task and the low priority task by changing the bit pattern of.

【0059】オンライン業務等の高優先業務実行時にあ
る程度のバッチ性能が要求されたり、または、逆のケー
ス等、システムの稼働状況は変化する。
When a high priority work such as an online work is executed, a certain degree of batch performance is required, or in the opposite case, the operating status of the system changes.

【0060】本実施例では、このような場合に、ビット
パターン4とタイミングマスク10のビットパターンを
変化させることにより、低位優先順位のタスクを選択す
るタイミングを増加させたり、絶対的な優先順位スケジ
ュールにする等、システムの使用状況に応じた柔軟なタ
スクスケジュールを実現することが可能である。
In this embodiment, by changing the bit patterns of the bit pattern 4 and the timing mask 10 in such a case, the timing for selecting the task with the lower priority is increased or the absolute priority schedule is set. It is possible to realize a flexible task schedule according to the usage status of the system.

【0061】以上、本発明を実施例に基づき具体的に説
明したが、本発明は、前記実施例に限定されるものでは
なく、その要旨を逸脱しない範囲で種々変更し得ること
は言うまでもない。
Although the present invention has been specifically described based on the embodiments, it is needless to say that the present invention is not limited to the embodiments and various modifications can be made without departing from the scope of the invention.

【0062】[0062]

【発明の効果】本願において開示される発明のうち代表
的なものによって得られる効果を簡単に説明すれば、下
記の通りである。
The effects obtained by the typical ones of the inventions disclosed in the present application will be briefly described as follows.

【0063】(1)本発明のタスク管理装置によれば、
低位優先順位のタスクの選択が可能であるとともに、シ
ンプルな設計のため中央処理装置(CPU)のオーバヘ
ッドが小さく高速なタスクスケジュールを実現すること
が可能となる。
(1) According to the task management system of the present invention,
It is possible to select low-priority tasks, and because of the simple design, it is possible to realize a high-speed task schedule with a small overhead of the central processing unit (CPU).

【0064】(2)本発明のタスク管理装置によれば、
優先順位スケジュールから特別優先順位スケジュールに
変更されるタイミングをとるタイミングマスクのビット
パターンを変化させることにより、図3に示すように高
優先順位タスクと低優先順位タスクの中央処理装置(C
PU)使用率を変化させることが可能であり、システム
の使用状況に応じた柔軟なタスクスケジュールを実現す
ることが可能となり、あらゆる形態のシステムに対応す
ることが可能となる。
(2) According to the task management system of the present invention,
As shown in FIG. 3, by changing the bit pattern of the timing mask that takes the timing of changing from the priority schedule to the special priority schedule, the central processing unit (C
(PU) It is possible to change the usage rate, it is possible to realize a flexible task schedule according to the usage status of the system, and it is possible to support all types of systems.

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

【図1】 本発明の一実施例であるタスク管理装置の概
念を示す模式図である。
FIG. 1 is a schematic diagram showing the concept of a task management device according to an embodiment of the present invention.

【図2】 本実施例のタスク管理装置における、タスク
スケジュール時のタスク選択処理手順を示すフローチャ
ートである。
FIG. 2 is a flowchart showing a task selection processing procedure at the time of task scheduling in the task management device of the present exemplary embodiment.

【図3】 本実施例のタスク管理装置において、タイミ
ングマスク10のビットパターンを変化させた場合の、
中央処理装置(CPU)使用率の変化を示すグラフであ
る。
FIG. 3 is a diagram showing a case where the bit pattern of the timing mask 10 is changed in the task management device of the present embodiment,
It is a graph which shows the change of a central processing unit (CPU) usage rate.

【図4】 コンピュータシステムに存在する複数のタス
クを、優先順位によりスケジュールする従来のタスク管
理装置の概念を示す模式図である。
FIG. 4 is a schematic diagram showing the concept of a conventional task management device that schedules a plurality of tasks existing in a computer system in order of priority.

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

1…実行可能タスクのレディキューの位置を示すビット
マップ、2,7…実行可能タスクのレディキュー、3
a,3b、3c,8a,8b,8c,8d…実行可能タ
スク、4…優先順位スケジュールを崩すためのビットパ
ターン、5…優先順位スケジュール用の実行可能タスク
のレディキューの位置を示すビットマップ、6…特別優
先順位スケジュール用の実行可能タスクのレディキュー
の位置を示すビットマップ、9…タイマ連絡領域、10
…優先順位スケジュールを崩すためのタイミングマス
ク、19…高優先順位タスクのCPU使用率、20…中
優先順位タスクのCPU使用率、21…低優先順位タス
クのCPU使用率。
1 ... Bitmap indicating position of ready queue of executable task, 2, 7 ... Ready queue of executable task, 3
a, 3b, 3c, 8a, 8b, 8c, 8d ... Executable tasks, 4 ... Bit pattern for breaking priority schedule, 5 ... Bit map indicating position of ready queue of executable tasks for priority schedule, 6 ... Bitmap indicating ready queue position of executable task for special priority schedule, 9 ... Timer communication area, 10
... Timing mask for breaking priority schedule, 19 ... CPU usage rate of high priority task, 20 ... CPU usage rate of medium priority task, 21 ... CPU usage rate of low priority task.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数のタスクをタスク実行キューにより
優先順位ごとに管理しそれぞれを切り替えながら実行す
る情報処理装置のタスク管理装置において、最も優先順
位の高いタスクを選択するタスクスケジュール手段と、
タイマ情報とタイミング情報とから生成される一定のタ
イミング毎のタスクスケジュール時に、優先順位を変化
させることなく優先順位の低いタスクを選択する手段と
を具備することを特徴とするタスク管理装置。
1. A task scheduling means for selecting a task with the highest priority in a task management device of an information processing device, which manages a plurality of tasks for each priority by a task execution queue and executes them while switching each of them.
A task management device comprising: means for selecting a task having a low priority level without changing the priority level when a task is scheduled at constant timings generated from timer information and timing information.
JP23110194A 1994-09-27 1994-09-27 Task management device Pending JPH0895805A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23110194A JPH0895805A (en) 1994-09-27 1994-09-27 Task management device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23110194A JPH0895805A (en) 1994-09-27 1994-09-27 Task management device

Publications (1)

Publication Number Publication Date
JPH0895805A true JPH0895805A (en) 1996-04-12

Family

ID=16918321

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23110194A Pending JPH0895805A (en) 1994-09-27 1994-09-27 Task management device

Country Status (1)

Country Link
JP (1) JPH0895805A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6865541B1 (en) * 1999-11-18 2005-03-08 International Business Machines Corporation Replaceable outcome decider
KR100716184B1 (en) * 2006-01-24 2007-05-10 삼성전자주식회사 Apparatus and method for a queue management of network processor
JP2012059195A (en) * 2010-09-13 2012-03-22 Renesas Electronics Corp Multi-thread processor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6865541B1 (en) * 1999-11-18 2005-03-08 International Business Machines Corporation Replaceable outcome decider
KR100716184B1 (en) * 2006-01-24 2007-05-10 삼성전자주식회사 Apparatus and method for a queue management of network processor
JP2012059195A (en) * 2010-09-13 2012-03-22 Renesas Electronics Corp Multi-thread processor

Similar Documents

Publication Publication Date Title
US7831980B2 (en) Scheduling threads in a multi-processor computer
US5394548A (en) Multi-media scheduling system
CN109445851B (en) Multithreaded processor
JP4185103B2 (en) System and method for scheduling executable programs
US6473780B1 (en) Scheduling of direct memory access
JPH08171526A (en) Input/output interface device and its control method
US20080065803A1 (en) Multiprocessor system, processor and interrupt control method
US5758137A (en) Method and system for processing timer requests within a computer
JPH0895805A (en) Task management device
JP2000148513A (en) Method and device for controlling task
CN111158875A (en) Multi-module-based multi-task processing method, device and system
WO2004114132A1 (en) Interrupt control method, interrupt control device, and interrupt control program
JP2003177928A (en) Scheduling method for variable time-slice time
JP4731126B2 (en) Interrupt control circuit
JP2002099434A (en) Control apparatus
JP2667575B2 (en) Task scheduling method
JPS60181934A (en) Task priority degree controlling system
JPH0895809A (en) Information processor
KR100498469B1 (en) Interrupt control system providing for the least delay and method thereof
JPH05197574A (en) Task time waiting controller
JPH07244594A (en) Data processor
JPS60238938A (en) Operating method of computer system
JPH04340135A (en) Cpu time distribution control system between plural processing types
JPH05216694A (en) Fa controller
JPH0512038A (en) Cpu queuing time control dispatching system