JPH09198261A - Task scheduling device - Google Patents

Task scheduling device

Info

Publication number
JPH09198261A
JPH09198261A JP910996A JP910996A JPH09198261A JP H09198261 A JPH09198261 A JP H09198261A JP 910996 A JP910996 A JP 910996A JP 910996 A JP910996 A JP 910996A JP H09198261 A JPH09198261 A JP H09198261A
Authority
JP
Japan
Prior art keywords
priority
input
output
task
tasks
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
JP910996A
Other languages
Japanese (ja)
Inventor
Takahiro Sone
隆浩 曽根
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP910996A priority Critical patent/JPH09198261A/en
Publication of JPH09198261A publication Critical patent/JPH09198261A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make discriminations between also the priority of the tasks of input/output. SOLUTION: A user can notify an operating system 1 of the priority of a task by the feeding or programming of a command. A priority fixing means 2, an input/output queue priority setting means 3 and an input/output completion time priority setting means 11 set the priority for a CPU, the processing priority on an input/output queue 9 for an input/output driver 8 and the priority at the time of the completion of the input/output of a peripheral input/output device 10 to tasks 5, 6 and 7, respectively. The tasks 5, 6 and 7 perform processings according to each priority of these. As a result, the task for which real time is required can be more preferentially processed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はタイムシェアリング
方式のコンピュータにおけるタスクスケジューリング装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a task scheduling device in a time-sharing computer.

【0002】[0002]

【従来の技術】従来、タイムシェアリング方式を用いた
コンピュータのオペレーティンウシステムでは、タスク
の優先度を一時的に変更するものや、優先させたいタス
クの優先度を高い優先度で一定にするものが知られてい
る。これらの場合、オペレーティングシステムは、通
常、周辺入出力装置に対する入出力待ちの優先度につい
ては、入出力装置の特性に応じた取扱いをしている。
2. Description of the Related Art Conventionally, in an operating system for a computer using a time-sharing method, one that temporarily changes the priority of a task or one that makes the priority of a task to be prioritized constant at a high priority It has been known. In these cases, the operating system normally handles the priority of the I / O wait for the peripheral I / O device according to the characteristics of the I / O device.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のタスク
スケジューリング装置のうちの前者では、一時的にタス
クの優先度を変更しても、当然ながら時間の経過と共に
他のタスクとの優先度の差が無くなる。
In the former one of the above-mentioned conventional task scheduling apparatuses, even if the priority of a task is temporarily changed, the difference in priority with other tasks will naturally occur with the passage of time. Disappears.

【0004】また、後者では、たとえCPUに対するタ
スクの優先度を一定にしたとしても、周辺入出力装置に
対する入出力待ちの優先度は、ファーストイン・ファー
ストアウト方式で処理される等タスク間での差が無く、
さらに、入出力完了時にはそのタスクのCPUに対する
タスクの優先度が一時的に高くなってしまう。この結
果、低く押されたいタスクの優先度が一時的には高くな
ることもあり、タスクの優先度に差をつけることが必ず
しも充分に達成し難いという課題がある。
Further, in the latter case, even if the priority of the task for the CPU is made constant, the priority of the input / output waiting for the peripheral input / output device is such that the tasks are processed by the first-in / first-out method. No difference,
Furthermore, when the input / output is completed, the priority of the task with respect to the CPU is temporarily increased. As a result, the priority of the task desired to be pushed low may temporarily become high, and there is a problem that it is not always possible to achieve a sufficient difference in task priority.

【0005】[0005]

【課題を解決するための手段】本発明の装置は、タイム
シェアリング方式のタスクスケジューリング機能を持つ
コンピュータシステムにおけるタスクスケジューリング
装置であって、タスクのCPUに対するスケジューリン
グ優先度とは無関係に、周辺入出力装置に対する入出力
処理待ちキュー上の処理優先度をオペレーティングシス
テムからタスクごとに設定する手段を有することを特徴
とする。
A device of the present invention is a task scheduling device in a computer system having a time-sharing type task scheduling function, and the peripheral input / output is independent of the scheduling priority of the task to the CPU. It is characterized in that it has means for setting the processing priority on the input / output processing waiting queue for the device for each task from the operating system.

【0006】[0006]

【発明の実施の形態】次に、本発明について図面を参照
して説明する。
Next, the present invention will be described with reference to the drawings.

【0007】図1は本発明の一実施例を表わす図であ
り、3つのタスク5,6,7に対して、オペレーティン
グシステムが、優先度固定手段2,入出力キュー優先度
設定手段3及び入出力完了時優先度設定手段4により、
3種類の優先度を設定するものである。
FIG. 1 is a diagram showing an embodiment of the present invention. For three tasks 5, 6 and 7, the operating system has a priority fixing means 2, an input / output queue priority setting means 3 and an input queue. By the output completion priority setting means 4,
Three types of priority are set.

【0008】優先度固定手段2は、タスク5,6,7が
CPUに対する優先度を設定する手段、入出力キュー優
先度設定手段3は、入出力ドライバ8に対する入出力キ
ュー9上の処理優先度を設定する手段、入出力完了時優
先度設定手段4は、周辺入出力装置10の入出力完了時
のタスク5,6,7の優先度を設定する手段である。
The priority fixing means 2 is a means for setting priorities of the CPUs by the tasks 5, 6 and 7, and the input / output queue priority setting means 3 is a processing priority on the input / output queue 9 for the input / output driver 8. The input / output completion priority setting means 4 is a means for setting the priorities of the tasks 5, 6, and 7 when the input / output of the peripheral input / output device 10 is completed.

【0009】また、タスク5はバッチ処理をバックグラ
ウンドで行う優先度の低いタスク、タスク6は、バック
グラウンドでもリアルタイムでもない、一般のタスク、
タスク7は、リアルタイム性を要求する優先度の高いタ
スクである。
Task 5 is a low-priority task that performs batch processing in the background, and task 6 is a general task that is neither in the background nor in real time.
Task 7 is a high priority task that requires real-time processing.

【0010】先ず、ユーザが上述の各優先度を設定する
場合は、例えば、そのような内容のコマンドをコンソー
ルから投入したり、プログラミングしたりしておくこと
によって、オペレーティングシステム1に通知する。オ
ペレーティングシステム1は、この通知に基づいて、優
先度固定手段2,入出力キュー優先度設定手段3および
入出力完了時優先度設定手段4に、それぞれの優先度を
伝える。
First, when the user sets the above-mentioned respective priorities, the operating system 1 is notified by, for example, inputting a command having such contents from the console or programming. Based on this notification, the operating system 1 informs the priority fixing means 2, the input / output queue priority setting means 3 and the input / output completion priority setting means 4 of the respective priorities.

【0011】例えば、タスク5,7のスケジューリング
優先度は優先度固定手段2を使って、それぞれA−S、
C−Sに設定する。タスクBの優先度は一般タスクのB
−S1からB−S2の範囲である。この結果、優先度の
高さは、A−S<B−S1<B−S2<C−Sとなる。
この設定により、タスク7は実行可能な状態では常に実
行され、タスク5はタスク6、タスク7共に停止状態の
場合のみ実行されることになる。
For example, the scheduling priorities of the tasks 5 and 7 are respectively set to AS and S by using the priority fixing means 2.
Set to C-S. The priority of task B is B of general tasks
The range is from -S1 to B-S2. As a result, the priority level is AS <BS-S1 <BS-2 <CS.
With this setting, the task 7 is always executed in the executable state, and the task 5 is executed only when both the task 6 and the task 7 are in the stopped state.

【0012】次に、入出力待ちキューの優先度は入出力
キュー優先度制定手段3を使って、タスク5がA−Q、
タスク6がB−Q、タスク7がC−Qになるように設定
する。優先度の高さは、A−Q<B−Q<C−Qであ
る。この設定により、入出力ドライバ8は入出力待ちキ
ュー9に入出力要求が追加されるたびに、この優先度に
合わせてキューをソートする。
Next, the priority of the input / output waiting queue is determined by the task 5 using A / Q, using the input / output queue priority establishing means 3.
Task 6 is set to BQ, and task 7 is set to CQ. The high priority is AQ <B-Q <C-Q. With this setting, the input / output driver 8 sorts the queues according to the priority each time an input / output request is added to the input / output waiting queue 9.

【0013】また、入出力完了時の優先度は入出力完了
時優先度設定手段4によって、タスク5がA−I、タス
ク6がB−I、タスク7がC−Iに設定する。優先度の
高さは、A−I<B−I<C−Iで、かつC−S<A−
Iである。この設定により、ほぼ同時に入出力完了の通
知があった場合には、タスク7,タスク6,タスク5の
順に優先的に処理されることになる。
The priority at the completion of input / output is set by the input / output completion priority setting means 4 to AI for task 5, BI for task 6, and CI for task 7. The high priority is AI <BI <CI and CS <A-
I. With this setting, if notifications of I / O completion are received at almost the same time, task 7, task 6, and task 5 are preferentially processed in this order.

【0014】なお、以上に説明した実施例における優先
度固定手段2と入出力完了時優先度設定手段4は必ずし
も必要でなく、入出力キュー優先度設定手段3のみによ
っても相応の効果は得られる。ただし、入出力完了時優
先度設定手段4を併設すれば、より効果的である。
The priority fixing means 2 and the input / output completion priority setting means 4 in the above-described embodiment are not always necessary, and the corresponding effect can be obtained only by the input / output queue priority setting means 3. . However, it is more effective if the input / output completion priority setting means 4 is additionally provided.

【0015】また、タスク6と同種、すなわち、リアル
タイム性が要求されず、かつ、バックグラウンドで処理
されるようなタスクでもない、一般のタスクが複数ある
場合に、これらのタスクの間で、入出力キュー優先度や
入出力完了時優先度に差をつけて設定する実施例も容易
に考えられる。
Further, when there are a plurality of general tasks that are of the same type as the task 6, that is, tasks that do not require real-time processing and are not processed in the background, input between these tasks is performed. An embodiment in which the output queue priority and the input / output completion priority are set differently can be easily considered.

【0016】[0016]

【発明の効果】以上詳細に説明したように本発明は、リ
アルタイム性の要求されるタスクは周辺入装置への出力
処理も含めて他のタスクより優先的に処理されるため、
リアルタイム性がより上がり、また、バッチ処理をバッ
ククラウンドで実行するタスクは、周辺装置への入出力
も含めて他のタスクにあまり性能的な影響を与えないで
処理できるという効果がある。
As described in detail above, according to the present invention, a task requiring real-time processing is processed with priority over other tasks including output processing to the peripheral input device.
The real-time property is further improved, and the task of executing the batch processing in the backround can be processed without significantly affecting the performance of other tasks including the input / output to / from the peripheral device.

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

【図1】本発明の一実施例の全体構成図である。FIG. 1 is an overall configuration diagram of an embodiment of the present invention.

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

1 オペレーティングシステム 2 優先度固定手段 3 入出力キュー優先度設定手段 4 入出力完了時優先度設定手段 5 タスク 6 タスク 7 タスク 8 入出力ドライバ 9 入出力待ちキュー 10 周辺入出力装置。 1 Operating System 2 Priority Fixing Means 3 I / O Queue Priority Setting Means 4 I / O Completion Priority Setting Means 5 Tasks 6 Tasks 7 Tasks 8 I / O Drivers 9 I / O Waiting Queues 10 Peripheral I / O Devices.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 タイムシェアリング方式のタスクスケジ
ューリング機能を持つコンピュータシステムにおけるタ
スクスケジューリング装置であって、 タスクのCPUに対するスケジューリング優先度とは無
関係に、周辺入出力装置に対する入出力処理待ちキュー
上の処理優先度をオペレーティングシステムからタスク
ごとに設定する手段を有することを特徴とするタスクス
ケジューリング装置。
1. A task scheduling device in a computer system having a time-sharing type task scheduling function, wherein processing on an input / output processing waiting queue for a peripheral input / output device, regardless of the scheduling priority of a task for a CPU. A task scheduling device having means for setting a priority for each task from an operating system.
【請求項2】 周辺入出力機器に対する入出力完了時の
タスクスケジューリングの優先度を前記オペレーティン
グシステムから設定する手段を付加したことを特徴とす
る請求項1記載のタスクスケジューリング装置。
2. The task scheduling apparatus according to claim 1, further comprising means for setting a priority of task scheduling upon completion of input / output to / from a peripheral input / output device from the operating system.
【請求項3】 前記入出力処理待ちキュー上の処理優先
度をリアルタイム性を要求されず、かつバックグラウン
ドで行う処理でもない一般のタスクの間で差をつけて設
定することを特徴とする請求項1記載のタスクスケジュ
ーリング装置。
3. The processing priority on the input / output processing waiting queue is set with a difference between general tasks that are not required to have real-time processing and are not processing to be performed in the background. Item 1. The task scheduling device according to item 1.
JP910996A 1996-01-23 1996-01-23 Task scheduling device Pending JPH09198261A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP910996A JPH09198261A (en) 1996-01-23 1996-01-23 Task scheduling device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP910996A JPH09198261A (en) 1996-01-23 1996-01-23 Task scheduling device

Publications (1)

Publication Number Publication Date
JPH09198261A true JPH09198261A (en) 1997-07-31

Family

ID=11711469

Family Applications (1)

Application Number Title Priority Date Filing Date
JP910996A Pending JPH09198261A (en) 1996-01-23 1996-01-23 Task scheduling device

Country Status (1)

Country Link
JP (1) JPH09198261A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1434131A2 (en) 2002-09-17 2004-06-30 TeliaSonera Finland Oyj Method for controlling terminal equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1434131A2 (en) 2002-09-17 2004-06-30 TeliaSonera Finland Oyj Method for controlling terminal equipment

Similar Documents

Publication Publication Date Title
US5247671A (en) Scalable schedules for serial communications controller in data processing systems
US7882488B2 (en) Software tool for synthesizing a real-time operating system
US9720739B2 (en) Method and system for dedicating processors for desired tasks
US5241676A (en) Method for controlling process priority in semaphore operation
JPH09198261A (en) Task scheduling device
JP2636722B2 (en) Multitask execution management method
US20050060706A1 (en) Method and apparatus for performing real-time commands in a non real-time operating system environment
JPH0240723A (en) Message transmission/reception control system
JPH02171932A (en) Job priority setting system
JPH0385641A (en) Data processing precedence control system
JPS63301332A (en) Job executing system
JPH0752397B2 (en) Task control method
JPH04335441A (en) Command immediate answer property securing system
JPH03223955A (en) Information processing system
JPH05204671A (en) Method and device for smoothly controlling load
JPS63261431A (en) Merge process control system
JPH0421150A (en) On-line processing system
JPH0778091A (en) Multitask managing method
JPH0294735A (en) Command processing system for line controller
JPS6316775B2 (en)
JPS5822454A (en) Job scheduling mechanism
JP2001092678A (en) Method for controlling task of multi-media processor
JPH02165340A (en) Job schedule device
JPS6277652A (en) Interruption processing system
Samaka Real-Time Multitasking Kernel For IBM-Based Microcomputers

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19981104