JPH07253893A - System for managing task priority order - Google Patents

System for managing task priority order

Info

Publication number
JPH07253893A
JPH07253893A JP4362894A JP4362894A JPH07253893A JP H07253893 A JPH07253893 A JP H07253893A JP 4362894 A JP4362894 A JP 4362894A JP 4362894 A JP4362894 A JP 4362894A JP H07253893 A JPH07253893 A JP H07253893A
Authority
JP
Japan
Prior art keywords
task
priority
job
execution time
information storage
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
JP4362894A
Other languages
Japanese (ja)
Inventor
Takayuki Sekimoto
隆行 関元
Masayoshi Nakamura
正義 中村
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP4362894A priority Critical patent/JPH07253893A/en
Publication of JPH07253893A publication Critical patent/JPH07253893A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the excess execution of a task of high priority and to improve the uniformity of processing by making an adjustment of the priority of each task based on its execution time. CONSTITUTION:A storage part with plural tasks each with a priority is connected to an operation system with an internal timer. Each task in the storage part executes the processing based on the priority in the computer system. Each task is generated abased on the priority and a scheduler 2 which monitors the execution time for every execution of each task compares the execution time monitored by the scheduler with the prescribed reference execution time. A priority adjustment means 3 which reduces the priority of the task than the priority of the other tasks when the execution time of the task being executed exceeds the reference execution time is provided.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、マルチタスク処理など
を行う計算機システムに利用されるタスク優先度管理方
式に係わり、特に、各タスクの優先度をその実行時間に
基づいて調整することにより、高優先度のタスクの過度
の実行を阻止し得るタスク優先度管理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a task priority management method used in a computer system for performing multitask processing, and in particular, by adjusting the priority of each task based on its execution time, The present invention relates to a task priority management method that can prevent excessive execution of high priority tasks.

【0002】[0002]

【従来の技術】近年、例えば各種プラント設備のプロセ
ス制御を行う計算機システムでは、複数のタスクをその
優先度に対応して実行するためにタスク優先度管理方式
が採用されている。
2. Description of the Related Art In recent years, for example, in a computer system for performing process control of various plant equipment, a task priority management system has been adopted in order to execute a plurality of tasks corresponding to their priorities.

【0003】この種のタスク優先度管理方式は、各タス
ク毎に異なる優先度が設定され、実行対象の各タスクの
うち、最も高い優先度のタスクから実行するものであ
る。また、このタスクの実行終了後、次に優先度の高い
タスクを実行し、以下同様に順次各タスクを実行してい
る。なお、タスクの実行中、他のタスクによる割込みが
ある場合、現在実行中のタスクの優先度と割込んだタス
クの優先度とを比較し、優先度の高いタスクを実行す
る。さらに、このようなタスクの優先度は個別に変更可
能となっている。
In this kind of task priority management system, different priorities are set for the respective tasks, and the task having the highest priority among the tasks to be executed is executed. After the execution of this task is completed, the task with the next highest priority is executed, and so on. If there is an interrupt by another task during execution of the task, the priority of the task currently being executed is compared with the priority of the interrupted task, and the task with the higher priority is executed. Furthermore, the priority of such tasks can be changed individually.

【0004】[0004]

【発明が解決しようとする課題】しかしながら以上のよ
うな計算機システムでは、現在実行中のタスクが何らか
の原因で常に動作中となった場合、現在実行中のタスク
よりも低い優先度のタスクが実行不能となり、処理の均
一性が低下する問題がある。
However, in the above computer system, if the currently executing task is always in operation for some reason, the task having a lower priority than the currently executing task cannot be executed. Therefore, there is a problem that the uniformity of the treatment is deteriorated.

【0005】また、あるタスクの優先度を変更した場
合、この変更に関連して同一ジョブ内の他のタスクとの
実行順序が逆転して各タスク間の関連動作(コミュニケ
ーション)に不具合が発生し、ジョブの動作に矛盾を生
じる可能性がある。
Further, when the priority of a certain task is changed, the execution order of other tasks in the same job is reversed due to this change, and a problem occurs in the related operation (communication) between the tasks. , There may be inconsistency in the job operation.

【0006】本発明は上記実情を考慮してなされたもの
で、各タスクの優先度をその実行時間に基づいて調整す
ることにより、高優先度のタスクの過度の実行を阻止
し、処理の均一性を向上し得るタスク優先度管理方式を
提供することを目的とする。
The present invention has been made in consideration of the above-mentioned circumstances, and by adjusting the priority of each task based on its execution time, it is possible to prevent an excessive execution of a high-priority task and to make the processing uniform. It is an object of the present invention to provide a task priority management method that can improve the performance.

【0007】また、本発明の他の目的は、あるタスクの
優先度を変更する際に、このタスクと同一ジョブに属す
る他のタスクの優先度を同一ジョブにおける優先度の順
序を変えないように変更することにより、ジョブの無矛
盾性を確保することにある。
Another object of the present invention is to prevent the priority of another task belonging to the same job as this task from changing the priority order of the same job when changing the priority of a certain task. By changing, it is to ensure the consistency of the job.

【0008】[0008]

【課題を解決するための手段】請求項1に対応する発明
は、内部タイマをもつオペレーションシステムに各々優
先度を有する複数のタスクをもつ記憶部が接続され、前
記記憶部内の各タスクが前記優先度に基づいて処理を実
行する計算機システムにおいて、前記各タスクを前記優
先度に基づいて生成する一方、これら各タスクの実行毎
に実行時間を監視するスケジューラと、このスケジュー
ラに監視された実行時間及び所定の基準実行時間を比較
し、現在実行中のタスクの実行時間が当該基準実行時間
を越えたとき、当該タスクの優先度を少なくとも1つの
他タスクの優先度よりも低下させる優先度調整手段とを
備えたタスク優先度管理方式である。
According to a first aspect of the invention, a storage unit having a plurality of tasks each having a priority is connected to an operation system having an internal timer, and each task in the storage unit has the priority. In a computer system that executes processing based on the priority, while generating each of the tasks based on the priority, a scheduler that monitors the execution time for each execution of these tasks, and the execution time monitored by the scheduler and A priority adjusting means for comparing predetermined reference execution times, and lowering the priority of the task at least one of the other tasks when the execution time of the currently executed task exceeds the reference execution time. It is a task priority management system with.

【0009】請求項2に対応する発明は、内部タイマを
もつオペレーションシステムに各々優先度を有する複数
のタスクからなる複数のジョブをもつ記憶部が接続さ
れ、前記記憶部内の各タスクが前記優先度に基づいて処
理を実行する計算機システムにおいて、前記各ジョブ毎
にジョブ識別子が記憶されたジョブ情報記憶手段と、こ
のジョブ情報記憶手段に記憶された各ジョブ識別子毎
に、同一ジョブに属する各タスク識別子、これら各タス
ク識別子に対応する各タスク優先度及び前記同一ジョブ
に属する他タスク識別子が記憶されたタスク情報記憶手
段と、このタスク情報記憶手段に記憶された各タスク優
先度のうちのあるタスク優先度が変更されたとき、前記
タスク情報記憶手段及び前記ジョブ情報記憶手段の記憶
内容に基づいて、前記変更されたタスク優先度をもつタ
スクと同一ジョブに属する他タスクの優先度を前記同一
ジョブにおける優先度の順序を変えないように変更する
ジョブ内優先度調整手段とを備えたタスク優先度管理方
式である。
According to a second aspect of the invention, a storage unit having a plurality of jobs, each of which has a priority, is connected to an operating system having an internal timer, and each task in the storage unit has the priority. In a computer system that executes processing based on the above, a job information storage unit that stores a job identifier for each job and task identifiers that belong to the same job for each job identifier stored in this job information storage unit , Task information storage means in which each task priority corresponding to each of these task identifiers and other task identifiers belonging to the same job are stored, and some task priority among the task priorities stored in this task information storage means When the degree is changed, based on the stored contents of the task information storage means and the job information storage means, A task priority management method including an intra-job priority adjusting means for changing the priority of a task having a changed task priority and another task belonging to the same job so as not to change the priority order of the same job. Is.

【0010】[0010]

【作用】従って、請求項1に対応する発明は以上のよう
な手段を講じたことにより、スケジューラが、各タスク
を優先度に基づいて生成する一方、これら各タスクの実
行毎に実行時間を監視し、優先度調整手段が、このスケ
ジューラに監視された実行時間及び所定の基準実行時間
を比較し、現在実行中のタスクの実行時間が当該基準実
行時間を越えたとき、当該タスクの優先度を少なくとも
1つの他タスクの優先度よりも低下させるので、各タス
クの優先度をその実行時間に基づいて調整することによ
り、高優先度のタスクの過度の実行を阻止し、処理の均
一性を向上させることができる。
Therefore, according to the invention corresponding to claim 1, by taking the above-mentioned means, the scheduler generates each task based on the priority, while monitoring the execution time for each execution of each task. However, the priority adjusting means compares the execution time monitored by this scheduler with a predetermined reference execution time, and when the execution time of the currently executing task exceeds the reference execution time, the priority of the task is set. It lowers the priority of at least one other task, thus adjusting the priority of each task based on its execution time to prevent excessive execution of high-priority tasks and improve processing uniformity. Can be made.

【0011】また、請求項2に対応する発明は、各ジョ
ブ毎にジョブ識別子が記憶されたジョブ情報記憶手段及
びこのジョブ情報記憶手段に記憶された各ジョブ識別子
毎に、同一ジョブに属する各タスク識別子、これら各タ
スク識別子に対応する各タスク優先度並びに同一ジョブ
に属する他タスク識別子が記憶されたタスク情報記憶手
段を設け、ジョブ内優先度調整手段が、このタスク情報
記憶手段に記憶された各タスク優先度のうちのあるタス
ク優先度が変更されたとき、タスク情報記憶手段及びジ
ョブ情報記憶手段の記憶内容に基づいて、変更されたタ
スク優先度をもつタスクと同一ジョブに属する他タスク
の優先度を同一ジョブにおける優先度の順序を変えない
ように変更するので、ジョブの無矛盾性を確保すること
ができる。
Further, the invention corresponding to claim 2 is that the job information storage means in which the job identifier is stored for each job and each task identifier belonging to the same job for each job identifier stored in the job information storage means. The task information storage means for storing the identifiers, the respective task priorities corresponding to the respective task identifiers, and the other task identifiers belonging to the same job are provided, and the in-job priority adjustment means stores the task information storage means. When a certain task priority of the task priorities is changed, the priority of another task belonging to the same job as the task having the changed task priority is based on the stored contents of the task information storage means and the job information storage means. Since the degree is changed so as not to change the order of the priority in the same job, it is possible to ensure the consistency of the jobs.

【0012】[0012]

【実施例】以下、本発明の実施例について図面を参照し
て説明する。図1は本発明の実施例に係るタスク優先度
管理方式に適用される計算機システムの構成を示すブロ
ック図である。この計算機システムは、内部タイマ1並
びにスケジューラ2をもつOS(オペレーションシステ
ム)3が、各々優先度を有する複数のタスクからなる複
数のジョブをもつ記憶部4及びこの記憶部4内の各ジョ
ブを各タスク毎に実行可能なCPU5に接続されてい
る。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a computer system applied to a task priority management system according to an embodiment of the present invention. In this computer system, an OS (operating system) 3 having an internal timer 1 and a scheduler 2 stores a storage unit 4 having a plurality of jobs each having a plurality of tasks each having a priority and each job in the storage unit 4. It is connected to the CPU 5 that can execute each task.

【0013】ここで、記憶部4は、図2に示すように、
各ジョブ毎にジョブID(識別子)が記憶されたジョブ
テーブル(ジョブ情報記憶手段)6と、このジョブテー
ブル6に記憶された各ジョブID毎に、同一ジョブに属
する各タスクID、これら各タスクIDに対応する各タ
スク優先度並びに同一ジョブに属する他タスクIDから
なるタスク情報7が記憶されたタスクテーブル(タスク
情報記憶手段)8とを備えている。
Here, the storage unit 4, as shown in FIG.
A job table (job information storage means) 6 in which a job ID (identifier) is stored for each job, task IDs belonging to the same job for each job ID stored in the job table 6, and these task IDs And a task table (task information storage means) 8 in which task information 7 including each task priority corresponding to the above and other task IDs belonging to the same job is stored.

【0014】一方、スケジューラ2は、各タスクを優先
度に基づいて生成する一方、これら各タスクの実行毎に
実行時間を監視する機能をもっている。OS3は、この
スケジューラ2に監視された実行時間及び所定の基準実
行時間を比較し、現在実行中のタスクの実行時間が当該
基準実行時間を越えたとき、当該タスクの優先度を少な
くとも1つの他タスクの優先度よりも低下させる機能を
もっている。
On the other hand, the scheduler 2 has a function of generating each task based on the priority and monitoring the execution time for each execution of each task. The OS 3 compares the execution time monitored by the scheduler 2 with a predetermined reference execution time, and when the execution time of the task currently being executed exceeds the reference execution time, the priority of the task is at least one other. It has the function of lowering the priority of the task.

【0015】また、OS2は、タスクテーブル8に記憶
された各タスク優先度のうちのあるタスク優先度が変更
されたとき、タスクテーブル8及びジョブテーブル6の
記憶内容に基づいて、変更されたタスク優先度をもつタ
スクと同一ジョブに属する他タスクの優先度を同一ジョ
ブにおける優先度の順序を変えないように変更する機能
をもっている。すなわち、このOS2は優先度調整手段
及びジョブ内優先度調整手段を備えて構成されている。
When a certain task priority among the task priorities stored in the task table 8 is changed, the OS 2 changes the task based on the contents stored in the task table 8 and the job table 6. It has a function to change the priority of a task having a priority and that of other tasks belonging to the same job so as not to change the order of the priority in the same job. That is, the OS 2 is configured to include the priority adjusting means and the in-job priority adjusting means.

【0016】次に、このように構成された計算機システ
ムによるタスク優先度管理方式の動作を説明する。な
お、実行対象として、2つのジョブがあるものとし、こ
れら各ジョブのジョブIDをj1,j2とする。
Next, the operation of the task priority management system by the computer system thus configured will be described. It is assumed that there are two jobs to be executed, and job IDs of these jobs are j1 and j2.

【0017】ジョブj1はタスクIDをA〜Cとするタ
スクA〜Cからなる。各タスクA〜Cの優先度は、タス
クAが200,タスクBが250,タスクCが300で
ある。なお、この優先度は数字の高さに対応し、ジョブ
j1においてはタスクC、タスクB、タスクAの順に実
行されることを示している。
The job j1 is composed of tasks A to C having task IDs A to C. The priorities of the tasks A to C are 200 for task A, 250 for task B, and 300 for task C. It should be noted that this priority corresponds to the height of the numeral, and indicates that in job j1, task C, task B, and task A are executed in this order.

【0018】同様に、ジョブj2はタスクIDをD,E
とするタスクD,Eからなる。各タスクD,Eの優先度
は、タスクDが160,タスクEが180である。な
お、これら各タスクA〜Eは実行待ち状態となってい
る。
Similarly, the job j2 has task IDs D and E.
Task D, E. The priorities of the tasks D and E are 160 for the task D and 180 for the task E. Each of these tasks A to E is in a waiting state.

【0019】また、OS3に設定された基準実行時間は
1000msecであり、内部タイマ1の割込み周期は
10msecである。いま、スケジューラ2は、図3に
示すように、タスクのディスパッチ要求が有るか否かを
判定し(ST1)、判定結果がディスパッチ要求有りの
とき、タスクのタスクA〜Eのうちの最も高い優先度を
もつタスクCをディスパッチする(ST2)。このと
き、スケジューラ2は、タスクCの実行時間を監視する
監視時間を初期化する(ST3)。
The standard execution time set in the OS 3 is 1000 msec, and the interrupt period of the internal timer 1 is 10 msec. Now, as shown in FIG. 3, the scheduler 2 judges whether or not there is a task dispatch request (ST1), and when the result of the judgment is that there is a dispatch request, the task has the highest priority among the tasks A to E. A task C having a degree is dispatched (ST2). At this time, the scheduler 2 initializes the monitoring time for monitoring the execution time of the task C (ST3).

【0020】一方、OS3は、図4に示すように、内部
タイマ1からタイマ割込みを10msec毎に受ける
と、現在実行中のタスクが有るか否かを判定し(ST1
1)、判定結果がタスクCの実行有りを示すので、監視
時間を更新する(ST12)。
On the other hand, when the OS 3 receives a timer interrupt from the internal timer 1 every 10 msec as shown in FIG. 4, it determines whether or not there is a task currently being executed (ST1
1) Since the determination result indicates that task C is executed, the monitoring time is updated (ST12).

【0021】続いて、OS3は、ステップST12で更
新された監視時間が基準実行時間としての1000ms
ecを越えたか否かを判定し(ST13)、判定結果が
否を示すとき、次のタイマ割込みを待つ。
Subsequently, the OS 3 has the monitoring time updated in step ST12 of 1000 ms as the reference execution time.
It is determined whether or not ec is exceeded (ST13), and when the determination result shows no, the next timer interrupt is awaited.

【0022】以下、監視時間が1000msecを越え
るまで、ステップST11乃至ステップST13の処理
が10msec毎に実行される。ここで、タスクCが1
000msecを越えて処理を実行したとする。OS3
は、ステップST13で監視時間が1000msecを
越えた旨を判定し、現在実行中のタスクCの優先度であ
る“300”を、例えば1/2倍して“150”に低下
させ(ST14)、監視時間を初期化する(ST1
5)。
Thereafter, the processes of steps ST11 to ST13 are executed every 10 msec until the monitoring time exceeds 1000 msec. Where task C is 1
It is assumed that the processing is executed over 000 msec. OS3
Determines in step ST13 that the monitoring time has exceeded 1000 msec and reduces the priority of task C currently being executed, "300", by, for example, 1/2, to "150" (ST14), Initialize the monitoring time (ST1
5).

【0023】従って、タスクBの優先度“250”がタ
スクA〜Eの優先度のうちで最も高くなり、タスクBが
実行可能となる。このように、各タスクの優先度をその
実行時間に基づいて調整するので、高優先度のタスクの
過度の実行を阻止し、処理の均一性を向上させることが
できる。
Therefore, the priority "250" of the task B becomes the highest among the priorities of the tasks A to E, and the task B becomes executable. In this way, since the priority of each task is adjusted based on its execution time, it is possible to prevent excessive execution of high-priority tasks and improve processing uniformity.

【0024】次に、スケジューラ2は、タスクCに代え
てタスクBをディスパッチしたとする。このとき、タス
クBがタスクCの処理結果に基づいて処理を実行する
と、従来と同様に、タスクの優先度が逆転して各タスク
間の関連動作に不具合が生じる可能性がある。そこで、
このような不具合の阻止のため、OS3はタスクの優先
度が変更されると、そのタスクの属するジョブにおける
タスク群全体の優先度を変更する。
Next, it is assumed that the scheduler 2 dispatches the task B instead of the task C. At this time, if the task B executes the processing based on the processing result of the task C, the priorities of the tasks may be reversed and the related operation between the tasks may be defective as in the conventional case. Therefore,
In order to prevent such a problem, when the task priority is changed, the OS 3 changes the priority of the entire task group in the job to which the task belongs.

【0025】例えば、図5に示すように、OS3は、ス
テップST14のようにタスクCの優先度を変更する場
合、タスクテーブル8を参照してタスクCの属するジョ
ブIDを読出すと共に(ST21)、読出したジョブI
Dに基づいてジョブテーブル6から同一ジョブに属する
先頭タスクIDを読出す(ST22)。
For example, as shown in FIG. 5, when changing the priority of the task C as in step ST14, the OS 3 reads the job ID to which the task C belongs by referring to the task table 8 (ST21). , Read job I
Based on D, the first task ID belonging to the same job is read from the job table 6 (ST22).

【0026】続いて、OS3は、このタスクIDの優先
度を低下させるようにタスクテーブル8のタスク情報7
を更新記憶すると共に(ST23)、タスクテーブル8
から同一ジョブに属する次の他タスクIDの読出処理を
実行し(ST24)、次の他タスクIDの有無を判定し
(ST25)、次の他タスクIDが有るとき、この他タ
スクIDで示されるタスクの優先度を低下させるために
ステップST23に戻る。
Subsequently, the OS 3 sets the task information 7 in the task table 8 so as to lower the priority of this task ID.
Is updated and stored (ST23), and the task table 8
Is executed to read the next other task ID belonging to the same job (ST24), the presence or absence of the next other task ID is determined (ST25), and when there is the next other task ID, the other task ID is indicated by this other task ID. The process returns to step ST23 to lower the priority of the task.

【0027】以下、OS3は、同一ジョブに属する全て
のタスクの優先度が低下されるまで、ステップST23
乃至ステップST25の処理を実行し、ステップST2
5で次の他タスクIDの無い旨を判定すると、優先度の
低下処理を終了する。
Thereafter, the OS 3 proceeds to step ST23 until the priorities of all tasks belonging to the same job are lowered.
Through the processing of step ST25, and step ST2
If it is determined in step 5 that there is no other task ID, the priority lowering process ends.

【0028】このように、あるタスクの優先度を変更す
る際に、このタスクと同一ジョブに属する他のタスクの
優先度を全て変更するので、同一ジョブにおける優先度
の順序の逆転を阻止し、ジョブの無矛盾性を確保するこ
とができる。
In this way, when changing the priority of a task, all the priorities of other tasks belonging to the same job as this task are changed, so that the order of priority in the same job is prevented from being reversed. Job consistency can be ensured.

【0029】上述したように本実施例によれば、スケジ
ューラ2が、各タスクを優先度に基づいて生成する一
方、これら各タスクの実行毎に監視時間を更新し、OS
3が、この監視時間及び基準実行時間を比較し、監視時
間が基準実行時間を越えたとき、現在実行中のタスクの
優先度を少なくとも1つの他タスクの優先度よりも低下
させるので、各タスクの優先度をその実行時間に基づい
て調整することにより、低優先度のタスクを実行可能と
して高優先度のタスクの過度の実行を阻止し、処理の均
一性を向上させることができる。
As described above, according to this embodiment, the scheduler 2 generates each task based on the priority, updates the monitoring time each time each of these tasks is executed, and updates the OS.
3 compares the monitoring time with the reference execution time, and when the monitoring time exceeds the reference execution time, the priority of the currently executing task is lowered below the priority of at least one other task. By adjusting the priority of the task based on its execution time, it is possible to execute the task of the low priority, prevent the task of the high priority from being excessively executed, and improve the processing uniformity.

【0030】また、本実施例によれば、OS3が、タス
クテーブル8に記憶された各タスク優先度のうちのある
タスク優先度が変更されたとき、タスクテーブル8及び
ジョブテーブル6の記憶内容に基づいて、変更されたタ
スク優先度をもつタスクと同一ジョブに属する他タスク
の優先度を同一ジョブにおける優先度の順序を変えない
ように変更するので、従来とは異なって各タスク間の関
連動作に不具合が生じる可能性を阻止し、ジョブの無矛
盾性を確保すると共に、システム全体の処理を平衡させ
ることができる。
Further, according to the present embodiment, when the OS 3 changes a certain task priority among the task priorities stored in the task table 8, the contents stored in the task table 8 and the job table 6 are changed. Based on this, the priority of other tasks that belong to the same job as the task with the changed task priority is changed so that the priority order of the same job is not changed. It is possible to prevent the possibility that a problem will occur, to ensure job consistency, and to balance the processing of the entire system.

【0031】なお、上記実施例では、OS3が優先度を
調整する場合について説明したが、これに限らず、基準
実行時間を越えた処理の実行を検出すると、この検出結
果をタスクあるいはジョブ関連タスク群に通知すること
により、タスク側で優先度を調整する構成としても、本
発明を同様に実施して同様の効果を得ることができる。
その他、本発明はその要旨を逸脱しない範囲で種々変形
して実施できる。
In the above embodiment, the case where the OS 3 adjusts the priority has been described, but the present invention is not limited to this, and when the execution of a process that exceeds the reference execution time is detected, this detection result is used as a task or a job-related task. Even if the task side is configured to adjust the priority by notifying the group, the present invention can be similarly implemented and the same effect can be obtained.
In addition, the present invention can be modified in various ways without departing from the scope of the invention.

【0032】[0032]

【発明の効果】以上説明したように請求項1の発明によ
れば、スケジューラが、各タスクを優先度に基づいて生
成する一方、これら各タスクの実行毎に実行時間を監視
し、優先度調整手段が、このスケジューラに監視された
実行時間及び所定の基準実行時間を比較し、現在実行中
のタスクの実行時間が当該基準実行時間を越えたとき、
当該タスクの優先度を少なくとも1つの他タスクの優先
度よりも低下させるので、各タスクの優先度をその実行
時間に基づいて調整することにより、高優先度のタスク
の過度の実行を阻止し、処理の均一性を向上できるタス
ク優先度管理方式を提供できる。
As described above, according to the invention of claim 1, the scheduler generates each task based on the priority, while monitoring the execution time for each execution of each task and adjusting the priority. The means compares the execution time monitored by this scheduler with a predetermined reference execution time, and when the execution time of the task currently being executed exceeds the reference execution time,
Since the priority of the task is made lower than the priority of at least one other task, by adjusting the priority of each task based on its execution time, excessive execution of the high priority task is prevented, A task priority management system that can improve processing uniformity can be provided.

【0033】また、請求項2の発明によれば、各ジョブ
毎にジョブ識別子が記憶されたジョブ情報記憶手段及び
このジョブ情報記憶手段に記憶された各ジョブ識別子毎
に、同一ジョブに属する各タスク識別子、これら各タス
ク識別子に対応する各タスク優先度並びに同一ジョブに
属する他タスク識別子が記憶されたタスク情報記憶手段
を設け、ジョブ内優先度調整手段が、このタスク情報記
憶手段に記憶された各タスク優先度のうちのあるタスク
優先度が変更されたとき、タスク情報記憶手段及びジョ
ブ情報記憶手段の記憶内容に基づいて、変更されたタス
ク優先度をもつタスクと同一ジョブに属する他タスクの
優先度を同一ジョブにおける優先度の順序を変えないよ
うに変更するので、ジョブの無矛盾性を確保できるタス
ク優先度管理方式を提供できる。
According to the second aspect of the present invention, the job information storage means storing the job identifier for each job and each task belonging to the same job for each job identifier stored in the job information storage means The task information storage means for storing the identifiers, the respective task priorities corresponding to the respective task identifiers, and the other task identifiers belonging to the same job are provided, and the in-job priority adjustment means stores the task information storage means. When a certain task priority of the task priorities is changed, the priority of another task belonging to the same job as the task having the changed task priority is based on the stored contents of the task information storage means and the job information storage means. The task priority management method that can ensure job consistency by changing the priority so that the order of priorities in the same job is not changed It can be provided.

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

【図1】本発明の実施例に係るタスク優先度管理方式に
適用される計算機システムの構成を示すブロック図
FIG. 1 is a block diagram showing the configuration of a computer system applied to a task priority management system according to an embodiment of the present invention.

【図2】同実施例におけるジョブテーブル及びタスクテ
ーブルの構成図
FIG. 2 is a configuration diagram of a job table and a task table in the same embodiment.

【図3】同実施例における動作を説明するためのフロー
チャート
FIG. 3 is a flowchart for explaining the operation in the same embodiment.

【図4】同実施例における動作を説明するためのフロー
チャート
FIG. 4 is a flowchart for explaining the operation in the embodiment.

【図5】同実施例における動作を説明するためのフロー
チャート
FIG. 5 is a flowchart for explaining the operation in the embodiment.

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

1…内部タイマ、2…スケジューラ、3…OS、4…記
憶部、5…CPU、6…ジョブテーブル、7…タスク情
報、8…タスクテーブル。
1 ... internal timer, 2 ... scheduler, 3 ... OS, 4 ... storage unit, 5 ... CPU, 6 ... job table, 7 ... task information, 8 ... task table.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 内部タイマをもつオペレーションシステ
ムに各々優先度を有する複数のタスクをもつ記憶部が接
続され、前記記憶部内の各タスクが前記優先度に基づい
て処理を実行する計算機システムにおいて、 前記各タスクを前記優先度に基づいて生成する一方、こ
れら各タスクの実行毎に実行時間を監視するスケジュー
ラと、 このスケジューラに監視された実行時間及び所定の基準
実行時間を比較し、現在実行中のタスクの実行時間が当
該基準実行時間を越えたとき、当該タスクの優先度を少
なくとも1つの他タスクの優先度よりも低下させる優先
度調整手段とを備えたことを特徴とするタスク優先度管
理方式。
1. A computer system in which a storage unit having a plurality of tasks each having a priority is connected to an operation system having an internal timer, and each task in the storage unit executes a process based on the priority. While each task is generated based on the priority, a scheduler that monitors the execution time for each execution of each task is compared with the execution time monitored by this scheduler and a predetermined reference execution time, and the A task priority management method, comprising: priority adjusting means for lowering the priority of the task when compared with the reference execution time when the task execution time exceeds the reference execution time. .
【請求項2】 内部タイマをもつオペレーションシステ
ムに各々優先度を有する複数のタスクからなる複数のジ
ョブをもつ記憶部が接続され、前記記憶部内の各タスク
が前記優先度に基づいて処理を実行する計算機システム
において、 前記各ジョブ毎にジョブ識別子が記憶されたジョブ情報
記憶手段と、 このジョブ情報記憶手段に記憶された各ジョブ識別子毎
に、同一ジョブに属する各タスク識別子、これら各タス
ク識別子に対応する各タスク優先度及び前記同一ジョブ
に属する他タスク識別子が記憶されたタスク情報記憶手
段と、 このタスク情報記憶手段に記憶された各タスク優先度の
うちのあるタスク優先度が変更されたとき、前記タスク
情報記憶手段及び前記ジョブ情報記憶手段の記憶内容に
基づいて、前記変更されたタスク優先度をもつタスクと
同一ジョブに属する他タスクの優先度を前記同一ジョブ
における優先度の順序を変えないように変更するジョブ
内優先度調整手段とを備えたことを特徴とするタスク優
先度管理方式。
2. An operation system having an internal timer is connected to a storage unit having a plurality of jobs each having a priority, and each task in the storage unit executes a process based on the priority. In a computer system, a job information storage unit that stores a job identifier for each job, each job identifier stored in this job information storage unit, each task identifier that belongs to the same job, and each task identifier When each task priority and the other task identifiers belonging to the same job are stored, and a task priority among the task priorities stored in this task information storage means is changed, The changed task priority is based on the stored contents of the task information storage means and the job information storage means. A task priority management method, comprising: an in-job priority adjusting means for changing the priority of another task belonging to the same job as the own task so as not to change the order of priorities in the same job.
JP4362894A 1994-03-15 1994-03-15 System for managing task priority order Pending JPH07253893A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4362894A JPH07253893A (en) 1994-03-15 1994-03-15 System for managing task priority order

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4362894A JPH07253893A (en) 1994-03-15 1994-03-15 System for managing task priority order

Publications (1)

Publication Number Publication Date
JPH07253893A true JPH07253893A (en) 1995-10-03

Family

ID=12669130

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4362894A Pending JPH07253893A (en) 1994-03-15 1994-03-15 System for managing task priority order

Country Status (1)

Country Link
JP (1) JPH07253893A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007055055A1 (en) * 2005-11-08 2007-05-18 Yokogawa Electric Corporation Distribution system
WO2009029549A2 (en) * 2007-08-24 2009-03-05 Virtualmetrix, Inc. Method and apparatus for fine grain performance management of computer systems
JP2009277041A (en) * 2008-05-15 2009-11-26 Fujitsu Ltd Priority control program, priority control device and priority control method
US8677071B2 (en) 2010-03-26 2014-03-18 Virtualmetrix, Inc. Control of processor cache memory occupancy
US8782653B2 (en) 2010-03-26 2014-07-15 Virtualmetrix, Inc. Fine grain performance resource management of computer systems
JP2014519649A (en) * 2011-05-26 2014-08-14 リアル ヴィエヌシー リミテッド Method and system for remotely controlling a mobile phone

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8296770B2 (en) 2005-11-08 2012-10-23 Yokogawa Electric Corporation Systems and methods for allocation of hardware resource to tasks accordance with the device-based relative value for each of the field devices
JP2007133481A (en) * 2005-11-08 2007-05-31 Yokogawa Electric Corp Distributed system
CN101305348A (en) * 2005-11-08 2008-11-12 横河电机株式会社 Distributed system
WO2007055055A1 (en) * 2005-11-08 2007-05-18 Yokogawa Electric Corporation Distribution system
WO2009029549A2 (en) * 2007-08-24 2009-03-05 Virtualmetrix, Inc. Method and apparatus for fine grain performance management of computer systems
WO2009029549A3 (en) * 2007-08-24 2009-04-16 Virtualmetrix Inc Method and apparatus for fine grain performance management of computer systems
US8397236B2 (en) 2007-08-24 2013-03-12 Virtualmetrix, Inc. Credit based performance managment of computer systems
JP2009277041A (en) * 2008-05-15 2009-11-26 Fujitsu Ltd Priority control program, priority control device and priority control method
US8832703B2 (en) 2008-05-15 2014-09-09 Fujitsu Limited Dynamically changing job allocation priority based on a restoration rate for each user and time frame
US8677071B2 (en) 2010-03-26 2014-03-18 Virtualmetrix, Inc. Control of processor cache memory occupancy
US8782653B2 (en) 2010-03-26 2014-07-15 Virtualmetrix, Inc. Fine grain performance resource management of computer systems
JP2014519649A (en) * 2011-05-26 2014-08-14 リアル ヴィエヌシー リミテッド Method and system for remotely controlling a mobile phone
US9572017B2 (en) 2011-05-26 2017-02-14 Realvnc Ltd Method and system for remote controlling mobile phones

Similar Documents

Publication Publication Date Title
EP2388699B1 (en) Information processing device and information processing method
US6006247A (en) Method and system for scheduling threads and handling exceptions within a multiprocessor data processing system
US7441240B2 (en) Process scheduling apparatus, process scheduling method, program for process scheduling, and storage medium recording a program for process scheduling
JPH0644235B2 (en) How to operate a computer system
JPH07253893A (en) System for managing task priority order
US5241676A (en) Method for controlling process priority in semaphore operation
US8555285B2 (en) Executing a general-purpose operating system as a task under the control of a real-time operating system
JPH0969053A (en) Multithread control system and queuing system of message receiving mechanism
JPH0628323A (en) Process execution control method
JPH10187636A (en) Power-consumption reducing cluster system
US8095695B2 (en) Control apparatus for process input-output device
US5835767A (en) Method and apparatus for controlling available processor capacity
JPH0883257A (en) Method for optimizing process execution of parallel computer system
JP3005562B1 (en) Task management device and task scheduling method
JP2001282560A (en) Virtual computer control method, its performing device and recording medium recording its processing program
JPH0793168A (en) Task management system
JP2903525B2 (en) Job management method
JPH06187171A (en) Scheduling system for interruption
JPS62279433A (en) Dynamic task changing system
JPH06230982A (en) Transaction processing control system
JPS63271646A (en) System for managing garbage collection
JP2000207374A (en) Distributed processing computer system
JP2000066910A (en) Task scheduling method and recording medium
JPH0612394A (en) Process schedule system
JPH0822396A (en) Device and method for managing task execution