JPH0833830B2 - Schedule device - Google Patents
Schedule deviceInfo
- Publication number
- JPH0833830B2 JPH0833830B2 JP3839089A JP3839089A JPH0833830B2 JP H0833830 B2 JPH0833830 B2 JP H0833830B2 JP 3839089 A JP3839089 A JP 3839089A JP 3839089 A JP3839089 A JP 3839089A JP H0833830 B2 JPH0833830 B2 JP H0833830B2
- Authority
- JP
- Japan
- Prior art keywords
- waiting
- resource
- request
- time
- processing
- 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.)
- Expired - Lifetime
Links
- 230000008707 rearrangement Effects 0.000 claims description 9
- 230000001174 ascending effect Effects 0.000 claims description 4
- 238000000034 method Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は電子計算機システムにおいて特に資源の同時
利用制御のスケジューリングを行うスケジュール装置に
関する。DETAILED DESCRIPTION OF THE INVENTION [Industrial field of use] The present invention relates to a scheduling device for scheduling simultaneous use of resources in an electronic computer system.
従来、この種のスケジュール装置では、スケジューリ
ング方式として、要求到着順に実行させるFCFS(First
Come First Service)や、全待ちの中から処理予想時間
の短い順に実行させるSPT(Shortest Processing Tim
e)方式と呼ばれるもの等が採用されていた。Conventionally, in this type of scheduling device, as a scheduling method, FCFS (First
Come First Service) or SPT (Shortest Processing Tim)
e) The method called the method was adopted.
しかしながら、上述した従来のスケジュール装置は、
FCFS方式を採用している場合、SPT方式よりも全ジョブ
合計の延べ待ち時間が大きくスループットが落ちるとい
う欠点を持っていた。これに対して、SPT方式自身はス
ループットは良いが、処理予想時間が長い要求は対象資
源に対する他ジョブからの使用要求が多く、待ちに途切
れが生じないような高負荷の環境では、常に後回しにさ
れるという欠点があった。However, the conventional scheduling device described above,
When the FCFS method was adopted, the total waiting time for all jobs was large and the throughput decreased compared to the SPT method. On the other hand, the SPT method itself has good throughput, but requests with a long expected processing time are often used by other jobs for the target resource, and in a high load environment where there is no interruption in waiting, it is always postponed. There was a drawback that it was done.
本発明はこのような従来の欠点を改善したもので、そ
の目的は、スループットを向上させかつ処理予想時間の
長い要求が常に後回しにされるというような事態を防止
してシステム性能を向上させることの可能なスケジュー
ル装置を提供することにある。The present invention has improved such a conventional drawback, and an object thereof is to improve the system performance by improving the throughput and preventing a situation in which a request with a long expected processing time is always postponed. It is to provide a schedule device capable of
本発明のスケジュール装置は、複数のジョブからの資
源への使用要求を受け付けてスケジューリングを行うも
のであって、資源に対する使用要求の現時点の待ちジョ
ブ個数が規定個数以上の場合、前記規定個数分の先頭待
ち要求の待ち順番を資源使用予定時間の短い順に並べ変
える並び換え手段を有し、該並び換え手段は、一度並び
換え処理を受けた要求待ちを以後並び換え対象外とする
ようになっていることを特徴としている。The scheduling apparatus of the present invention receives a usage request for a resource from a plurality of jobs and performs scheduling, and when the number of waiting jobs at the present time of the usage request for the resource is equal to or more than a specified number, the specified number of jobs A rearranging unit that rearranges the waiting order of the first waiting request in ascending order of resource usage scheduled time is arranged such that the request waiting process that has once undergone the rearranging process is excluded from the rearrangement target thereafter. It is characterized by being.
スケジュール装置は、複数のジョブからの資源への使
用要求を受け付けてスケジューリングを行う。この際
に、資源に対する使用要求の現時点の待ちジョブ個数が
規定個数以上の場合、並び換え手段によって、規定個数
分の先頭待ち要求の待ち順番を資源使用予定時間の短い
順に並び換える。これによってスループットの向上が図
れる。また並び換え手段は、一度並び換え処理を行った
要求待ちを以後並び換え対象外としているので、処理予
想時間の長い要求が常に後回しにされる事態を防止する
ことができる。The scheduling device accepts usage requests for resources from a plurality of jobs and performs scheduling. At this time, when the number of waiting jobs at the present time of the usage request for the resource is equal to or more than the specified number, the sorting means sorts the waiting order of the specified number of head waiting requests in the order of the shortest scheduled resource usage time. This can improve the throughput. Further, since the rearrangement means does not rearrange the waiting for a request which has been subjected to the rearrangement processing thereafter, it is possible to prevent a request having a long expected processing time from being always put off.
次に、本発明について図面を参照して説明する。 Next, the present invention will be described with reference to the drawings.
第1図は本発明に係るスケジュール装置の環境図であ
り、資源iを使用する使用要求ジョブJi-1乃至Ji-nの使
用順番が資源iに対応させて設けられているスケジュー
ル装置SUiを介して決定されることを示している。FIG. 1 is an environment diagram of a scheduling apparatus according to the present invention, in which a usage order of usage jobs Ji-1 to Ji-n using a resource i is performed via a scheduling apparatus SUi provided corresponding to the resource i. It is shown that it is decided by.
本実施例のスケジュール装置SUi内には後述のような
スケジューリング方式のスケジュール部SPiが備わって
いる。The scheduling device SUi of this embodiment is provided with a scheduling section SPi of a scheduling method as described later.
第2図は、スケジュール部SPiの一構成例を示す図で
あり、スケジュール部SPiは、要求受付部RQiと、使用者
決定部DFiと、待ち順並び換え部CQiと、使用終了通知受
付部TMiとから構成されている。FIG. 2 is a diagram showing an example of the configuration of the schedule unit SPi. The schedule unit SPi includes a request reception unit RQi, a user determination unit DFi, a waiting order rearrangement unit CQi, and a use end notification reception unit TMi. It consists of and.
次に、このような構成のスケジュール装置の動作につ
いて第3図乃至第5図のフローチャートを用いて説明す
る。なお第3図は要求受付部RQiおよび使用終了通知受
付部TMiの処理流れを示すフローチャート、第4図は待
ち順並び換え部CQiの処理流れを示すフローチャート、
第5図は使用者決定部DFiの処理流れを示すフローチャ
ートである。Next, the operation of the schedule device having such a configuration will be described with reference to the flowcharts of FIGS. Note that FIG. 3 is a flowchart showing the processing flow of the request receiving unit RQi and the use end notification receiving unit TMi, and FIG. 4 is a flowchart showing the processing flow of the waiting order rearranging unit CQi.
FIG. 5 is a flowchart showing the processing flow of the user determination unit DFi.
先ず第3図のステップS1では、要求受付部RQiは各ジ
ョブJi-1乃至Ji-nからの資源iの使用要求の受付処理と
して待ちキューへのジョブ登録を行う。この際ジョブの
要求属性として資源使用予定時間も添える。例えば、ド
ラム、電子ディスク等の周辺装置資源に対してはi/o転
送サイズなどが資源使用予定時間として利用される。First, in step S1 in FIG. 3, the request receiving unit RQi registers a job in the waiting queue as a process of receiving a request to use the resource i from each of the jobs Ji-1 to Ji-n. At this time, the scheduled resource use time is also attached as a request attribute of the job. For example, for peripheral device resources such as a drum and an electronic disk, the i / o transfer size is used as the scheduled resource usage time.
次いでステップS2では、使用終了通知受付部TMiは資
源iのあるジョブの使用状態が解けて、次の要求に対す
る資源使用が可能となったことの通知を受付けて、ステ
ップS3において次使用ジョブを決定してもらうために、
通知を受け取ると使用者決定部DFiを起動する。Next, in step S2, the use end notification receiving unit TMi receives the notification that the usage status of the job with the resource i has been released and the resource can be used for the next request, and in step S3 the next used job is determined. To get it done
Upon receiving the notification, the user determination unit DFi is activated.
使用者決定部DFiは、資源iが利用可能の空き状態で
あるとき、使用終了通知受付部TMiによって起動され、
次の使用ジョブを決定する第5図の処理を行う。すなわ
ち第5図のステップS4では待ちがあるか否かを判断し、
待ちがあるときにはステップS5で待ち順並び換え部CQi
を呼び出し、ステップS6において待ちのキューの先頭1
個を待ちからはずし、資源iの使用ジョブとして定め
る。The user determination unit DFi is activated by the use end notification reception unit TMi when the resource i is available and free,
The process of FIG. 5 for determining the next job to be used is performed. That is, in step S4 of FIG. 5, it is determined whether there is a wait,
When there is a wait, in step S5 the waiting order rearranging unit CQi
Is called, and the first 1 in the waiting queue in step S6
The individual is taken out of the waiting state and defined as a job to use the resource i.
なお従来のFCFSスケジューリング方式では、待ち順並
び換え部CQiを呼ばない形で処理されていた。In the conventional FCFS scheduling method, the waiting order rearranging unit CQi was not called.
待ち順並び換え部CQiは、本発明の最も重要な構成要
素であり、第4図の処理を行う。すなわち第4図のステ
ップS10では待ちの先頭が並び換え未実施か否かを判断
し、未実施のときにはステップS11において待ちキュー
の個数が運用レベルで決定され指定された規定個数Q-i
以上であるか否かを判断し、規定個数Q-i以上あるとき
は、ステップS12でそのQ-i個の処理順序を資源iの予定
使用時間の小さい順に並び換え、ステップS13において
並び換え実施済みの印をこれらQ-i個の待ちにつける。
これにより一度並び換えの処理をされた待ちは、実行ま
でその順序は変更されないようにしている。The waiting order rearrangement unit CQi is the most important component of the present invention and performs the processing shown in FIG. That is, in step S10 of FIG. 4, it is determined whether or not the waiting head is rearranged, and if not, the number of waiting queues is determined at the operation level in step S11 and the specified number Qi is specified.
If it is more than the specified number Qi, the processing order of the Qi pieces is rearranged in ascending order of the scheduled usage time of the resource i in step S12, and a mark indicating that the rearrangement has been performed is executed in step S13. Wait for these Qi pieces.
As a result, the order of waiting for the rearrangement processing is not changed until execution.
このようにして資源iが空き状態で次の使用ジョブを
決める際、資源iの予定使用時間の小さい順にQ-i個の
処理順序を並び換えるようにしているので、スループッ
トを向上させることができて、さらに処理順序の並び換
えが一度なされた後は、実行までその順序が変更されな
いので、処理予想時間の長い要求が常に後回しにされる
という事態を防止することができる。In this way, when deciding the next job to be used when the resource i is free, the Qi processing order is rearranged in the ascending order of the scheduled use time of the resource i, so that the throughput can be improved, Furthermore, once the processing order has been rearranged, the order is not changed until execution, so it is possible to prevent a request with a long processing expected time from being always postponed.
第6図は同一資源へ10個のジョブから使用要求が30ms
ec毎に来るケースの時系列の処理順番と延べ待ち時間の
関係について、FCFS(First Come First Service)方
式、SPT(Shortest Processing Time)方式、本発明の
方式の3者での違いを図示したものである。第6図から
わかるように、本発明では平均待ち時間が50m秒、最大
待ち時間が90m秒となり、従来の方式に比べて待ち時間
を小さくすることが可能となる。Figure 6 shows that the usage request from 10 jobs to the same resource is 30ms.
Regarding the relationship between the time-series processing order and the total waiting time in the case of each ec, the difference between the FCFS (First Come First Service) method, the SPT (Shortest Processing Time) method, and the method of the present invention is illustrated. Is. As can be seen from FIG. 6, according to the present invention, the average waiting time is 50 ms and the maximum waiting time is 90 ms, so that the waiting time can be reduced as compared with the conventional method.
以上説明したように本発明は、処理要求の並び換えに
より一回の資源使用時間が最も短いものを優先するよう
にしているので、システムの延べ待ち時間を少なくしス
ループットを向上させるとともに、一度並び換えのなさ
れた処理要求は以後並び換えの対象外としているので、
1回の使用時間が大きいものは冷遇され易いという事態
を回避し、システム性能を向上することができるという
効果がある。As described above, according to the present invention, the processing requests are rearranged to prioritize the one having the shortest resource usage time once, so that the total waiting time of the system is reduced to improve the throughput and the processing is performed once. Since the changed processing request is excluded from the rearrangement thereafter,
There is an effect that the system performance can be improved by avoiding the situation that the one that is used for a long time is easily treated cold.
第1図は本発明に係るスケジュール装置の環境図、第2
図は第1図のスケジュール装置のスケジュール部の構成
図、第3図は要求受付部、使用終了通知受付部の処理流
れを示すフローチャート、第4図は待ち順並び換え部の
処理流れを示すフローチャート、第5図は使用者決定部
の処理流れを示すフローチャート、第6図は従来のFCFS
方式、SPT方式と本発明の方式との待ち時間の比較を説
明するための図である。 図において、i……資源、Ji-1乃至Ji-n……資源iへの
使用要求ジョブ、SUi……資源iのスケジュール装置、S
Pi……スケジュール部、RQi……要求受付部、TMi……使
用終了通知受付部、DFi……使用者決定部、CQi……待ち
順並び換え部。FIG. 1 is an environment diagram of a schedule device according to the present invention, and FIG.
FIG. 1 is a block diagram of the schedule unit of the schedule device shown in FIG. 1, FIG. 3 is a flowchart showing the processing flow of the request receiving unit, use completion notification receiving unit, and FIG. 4 is a flowchart showing the processing flow of the waiting order rearranging unit. 5 is a flow chart showing the processing flow of the user determination unit, and FIG. 6 is a conventional FCFS.
FIG. 6 is a diagram for explaining a comparison of waiting times between the system, the SPT system and the system of the present invention. In the figure, i ... resources, Ji-1 to Ji-n ... use request jobs for resource i, SUi ... schedule device for resource i, S
Pi ... Schedule, RQi ... Request receiving, TMi ... Use end notification receiving, DFi ... User determining, CQi ... Waiting order rearranging.
Claims (1)
け付けてスケジューリングを行うスケジュール装置にお
いて、 資源に対する使用要求の現時点の待ちジョブ個数が規定
個数以上の場合、前記規定個数分の先頭待ち要求の待ち
順番を資源使用予定時間の短い順に並べ換える並び換え
手段を有し、 該並び換え手段は、一度並び換え処理を受けた要求待ち
を以後並び換え対象外とするようになっていることを特
徴とするスケジュール装置。1. A scheduling device that receives a usage request for a resource from a plurality of jobs and performs scheduling, when the number of waiting jobs at the present time of the usage request for the resource is equal to or more than a specified number, the waiting request for the specified number of heads is requested. Has a rearranging means for rearranging the waiting order of the resources in ascending order of resource usage time, and the rearranging means excludes the waiting for a request that has once undergone the rearranging processing from the rearrangement target thereafter. Characteristic schedule device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3839089A JPH0833830B2 (en) | 1989-02-20 | 1989-02-20 | Schedule device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3839089A JPH0833830B2 (en) | 1989-02-20 | 1989-02-20 | Schedule device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH02217928A JPH02217928A (en) | 1990-08-30 |
| JPH0833830B2 true JPH0833830B2 (en) | 1996-03-29 |
Family
ID=12523955
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3839089A Expired - Lifetime JPH0833830B2 (en) | 1989-02-20 | 1989-02-20 | Schedule device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0833830B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3663881B2 (en) * | 1998-02-09 | 2005-06-22 | 富士ゼロックス株式会社 | Device information management device |
| JP5990139B2 (en) * | 2013-08-01 | 2016-09-07 | 日本電信電話株式会社 | Execution control device and execution control method |
-
1989
- 1989-02-20 JP JP3839089A patent/JPH0833830B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH02217928A (en) | 1990-08-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7065766B2 (en) | Apparatus and method for load balancing of fixed priority threads in a multiple run queue environment | |
| JP4094550B2 (en) | Method and apparatus for scheduling requests using criteria of an ordered stage of scheduling | |
| US6993767B2 (en) | System for preventing periodic load balancing if processor associated with lightest local run queue has benefited from idle processor load balancing within a determined time period | |
| US6735769B1 (en) | Apparatus and method for initial load balancing in a multiple run queue system | |
| US7197577B2 (en) | Autonomic input/output scheduler selector | |
| US6748593B1 (en) | Apparatus and method for starvation load balancing using a global run queue in a multiple run queue system | |
| US4908750A (en) | Data processing system having tunable operating system means | |
| US5390329A (en) | Responding to service requests using minimal system-side context in a multiprocessor environment | |
| KR100262937B1 (en) | An i/o system for reducing main processor overhead in initiating i/o requests and servicing i/o completion events | |
| US7559062B2 (en) | Intelligent scheduler for multi-level exhaustive scheduling | |
| JP4723260B2 (en) | Apparatus and method for scheduling a request to a source device | |
| US7721035B2 (en) | Multiprocessor system, processor and interrupt control method | |
| KR101638136B1 (en) | Method for minimizing lock competition between threads when tasks are distributed in multi-thread structure and apparatus using the same | |
| US20090043742A1 (en) | Method and system for off-loading user queries to a task manager | |
| US20030191794A1 (en) | Apparatus and method for dispatching fixed priority threads using a global run queue in a multiple run queue system | |
| JPH0833830B2 (en) | Schedule device | |
| Bunt | Scheduling techniques for operating systems | |
| JP4407654B2 (en) | I/O request control method, computer system, and computer program | |
| JP2667575B2 (en) | Task scheduling method | |
| KR100391513B1 (en) | method for decreasing network bottleneck through Multi-thread | |
| JPH07129480A (en) | File transfer device | |
| WO2007043142A1 (en) | Job management device and job management program | |
| JPH11249917A (en) | Parallel computers, their batch processing method, and storage medium | |
| JPH0895805A (en) | Task management device | |
| WO1992003783A1 (en) | Method of implementing kernel functions |