JPH0417034A - Task scheduling device - Google Patents

Task scheduling device

Info

Publication number
JPH0417034A
JPH0417034A JP2121482A JP12148290A JPH0417034A JP H0417034 A JPH0417034 A JP H0417034A JP 2121482 A JP2121482 A JP 2121482A JP 12148290 A JP12148290 A JP 12148290A JP H0417034 A JPH0417034 A JP H0417034A
Authority
JP
Japan
Prior art keywords
task
state
priority
man
waiting
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
JP2121482A
Other languages
Japanese (ja)
Inventor
Hirobumi Tanaka
博文 田中
Yoshiyuki Iwamura
岩村 喜之
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2121482A priority Critical patent/JPH0417034A/en
Publication of JPH0417034A publication Critical patent/JPH0417034A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the priority of a task performing a man-machine interface process from being lowered so as to prevent frequent interruption of a picture drawing process, etc., by providing a man-machine interface processing history storing means and task managing means. CONSTITUTION:A priority storing means 101 which stores the priority of each task, status transition information storing means 102 which stores status transition information indicating transition statuses, and man-machine interface processing history storing means 103 which stores the executing history of the man-machine interface process of each task are provided. In addition, a task managing means 104 which decides whether each task is to be set to an executing status or executable status whenever each task is transferred to a waiting status at a prescribed time or in an executing status and, when a task is transferred to the waiting status, raises the priority of the task is provided. The means 104, on the other hand, lowers the priority only when the extent of the man-machine interface process of the task is small. Therefore, efficient task scheduling can be performed without spoiling the responsiveness to the operation of the operator.

Description

【発明の詳細な説明】 主粟五艶科且分界 本発明は、複数のタスクを選択的に実行するマルチタス
ク計算機システムに適用されるタスクスケジューリング
装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a task scheduling device applied to a multitasking computer system that selectively executes a plurality of tasks.

災来夏肢森 計算機を有効に利用するために、複数のタスクを選択的
に実行するマルチタスク計算機システムがある。この種
のシステムには、いずれのタスクを実行状態にするかを
決定するタスクスヶジューリング装置が備えられている
In order to make effective use of the Disaster Natsashimori Computer, there is a multi-task computer system that selectively executes multiple tasks. This type of system is equipped with a task scheduling device that determines which tasks are to be placed in an execution state.

従来のタスクスケジューリング装置は、例えば第4図に
示すような構成を成している。同図において、401は
それぞれのタスクの優先度を記憶する優先度記憶手段、
402はそれぞれのタスクの状態の遷移を示す状態遷移
情報を記憶する状態遷移情報記憶手段、403は所定の
時間ごと、および実行状態のタスクが待ち状態に遷移す
るごとに、それぞれのタスクの優先度、および状態遷移
情報に基づいて、それぞれのタスクを実行状態にするか
実行可能状態にするかを決定するとともに、それぞれの
タスクの優先度の決定を行うタスク管理手段である。
A conventional task scheduling device has a configuration as shown in FIG. 4, for example. In the figure, 401 is a priority storage means for storing the priority of each task;
402 is a state transition information storage means for storing state transition information indicating the state transition of each task; 403 is a state transition information storage means for storing state transition information indicating the state transition of each task; 403 is a state transition information storage means for storing state transition information indicating the state transition of each task; , and state transition information, the task management means determines whether each task is placed in an execution state or an executable state, and also determines the priority of each task.

上記状態遷移情報記憶手段402が記憶する状態遷移情
報は、それぞれのタスクが、実行状態であるか、実行可
能状態であるか、または待ち状態であるかのタスクの状
態の遷移を示すものである。
The state transition information stored in the state transition information storage means 402 indicates the state transition of each task, such as whether the task is in a running state, an executable state, or a waiting state. .

上記実行状態は、タスクがCPU400で実行されてい
る状態であり、実行可能状態は、定期的に行われるタス
ク管理手段403の作動によって実行が強制的に中断さ
れ、再度実行されるのを待機している状態であり、また
、待ち状態は、実行状態で行った入出力要求に対する周
辺装置の動作完了待ちなど、事象完了待ちのために、C
PU400による実行を放棄する要求を発行したことに
よって実行状態が解除され、実行可能になるための条件
が成立するのを待っている状態である。
The execution state is a state in which the task is being executed by the CPU 400, and the executable state is a state in which the execution is forcibly interrupted by the periodic operation of the task management means 403 and is waiting for it to be executed again. In addition, the wait state is a state in which the CPU is waiting for the completion of an event, such as waiting for the completion of an operation of a peripheral device in response to an input/output request made in the execution state.
The execution state is canceled by issuing a request to abandon execution by the PU 400, and the process is in a state where it is waiting for the conditions to become executable to be satisfied.

タスク管理手段403は、所定の時間ごと、および実行
状態のタスクが待ち状態になるごとに、タスクの優先度
および状態遷移情報に基づいて、実行状態もしくは実行
可能状態のタスクの中から実行状態にするタスクを決定
し、このタスクをCPU400に実行させるようになっ
ている。タスク管理手段403は、また、実行状態のタ
スクが待ち状態に遷移したときに、そのタスクの優先度
を上昇させる一方、所定の時間ごとに、実行状態のタス
クの優先度を下降させるようになっている。
The task management unit 403 selects a task from among tasks in a running state or an executable state to a running state based on the task priority and state transition information at predetermined time intervals and each time a task in a running state becomes a waiting state. The CPU 400 determines a task to be executed and causes the CPU 400 to execute the task. The task management means 403 also raises the priority of a task in the running state when it transitions to the waiting state, and lowers the priority of the task in the running state at predetermined intervals. ing.

上記のように構成されたタスクスケジューリング装置に
おいては、タスク管理手段403は、タスクが周辺装置
の動作の完了待ち等のためにCPU400による実行を
放棄する要求を発行し、待ち状態となった場合に、この
タスクの優先度を上昇させるとともに、他の実行可能状
態のタスクを実行状態にする。
In the task scheduling device configured as described above, the task management means 403 issues a request to abandon execution by the CPU 400 because the task is waiting for the completion of an operation of a peripheral device, etc., and when the task enters a waiting state, , raises the priority of this task and puts other tasks in an executable state into an executable state.

タスク管理手段403は、また、タスクがCPU400
による実行を放棄する要求を発行しない場合でも、所定
の時間ごとに実行状態にあったタスクの優先度を下降さ
せるとともに、実行状態にあったタスクと他の実行可能
状態のタスクの優先度をもとに、実行状態にするタスク
を決定する。
The task management means 403 also allows the task to be executed by the CPU 400.
Even if you do not issue a request to abandon execution by Then, decide which tasks should be placed in the running state.

このように優先度に基づいてタスクの実行を管理するこ
とにより、入出力処理等を頻繁に行って待ち状態となる
ことが多いタスクは、優先度を高くして、周辺装置の動
作等が完了すると速やかに次の処理が行われる可能性を
高くする一方、入出力処理を行わずCP’U400の占
有度が大きいタスクは、優先度を低くしてCPU400
の占有度を抑え、他のタスクの実行をあまり妨げること
がないようにして、効率的なタスクスケジューリングを
行うようになっている。
By managing the execution of tasks based on priority in this way, tasks that frequently perform input/output processing and are often in a waiting state can be given a high priority and the operations of peripheral devices can be completed. This increases the possibility that the next process will be performed quickly, while tasks that do not perform input/output processing and occupy a large amount of the CPU'U 400 are given a lower priority and are placed on the CPU 400.
It is designed to perform efficient task scheduling by reducing the amount of occupancy of the task and not interfering with the execution of other tasks.

が ′ しようとする 近年、グラフインク表示などを伴う対話型の処理を行っ
て、マンマシンインタフェイスを向上させる計算機シス
テムが多く用いられている。この種の計算機システムで
は、操作性を向上させるために、オペレータの操作に対
する応答性を高く保つ必要がある。
In recent years, many computer systems have been used to improve the human-machine interface by performing interactive processing with graph ink displays. In this type of computer system, in order to improve operability, it is necessary to maintain high responsiveness to operator operations.

しかしながら、このような計算機システムに前記従来の
タスクスケジューリング装置を通用すると、描画処理等
を@繁に行っているタスクは、CPUの占有度が大きく
なりがちなので、優先度が下降し、描画処理等が頻繁に
中断されて、オペレータの操作に対する応答性が低下し
やすいという問題点を有していた。この問題点は、デイ
スプレィへの描画動作等をCPUが直接行う計算機シス
テムにおいては一層顕著になる。
However, when the conventional task scheduling device is applied to such a computer system, tasks that frequently perform drawing processing, etc. tend to occupy a large amount of the CPU, so their priority level decreases, and tasks that frequently perform drawing processing, etc. This has the problem that the process is frequently interrupted and responsiveness to operator operations tends to deteriorate. This problem becomes even more noticeable in computer systems in which the CPU directly performs operations such as drawing on a display.

本発明はかかる点に鑑み、デイスプレィへの描画などの
可視情報の出力等、マンマシンインクフェイス処理を頻
繁に行っているタスクについては、事象完了待ちとなる
ような入出力処理等を行わず、かつCPUの占有度が大
きいタスクであっても、優先度が下降しないようにする
ことによって、描画処理等が頻繁に中断されるのを防止
し、オペレータの操作に対する応答性などを損なうこと
なく、効率的なタスクスケジューリングを行うことので
きるタスクスケジューリング装置の提供を目的としてい
る。
In view of this, the present invention does not perform input/output processing that requires waiting for event completion for tasks that frequently perform man-machine ink face processing, such as outputting visible information such as drawing on a display. In addition, even if the task occupies a large amount of the CPU, by preventing the priority from decreasing, drawing processing etc. are prevented from being frequently interrupted, and responsiveness to operator operations is not impaired. The object of the present invention is to provide a task scheduling device that can perform efficient task scheduling.

i をn・” るための 上記目的を達成するため、本発明は、複数のタスクを選
択的にCPUに実行させるタスクスケジューリング装置
であって、それぞれのタスクの優先度を記憶する優先度
記憶手段と、それぞれのタスクが、CPUによって実行
されている実行状態であるか、実行が強制的に中断され
、再度実行状態にされるのを待機している実行可能状態
であるか、または実行可能になるための条件が成立する
のを待っている待ち状態であるかの状態の遷移を示す状
態遷移情報を記憶する状態遷移情報記憶手段と、それぞ
れのタスクのマンマシンインクフェイス処理の実行の有
無に関する履歴を記憶するマンマシンインクフェイス処
理履歴記憶手段と、所定の時間ごと、および実行状態の
タスクが待ち状態に遷移するごとに、それぞれのタスク
の優先度、および状態遷移情報に基づいて、それぞれの
タスクを実行状態にするか実行可能状態にするかを決定
するとともに、実行状態のタスクが待ち状態に遷移した
ときに、そのタスクの優先度を上昇させる一方、所定の
時間ごとに、実行状態のタスクにおけるマンマシンイン
クフェイス処理の程度が小さい場合にのみ、そのタスク
の優先度を下降させるタスク管理手段とを備えたことを
特徴としている。
In order to achieve the above object of reducing i to n.'', the present invention provides a task scheduling device that causes a CPU to selectively execute a plurality of tasks, and includes a priority storage means for storing the priority of each task. and each task is either in the running state where it is being executed by the CPU, in the runnable state where execution has been forcibly interrupted and is waiting to be put into the running state again, or in the runnable state. a state transition information storage means for storing state transition information indicating whether the state is in a waiting state waiting for a condition for the task to become satisfied; A man-machine ink face processing history storage means for storing the history, and each time a task in the running state transitions to the waiting state, the processing history is stored based on the priority of each task and the state transition information. In addition to determining whether a task is in a running state or a ready state, when a task in a running state transitions to a waiting state, the priority of the task is increased. The present invention is characterized by comprising task management means for lowering the priority of a task only when the degree of man-machine ink face processing in the task is small.

作−−J側− 上記構成によれば、マンマシンインクフェイス処理履歴
記憶手段は、それぞれのタスクがデイスプレィへの描画
などの可視情報の出力等、マンマシンインクフェイス処
理を行ったか否かの履歴を記憶する。タスク管理手段は
、実行状態のタスクが待ち状態に遷移したときに、その
タスクの優先度を上昇させる一方、所定の時間ごとに、
実行状態のタスクにおけるマンマシンインクフェイス処
理の程度が小さい場合にのみ、そのタスクの優先度を下
降させる。また、タスク管理手段は、上記のようにして
設定された優先度に応じて、それぞれのタスクを実行状
態にするか実行可能状態にするかを決定する。
Production - J side - According to the above configuration, the man-machine ink face processing history storage means stores a history of whether each task has performed man-machine ink face processing, such as outputting visible information such as drawing on a display. remember. The task management means increases the priority of the task when the task in the running state transitions to the waiting state, and at predetermined intervals, increases the priority of the task.
Only when the degree of man-machine ink face processing in a running task is small, the priority of that task is lowered. Further, the task management means determines whether to put each task in an execution state or an executable state according to the priority set as described above.

実二」1−忽一 第1図は本発明の一実施例におけるタスクスケジューリ
ング装置の構成を示すブロック図、第2図はタスクの状
態遷移を示す説明図、第3図はタスクの優先度と状態の
変化を示すタイムチャートである。
Figure 1 is a block diagram showing the configuration of a task scheduling device in an embodiment of the present invention, Figure 2 is an explanatory diagram showing the state transition of tasks, and Figure 3 is a diagram showing the priority and priority of tasks. It is a time chart showing changes in state.

第1図において、101はそれぞれのタスクの優先度を
記憶する優先度記憶手段、102はそれぞれのタスクの
状態の遷移を示す状態遷移情報を記憶する状態遷移情報
記憶手段、103はそれぞれのタスクのマンマシンイン
タフェイス処理の実行の有無に関する履歴を記憶するマ
ンマシンインクフェイス処理履歴記せ手段、104は所
定の時間ごと、および実行状態のタスクが待ち状態に遷
移するごとに、それぞれのタスクの優先度、および状態
遷移情報に基づいて、それぞれのタスクを実行状態にす
るか実行可能状態にするかを決定するとともに、それぞ
れのタスクの優先度の決定を行うタスク管理手段である
In FIG. 1, 101 is a priority storage means for storing the priority of each task, 102 is a state transition information storage means for storing state transition information indicating the state transition of each task, and 103 is a priority storage means for storing the priority of each task. A man-machine ink face processing history recording means 104 stores a history regarding whether or not man-machine interface processing has been executed, and 104 indicates the priority of each task at predetermined time intervals and each time a task in a running state transitions to a waiting state. , and state transition information, the task management means determines whether each task is placed in an execution state or an executable state, and also determines the priority of each task.

また、105はタスク管理手段104によるタスクの状
態の決定に基づいて、タスクAまたはタスクBを実行す
るCPU、106は周辺装置、107はデイスプレィで
ある。このデイスプレィ107への描画処理は、CPU
I O5が直接行うようになっている。
Further, 105 is a CPU that executes task A or task B based on the determination of the task status by the task management means 104, 106 is a peripheral device, and 107 is a display. This drawing process on the display 107 is performed by the CPU.
IO5 is designed to do this directly.

上記状態遷移情報記憶手段102が記憶する状態遷移情
報は、それぞれのタスクが、実行状態であるか、実行可
能状態であるか、または待ち状態であるかのタスクの状
態の遷移を示すものである。
The state transition information stored in the state transition information storage means 102 indicates the state transition of each task, such as whether the task is in a running state, an executable state, or a waiting state. .

上記実行状態は、タスクがCPUI 05で実行されて
いる状態であり、実行可能状態は、定期的に行われるタ
スク管理手段104の作動によって実行が強制的に中断
され、再度実行されるのを待機している状態であり、ま
た、待ち状態は、実行状態で行った入出力要求に対する
周辺装置106の動作完了待ちなど、事象完了待ちのた
めに、CPU105による実行を放棄する要求を発行し
たことによって実行状態が解除され、実行可能になるた
めの条件が成立するのを待っている状態である。
The execution state is a state in which the task is being executed on the CPUI 05, and the executable state is a state in which execution is forcibly interrupted by the periodic operation of the task management means 104 and waits for it to be executed again. The wait state is a state in which the CPU 105 issues a request to abandon execution in order to wait for the completion of an event, such as waiting for the peripheral device 106 to complete an operation in response to an input/output request made in the execution state. It is in a state where it is waiting for the execution state to be canceled and the conditions for becoming executable to be satisfied.

マンマシンインクフェイス処理履歴記憶手段103は、
それぞれのタスクがデイスプレィ107への描画処理を
行っている時間を記憶するようになっている。
The man-machine ink face processing history storage means 103 includes:
The time during which each task is performing drawing processing on the display 107 is stored.

タスク管理手段104には、所定の時間ごと、および実
行状態のタスクが待ち状態になるごとに、タスクの優先
度および状態遷移情報に基づいて、実行状態もしくは実
行可能状態のタスクの中から実行状態にするタスクを決
定し、このタスクをCPU105に実行させるタスク決
定手段111と、実行状態のタスクが待ち状態に遷移し
たときに、そのタスクの優先度を上昇させる優先度上昇
手段112と、所定の時間ごとに、実行状態のタスクに
おけるマンマシンインタフェイス処理の程度を判定する
マンマシンインタフェイス処理履歴判定手段113と、
マンマシンインクフェイス処理の程度が小さい場合にの
み、その実行状態のタスクの優先度を下降させる優先度
下降手段114とが設けられている。
The task management unit 104 selects a running state from among tasks in a running state or an executable state, based on the task priority and state transition information, at predetermined time intervals and each time a task in a running state becomes a waiting state. a task determining means 111 which determines a task to be executed and causes the CPU 105 to execute this task; a priority increasing means 112 which increases the priority of a task when a task in an execution state transitions to a waiting state; A man-machine interface processing history determining means 113 that determines the degree of man-machine interface processing in a task in an execution state for each time;
Priority lowering means 114 is provided for lowering the priority of the task in the execution state only when the degree of man-machine ink face processing is small.

上記タスク決定手段111は、タスクA、Bがそれぞれ
実行状態、または実行可能状態であって、しかも優先度
が同じ場合は、実行可能状態である時間が長い方のタス
クを実行状態にするようになっている。また、優先度上
昇手段112、および優先度下降手段114は、優先度
の上昇、下降をタスクA、Bで相対的に行うとともに、
優先度の差の上限を2レベルとし、3レベル以上開かな
いようになっている。
The task determining means 111 sets the task that has been in the executable state for a longer time to the execution state if tasks A and B are in the execution state or in the executable state and have the same priority. It has become. In addition, the priority increasing means 112 and the priority decreasing means 114 relatively raise and lower the priorities of tasks A and B, and
The upper limit of the difference in priority is set to 2 levels, and it is not possible to open more than 3 levels.

上記の構成において、それぞれのタスクA、Hの状態は
、タスク管理手段104の決定により、第2図に示すよ
うに遷移し得るようになっている。
In the above configuration, the states of each task A and H can be changed as shown in FIG. 2 by the determination of the task management means 104.

すなわち、実行状態へは実行可能状態からのみ遷移可能
であり、実行可能状態へは実行状態と待ち状態とから遷
移可能であり、待ち状態へは実行状態からのみ遷移可能
である。
That is, it is possible to transition to the execution state only from the executable state, it is possible to transition to the executable state from the execution state and the wait state, and it is possible to transition to the wait state only from the execution state.

次に、タスクスケジューリング装置によって、タスクA
、Hの優先度と状態とが決定される例を第3図に示すタ
イムチャートに基づいて具体的に説明する。なお、第3
図中、太線はタスクの実行状態、二重線は描画処理の実
行中、綿実線は実行可能状態、点線は待ち状態を示す。
Next, the task scheduling device schedules task A.
, H will be specifically explained based on the time chart shown in FIG. 3. In addition, the third
In the figure, thick lines indicate the execution state of the task, double lines indicate the execution state of the drawing process, solid cotton lines indicate the executable state, and dotted lines indicate the waiting state.

まず、時刻1以前では、タスクAは実行状態、タスクB
は実行可能状態で、優先度はタスクA1Bで同一である
とする。
First, before time 1, task A is in the running state, task B
It is assumed that task A1B is in an executable state and has the same priority as task A1B.

時刻1でタスクAが入出力処理を行うと、タスクAは周
辺装置106の動作が完了するまで待ち状態になる。そ
こで、優先度上昇手段112は、タスクAの優先度をル
ベル上昇させて2にし、タスク決定手段111は、実行
可能状態のタスクBを実行状態にする。
When task A performs input/output processing at time 1, task A enters a wait state until the operation of peripheral device 106 is completed. Therefore, the priority raising means 112 raises the priority of task A to 2, and the task determining means 111 puts task B, which is in an executable state, into an execution state.

時刻2では、マンマシンインタフェイス処理履歴判定手
段113が、実行状態のタスクBは時刻1から時刻2ま
での期間にデイスプレィ107への描画処理を行ってい
ないと判定し、優先度下降手段114が、タスクBの優
先度をタスクAに対して相対的に下降させるために、タ
スクAの優先度をルベル上昇させる。また、時刻2では
、タスクAが未だ待ち状態のままであるため、タスク決
定手段111は、引続きタスクBに実行状態を継続させ
る。
At time 2, the man-machine interface processing history determining means 113 determines that task B in the execution state has not performed drawing processing on the display 107 during the period from time 1 to time 2, and the priority lowering means 114 , in order to lower the priority of task B relative to task A, the priority of task A is raised. Furthermore, at time 2, since task A is still in the waiting state, the task determining means 111 causes task B to continue in the execution state.

時刻2から時刻3の期間にタスクAの入出力処理による
周辺装置106の動作が完了し、タスクAは実行可能状
態となる。
During the period from time 2 to time 3, the operation of the peripheral device 106 due to the input/output processing of task A is completed, and task A becomes executable.

時刻3では、マンマシンインクフェイス処理履歴判定手
段113が、実行状態のタスクBは、時刻2から時刻3
までの期間にも、やはりデイスプレィ107への描画処
理を行っていないと判定する。そこで、優先度下降手段
114は、タスクBの優先度を相対的に下降させるため
にタスクへの優先度をルベル上昇させようとするが、優
先度の差がすでに上限の2レベルであるので、優先度は
そのままにする。また、タスク決定手段111は、タス
クAの優先度がタスクBの優先度よりも高いので、タス
クAを実行状態にし、タスクBを実行可能状態にする。
At time 3, the man-machine ink face processing history determining means 113 determines that task B in the execution state is
It is determined that no drawing processing is performed on the display 107 during the period up to this point. Therefore, the priority lowering means 114 attempts to raise the priority level of task B in order to relatively lower the priority level of task B, but since the difference in priority levels is already two levels, which is the upper limit, Leave the priority as is. Further, since the priority of task A is higher than the priority of task B, the task determining means 111 puts task A into an execution state and puts task B into an executable state.

時刻4では、マンマシンインクフェイス処理履歴判定手
段113は、今度は実行状態のタスクAが、時刻3から
時刻4までの期間にデイスプレィ107への描画処理を
行っていないと判定し、優先度下降手段114は、タス
クAの優先度をルベル下降させる。タスク決定手段11
1は、タスクAの優先度がまだタスクBの優先度よりも
高いため、タスクAの実行状態を継続する。
At time 4, the man-machine ink face processing history determining means 113 determines that task A, which is in the execution state, has not performed drawing processing on the display 107 during the period from time 3 to time 4, and its priority is lowered. Means 114 lowers the priority of task A by a certain level. Task determining means 11
1 continues the execution state of task A because the priority of task A is still higher than the priority of task B.

時刻5では、マンマシンインタフェイス処理履歴判定手
段113は、時刻4から時刻5までの期間にタスクAが
デイスプレィ107への描画処理を頻繁に行っていると
判定する。それゆえ、優先度下降手段114は起動され
ず、タスクAの優先度は低下しない。そこで、タスクA
の優先度は、やはりタスクBの優先度よりも高いので、
タスク決定手段111は、タスクAの実行状態を継続さ
せる。
At time 5, the man-machine interface processing history determining means 113 determines that task A frequently performs drawing processing on the display 107 during the period from time 4 to time 5. Therefore, the priority lowering means 114 is not activated and the priority of task A is not lowered. Therefore, task A
The priority of task B is still higher than the priority of task B, so
The task determining means 111 continues the execution state of task A.

時刻6では、マンマシンインクフェイス処理履歴判定手
段113は、時刻5から時刻6までの期間にタスクAが
行ったデイスプレィ107への描画処理の頻度が小さい
と判定し、優先度下降手段1.14は、タスクAの優先
度をルベル下降させる。この場合には、タスクAの優先
度とタスクBの優先度とは同じになるが、タスクBの方
が長期にわたって実行可能状態が続いているので、タス
ク決定手段111は、タスクBを実行状態にし、タスク
Aを実行可能状態にする。
At time 6, the man-machine ink face processing history determining means 113 determines that the frequency of drawing processing on the display 107 performed by task A during the period from time 5 to time 6 is low, and the priority lowering means 1.14 lowers the priority of task A. In this case, the priority of task A and the priority of task B are the same, but since task B has been in an executable state for a longer period of time, the task determining means 111 places task B in an executable state. and make task A executable.

上述のように本実施例のタスクスケジューリング装置に
おいては、マンマシンインクフェイス処理履歴記憶手段
103が、それぞれのタスクがデイスプレィ107への
描画処理を行った場合に、描画処理を行っている時間を
記録しており、タスクがCPU105を放棄する要求を
発行せず、所定の時間ごとに、タスク決定手段111が
それぞれのタスクを実行状態にするか実行可能状態にす
るかを決定する場合、マンマシンインクフェイス処理履
歴判定手段113は、マンマシンインタフェイス処理履
歴記憶手段103が記憶する描画処理の時間をもとに、
実行状態のタスクがデイスプレィ107への描画処理を
頻繁に行っているかどうかを判定し、行っていると判定
した場合には、優先度下降手段114はそのタスクの優
先度を下降させない。それゆえ、デイスプレィ107へ
の描画処理を頻繁に行っているタスクについては、入出
力処理を行わず、しかもCPU105の占有度が大きい
タスクであっても優先度を下降させないため、デイスプ
レィ107への描画処理の中断が抑えられる。
As described above, in the task scheduling device of this embodiment, the man-machine ink face processing history storage means 103 records the time during which each task performs drawing processing when it performs drawing processing on the display 107. If the task does not issue a request to abandon the CPU 105 and the task determining means 111 determines whether to put each task into the execution state or into the executable state at predetermined intervals, the man-machine ink The face processing history determining means 113 determines, based on the drawing processing time stored in the man-machine interface processing history storage means 103,
It is determined whether the task in the execution state frequently performs drawing processing on the display 107, and if it is determined that the task is drawing, the priority lowering means 114 does not lower the priority of the task. Therefore, tasks that frequently perform drawing processing on the display 107 do not perform input/output processing, and their priority is not lowered even if they occupy a large amount of the CPU 105. Processing interruptions are suppressed.

なお、本実施例においては、優先度の上昇、下降を2つ
のタスク間で相対的に行っているが、絶対的に行う方法
を採用してもよい。また、タスク間の優先度の差が所定
のレベル以上に開く場合以外は常に優先度の上昇、下降
を行っているが必ずしも常に優先度の上昇、下降を行う
必要はなく、ある絶対的な優先度のレベル以下には下降
させない方法を採用することもできる。さらに、本実施
例においては、タスク管理手段104は、優先度の上昇
、下降を行った後の優先度に基づいて実行状態にするタ
スクを決定しているが、上昇、下降を行う前の優先度に
基づいて決定する方法を採用することもできる。
In this embodiment, the priority level is increased and decreased relatively between the two tasks, but a method of absolute priority may be adopted. Also, unless the difference in priority between tasks exceeds a predetermined level, the priority is always raised or lowered, but it is not always necessary to raise or lower the priority, but there is a certain absolute priority. It is also possible to adopt a method that does not lower the temperature below the level of 100%. Furthermore, in this embodiment, the task management means 104 determines the task to be placed in the execution state based on the priority after raising and lowering the priority, but It is also possible to adopt a method of determining based on degree.

光凱夏訪果 以上のように、本発明によれば、それぞれのタスクのマ
ンマシンインタフェイス処理の実行の有無に関する履歴
を記憶するマンマシンインクフェイス処理履歴記憶手段
と、所定の時間ごとに、実行状態のタスクにおけるマン
マシンインタフェイス処理の程度が小さい場合にのみ、
そのタスクの優先度を下降させるタスク管理手段とを備
えていることにより、デイスプレィへの描画などの可視
情報の出力等、マンマシンインクフェイス処理を行って
いるタスクは、事象完了待ちとなるような入出力処理を
行わず、かつCPUの占有度が大きい場合であっても、
優先度が下降しないので、描画処理等が頻繁に中断され
ることはない。
As described above, according to the present invention, the man-machine ink face processing history storage means stores the history regarding whether or not the man-machine interface processing of each task is executed; Only when the degree of man-machine interface processing in the task in the execution state is small;
By being equipped with a task management means that lowers the priority of the task, tasks that are performing man-machine ink face processing, such as outputting visible information such as drawing on a display, can be prevented from waiting for event completion. Even if there is no input/output processing and the CPU occupancy is large,
Since the priority does not drop, drawing processing etc. are not frequently interrupted.

したがって、オペレータの操作に対する応答性を損なう
ことなく、効率的なタスクスケジューリングを行うこと
ができるという効果を奏する。
Therefore, there is an effect that efficient task scheduling can be performed without impairing responsiveness to operator operations.

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

第1図は本発明の一実施例におけるタスクスケジューリ
ング装置の構成を示すブロック図、第2図はタスクの状
態遷移を示す説明図、第3図はタスクの優先度と状態の
変化を示すタイムチャート、第4図は従来のタスクスケ
ジューリング装置の構成を示すブロック図である。 101・・・優先度記憶手段、102・・・状態遷移情
報記憶手段、103・・・マンマシンインタフェイス処
理履歴記憶手段、104・・・タスク管理手段、105
・・・CPU 代理人  弁理士  中隔 司朗 I く= へへ
FIG. 1 is a block diagram showing the configuration of a task scheduling device according to an embodiment of the present invention, FIG. 2 is an explanatory diagram showing task state transitions, and FIG. 3 is a time chart showing task priorities and state changes. , FIG. 4 is a block diagram showing the configuration of a conventional task scheduling device. 101... Priority storage means, 102... State transition information storage means, 103... Man-machine interface processing history storage means, 104... Task management means, 105
...CPU Agent Patent Attorney Shiro Neptune I Ku= Hehe

Claims (1)

【特許請求の範囲】[Claims] (1)複数のタスクを選択的にCPUに実行させるタス
クスケジューリング装置であって、 それぞれのタスクの優先度を記憶する優先度記憶手段と
、 それぞれのタスクが、CPUによって実行されている実
行状態であるか、実行が強制的に中断され、再度実行状
態にされるのを待機している実行可能状態であるか、ま
たは実行可能になるための条件が成立するのを待ってい
る待ち状態であるかの状態の遷移を示す状態遷移情報を
記憶する状態遷移情報記憶手段と、 それぞれのタスクのマンマシンインタフェイス処理の実
行の有無に関する履歴を記憶するマンマシンインタフェ
イス処理履歴記憶手段と、 所定の時間ごと、および実行状態のタスクが待ち状態に
遷移するごとに、それぞれのタスクの優先度、および状
態遷移情報に基づいて、それぞれのタスクを実行状態に
するか実行可能状態にするかを決定するとともに、実行
状態のタスクが待ち状態に遷移したときに、そのタスク
の優先度を上昇させる一方、所定の時間ごとに、実行状
態のタスクにおけるマンマシンインタフェイス処理の程
度が小さい場合にのみ、そのタスクの優先度を下降させ
るタスク管理手段と、 を備えたことを特徴とするタスクスケジューリング装置
(1) A task scheduling device that causes a CPU to selectively execute a plurality of tasks, comprising a priority storage means for storing the priority of each task, and an execution state in which each task is being executed by the CPU. Either the execution is forcibly suspended and is in a runnable state waiting to be put into the running state again, or the wait state is waiting for a condition to become runnable. a state transition information storage means for storing state transition information indicating a state transition; a man-machine interface processing history storage means for storing a history regarding whether or not man-machine interface processing has been executed for each task; Each time a task in the running state transitions to the waiting state, it is determined whether to put each task in the running state or in the ready state based on the priority of each task and the state transition information. In addition, when a task in the running state transitions to the waiting state, the priority of the task is increased, and at predetermined intervals, only when the degree of man-machine interface processing in the task in the running state is small. A task scheduling device comprising: task management means for lowering the priority of a task;
JP2121482A 1990-05-10 1990-05-10 Task scheduling device Pending JPH0417034A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2121482A JPH0417034A (en) 1990-05-10 1990-05-10 Task scheduling device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2121482A JPH0417034A (en) 1990-05-10 1990-05-10 Task scheduling device

Publications (1)

Publication Number Publication Date
JPH0417034A true JPH0417034A (en) 1992-01-21

Family

ID=14812253

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2121482A Pending JPH0417034A (en) 1990-05-10 1990-05-10 Task scheduling device

Country Status (1)

Country Link
JP (1) JPH0417034A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006009261A1 (en) * 2004-07-23 2006-01-26 Matsushita Electric Industrial Co., Ltd. Real time processing software control device and method
JP2007221556A (en) * 2006-02-17 2007-08-30 Nikon Corp Electronic camera
JP2007272893A (en) * 2006-03-30 2007-10-18 Sun Microsyst Inc Mechanism for reducing detectable pause in dynamic output caused by dynamic compilation

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006009261A1 (en) * 2004-07-23 2006-01-26 Matsushita Electric Industrial Co., Ltd. Real time processing software control device and method
JP2007221556A (en) * 2006-02-17 2007-08-30 Nikon Corp Electronic camera
JP4742901B2 (en) * 2006-02-17 2011-08-10 株式会社ニコン Electronic camera
JP2007272893A (en) * 2006-03-30 2007-10-18 Sun Microsyst Inc Mechanism for reducing detectable pause in dynamic output caused by dynamic compilation

Similar Documents

Publication Publication Date Title
US6006247A (en) Method and system for scheduling threads and handling exceptions within a multiprocessor data processing system
US8230430B2 (en) Scheduling threads in a multiprocessor computer
KR950002713B1 (en) Communications adapter
US5613114A (en) System and method for custom context switching
US9021375B2 (en) Notification of state transition of an out-of-focus application
US7853743B2 (en) Processor and interrupt controlling method
US20070118838A1 (en) Task execution controller, task execution control method, and program
EP3056991A1 (en) Apparatus and method for managing a plurality of threads in an operating system
US20080295104A1 (en) Realtime Processing Software Control Device and Method
JP2004078322A (en) Task management system, program, recording medium, and control method
CN103201720B (en) Virtual computer control apparatus, virtual computer control method, and integrated circuit
JPH0417034A (en) Task scheduling device
US20080313652A1 (en) Notifying user mode scheduler of blocking events
JP2001117786A (en) Process scheduling device and process scheduling method
JP4048638B2 (en) Scheduling apparatus and method, and recording medium
JP2636722B2 (en) Multitask execution management method
JP2693916B2 (en) Task scheduling method
JP3027526B2 (en) Job scheduling method
JPH0793168A (en) Task management system
JPH0588917A (en) Job scheduling system
CN112988365B (en) Thread management method, device, equipment and medium
US20170178273A1 (en) Graphics context scheduling based on flip queue management
JPH0836553A (en) Multiprocessor system and task scheduling method therein
JPH04195539A (en) System call processing system
JPS62271147A (en) Task control method