JP2000148512A - Method for scheduling job - Google Patents

Method for scheduling job

Info

Publication number
JP2000148512A
JP2000148512A JP10316133A JP31613398A JP2000148512A JP 2000148512 A JP2000148512 A JP 2000148512A JP 10316133 A JP10316133 A JP 10316133A JP 31613398 A JP31613398 A JP 31613398A JP 2000148512 A JP2000148512 A JP 2000148512A
Authority
JP
Japan
Prior art keywords
job
cpu
allocation
guaranteed
time
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
JP10316133A
Other languages
Japanese (ja)
Inventor
Kazuhiro Sato
一浩 佐藤
Yoshiyuki Iwakura
義之 岩倉
Chieko Akiba
千江子 秋葉
Ichiro Ishioka
一郎 石岡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP10316133A priority Critical patent/JP2000148512A/en
Publication of JP2000148512A publication Critical patent/JP2000148512A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent a job from going down and to moothly use CPU resources by guaranteeing the allocation time of a CPU to respective jobs without changing the execution priority of these jobs. SOLUTION: A CPU allocation guarantee control part 12 counts CPU tirne used for a job within unit time, and when a job guaranteed at its CPU allocation does not use the CPU more than fixed time, a CPU schedular 15 preferentially allocates the CPU to the job independently of the execution priority of jobs. The preferential allocation of the CPU is appliced also to a job securing a shared resource. Even in an environment that a job having higher execution priority occupies the CPU, rninimum necessary CPU allocation is applied to respective jobs.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ジョブのスケジュ
ール方法に係り、特に、複数のジョブを並列実行するコ
ンピュータシステムのCPUにジョブ割り当てるジョブ
のスケジュール方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a job scheduling method, and more particularly, to a job scheduling method for allocating a job to a CPU of a computer system that executes a plurality of jobs in parallel.

【0002】[0002]

【従来の技術】複数のジョブを並列実行するコンピュー
タシステムのCPUにジョブ割り当てるジョブスケジュ
ール方法に関する従来技術として、例えば、特開平6−
4274号公報等に記載された技術が知られている。
2. Description of the Related Art As a prior art relating to a job scheduling method for allocating a job to a CPU of a computer system which executes a plurality of jobs in parallel, for example, Japanese Patent Laid-Open No.
A technique described in Japanese Patent No. 4274 is known.

【0003】この従来技術は、ジョブ毎に実行優先順位
を設定し、実行優先順位の高いジョブに優先的にCPU
を割り当てるか、ジョブに対するCPU割り当て時間を
指定してジョブを投入するというものである。そして、
この従来技術による方法は、ジョブの実行に際して、実
行優先順位またはCPU割り当て時間のいずれかしか選
択できないものである。
In this prior art, an execution priority is set for each job, and a CPU having a higher execution priority is given priority to a CPU.
Is assigned, or a job is submitted by designating a CPU allocation time for the job. And
In the method according to the prior art, when executing a job, only either the execution priority or the CPU allocation time can be selected.

【0004】通常、オンライントランザクション処理を
主な目的とするコンピュータシステムは、オンライント
ランザクション処理を実行するオンラインジョブ、オン
ライントランザクション処理とは直接関連しないバッチ
ジョブという順番に実行優先順が設定されるが、一般に
は、オンラインジョブより実行優先順位が高いコンピュ
ータシステムを制御するシステムジョブが存在する。し
かし、システムジョブは、CPUの使用頻度が小さいこ
とを前提としているため、オンラインジョブにCPUが
優先的に割り当てられると考えられている。
[0004] Usually, in a computer system whose main purpose is online transaction processing, the execution priority is set in the order of an online job for executing the online transaction processing and a batch job not directly related to the online transaction processing. There is a system job that controls a computer system that has a higher execution priority than an online job. However, the system job is premised on the fact that the frequency of use of the CPU is low, so that it is considered that the CPU is preferentially assigned to the online job.

【0005】[0005]

【発明が解決しようとする課題】前述したコンピュータ
システムにおけるジョブのスケジュール方法は、システ
ムジョブによるCPUの使用頻度が小さいことを前提に
しているが、コンピュータシステムの動作環境によりシ
ステムジョブがCPUを一時的に占有してしまうことが
ある。前述の従来技術によるコンピュータシステムは、
このような場合に、オンラインジョブの実行優先順位が
高く設定されているにもかかわらず、そのオンラインジ
ョブにCPUの割り当が行われない場合が一時的に生じ
るという問題点を有している。また、オンラインジョブ
をシステムジョブの実行優先順位よりも高くすることも
可能であるが、この場合、逆に、オンラインジョブによ
るCPUの占有によりシステムジョブが動作できないと
いった問題点を発生させてしまう。
The above-described job scheduling method in the computer system presupposes that the frequency of use of the CPU by the system job is low. However, the system job temporarily uses the CPU depending on the operating environment of the computer system. May be occupied. The prior art computer system described above comprises:
In such a case, there is a problem that even though the execution priority of the online job is set high, there is a case where the CPU is not assigned to the online job temporarily. Further, it is possible to set the online job higher than the execution priority of the system job. However, in this case, on the other hand, there is a problem that the system job cannot be operated due to the occupation of the CPU by the online job.

【0006】CPUの割り当て時間を指定する前述した
公報に記載された従来技術は、実行優先順位が与えられ
たジョブとCPU割り当て時間が指定されたジョブとが
混在するため、指定したCPUの割り当て時間以上のC
PUが割り当てられるジョブが、実行優先順位を指定し
たジョブにCPUの割り当て要求がない場合であるた
め、オンラインジョブには適用することができないとい
う問題点を有している。また、この従来技術は、CPU
の割り当て時間が指定されたジョブが多数投入される
と、CPUの割り当て時間が指定されたジョブがCPU
を占有してしまうことになってしまうという問題点を有
している。
In the prior art described in the above-mentioned publication that specifies the CPU allocation time, the jobs to which the execution priorities are assigned and the jobs whose CPU allocation times are specified coexist. Above C
A job to which a PU is assigned has a problem that it cannot be applied to an online job because there is no request to assign a CPU to a job for which execution priority is specified. In addition, this conventional technique uses a CPU.
When a large number of jobs whose assignment time is designated are submitted,
Is occupied.

【0007】本発明の目的は、前述した従来技術の問題
点を解決し、ジョブの実行優先順位を変更することなく
ジョブに対するCPUの割り当て時間を保証することを
可能にし、実行優先順位が高いジョブがCPUを占有す
るような環境でも、各ジョブに最低必要なCPUの割り
当てを行ってジョブの沈み込みを防止すると共に、CP
U資源を円滑に運用することを可能にしたジョブのスケ
ジュール方法を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems of the prior art, and to guarantee the CPU allocation time for a job without changing the job execution priority. Even in an environment where CPUs occupy the CPU, the minimum necessary CPU is assigned to each job to prevent the job from sinking,
It is an object of the present invention to provide a job scheduling method that enables smooth operation of U resources.

【0008】[0008]

【課題を解決するための手段】本発明によれば前記目的
は、ジョブの実行優先順位に従ってCPUを割り当てる
ジョブのスケジュール方法において、CPUの割り当て
を保証するCPU割り当て保証対象ジョブを予め定め、
このCPU割り当て保証対象ジョブのCPU使用時間を
計測し、予め定めた単位時間内に前記ジョブに一定時間
以上CPUが割り当てられていなかった場合、前記ジョ
ブに優先的にCPUを割り当てることにより達成され
る。
According to the present invention, there is provided a job scheduling method for allocating CPUs in accordance with job execution priorities.
This is achieved by measuring the CPU usage time of the job whose CPU allocation is to be guaranteed, and if the CPU is not allocated to the job for a predetermined time within a predetermined unit time, the CPU is preferentially allocated to the job. .

【0009】また、前記目的は、前述において、CPU
の割り当て保証対象ジョブが多数ある場合、CPU割り
当て保証対象ジョブに対して連続してCPUを割り当て
ないようにすることにより、また、CPUの割り当て保
証対象のジョブがジョブ間で共用する資源の排他待ちに
なったとき、共用資源を保持しているCPUの割り当て
保証対象となっていないジョブをCPU割り当て保証対
象ジョブとすることにより達成される。
Further, the above object is achieved by the above-mentioned CPU.
When there are a large number of jobs whose allocation is guaranteed, the CPU is not continuously allocated to the jobs whose CPU allocation is guaranteed. Is satisfied, a job that is not a target of guaranteeing the allocation of the CPU holding the shared resource is set as a job whose CPU allocation is guaranteed.

【0010】本発明は、前述の構成を備えることによ
り、コンピュータシステムの主な目的を処理するオンラ
インジョブに高い実行優先順位を設定し、オンラインジ
ョブにバッチジョブよりもCPUを優先して割り当てる
ようにすることができると共に、オンラインジョブより
も高い実行優先順位を持つシステムジョブにCPU割り
当て要求がある場合でも、オンラインジョブに一定以上
のCPUの割り当てを保証することができる。
According to the present invention, by providing the above-described configuration, a high execution priority is set to an online job for processing a main purpose of a computer system, and a CPU is assigned to the online job with priority over a batch job. In addition, even when a system job having a higher execution priority than an online job has a CPU assignment request, it is possible to guarantee a certain or more CPU assignment to the online job.

【0011】また、本発明は、CPUの割り当てを保証
すべきオンラインジョブが多数ある場合にも、CPU割
り当て保証対象のオンラインジョブがCPUを占有し、
オンラインジョブよりも実行優先順位が高いシステムジ
ョブに対してCPUが割り当てられないという状態とな
ることを防止することができ、また、オンラインジョブ
が、実行優先順位の低いバッチジョブが確保している共
用資源の排他待ちとなった場合、このバッチジョブもC
PU割り当て保証対象ジョブとすることにより、オンラ
インジョブの排他待ちを短縮することができる。
Further, according to the present invention, even when there are a large number of online jobs for which CPU allocation is to be guaranteed, the CPU-guaranteed online job occupies the CPU,
It is possible to prevent a situation in which a CPU is not allocated to a system job having a higher execution priority than an online job, and the online job is shared by a batch job having a lower execution priority. When waiting for resource exclusion, this batch job is also
By setting the job as a PU allocation guarantee target job, the exclusion wait of an online job can be reduced.

【0012】[0012]

【発明の実施の形態】以下、本発明によるジョブのスケ
ジュール方法の一実施形態を図面により詳細に説明す
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an embodiment of a job scheduling method according to the present invention will be described in detail with reference to the drawings.

【0013】図1は本発明のによるジョブのスケジュー
ル方法を実行する装置の一実施形態の構成を示す図、図
2は状態保持テーブルの構成を説明する図、図3はCP
U割り当て保証ジョブ管理テーブルの構成を説明する
図、図4はジョブ開始時の本発明の一実施形態の処理を
説明するフローチャート、図5は共用資源排他制御部の
処理を説明するフローチャート、図6はCPU割り当て
保証制御部の処理を説明するフローチャート、図7はC
PUスケジューラの処理を説明するフローチャート、図
8は本発明の実施形態によるCPUのジョブへの割り当
ての状況を説明する図である。図1〜図3において、1
1はタイマ制御部、12はCPU割り当て保証制御部、
13は状態保持テーブル、14は共用資源排他制御部、
15はCPUスケジューラ、16はシステムジョブ、1
7、18はオンラインジョブ、19はバッチジョブ、3
3はジョブ管理テーブル、206はCPU割り当て保証
ジョブ管理テーブルである。
FIG. 1 is a diagram showing the configuration of an embodiment of an apparatus for executing a job scheduling method according to the present invention, FIG. 2 is a diagram for explaining the configuration of a state holding table, and FIG.
FIG. 4 is a view for explaining the configuration of a U allocation guarantee job management table, FIG. 4 is a flowchart for explaining processing according to an embodiment of the present invention at the time of starting a job, FIG. Is a flowchart for explaining the processing of the CPU allocation assurance control unit, and FIG.
FIG. 8 is a flowchart for explaining the processing of the PU scheduler. FIG. 8 is a diagram for explaining the state of assignment of CPUs to jobs according to the embodiment of the present invention. 1 to 3, 1
1 is a timer control unit, 12 is a CPU allocation guarantee control unit,
13 is a state holding table, 14 is a shared resource exclusive control unit,
15 is a CPU scheduler, 16 is a system job, 1
7, 18 are online jobs, 19 is batch jobs, 3
3 is a job management table, and 206 is a CPU allocation guarantee job management table.

【0014】本発明の一実施形態によるジョブのスケジ
ュールを実行する装置は、図1に示すように、タイマ制
御部11と、CPU割り当て保証制御部12と、状態保
持テーブル13と、共用資源排他制御部14と、CPU
スケジューラ15とにより構成され、予めCPU割り当
て保証対象とされているオンラインジョブA17、B1
8と、それ以外のシステムジョブ16と、バッチジョブ
19とに対してCPUの割り当ての処理を行う。
As shown in FIG. 1, the apparatus for executing a job schedule according to an embodiment of the present invention includes a timer control unit 11, a CPU allocation guarantee control unit 12, a state holding table 13, a shared resource exclusive control, Unit 14 and CPU
The online jobs A17 and B1 which are configured by the scheduler 15 and are previously guaranteed to be assigned CPUs.
8 and the other system jobs 16 and batch jobs 19 are subjected to CPU assignment processing.

【0015】前述において、タイマ制御部11は、一定
時間毎にCPU割り当て保証制御部12を起動し、CP
U割り当て保証制御部12は、CPU割り当て保証対象
ジョブのオンラインジョブA17とオンラインジョブB
18とのCPU割り当て時間を算出し、一定期間内に一
定時間以上のCPUが割り当てられていない場合、状態
保持テーブル13にCPU割り当て対象ジョブの優先ス
ケジュール要求を発行する。
In the above, the timer control unit 11 activates the CPU allocation guarantee control unit 12 at regular time intervals, and
The U allocation assurance control unit 12 includes an online job A17 and an online job B of the CPU allocation guaranteed job.
The CPU allocation time is calculated with the CPU 18, and if a CPU longer than a predetermined time has not been allocated within a predetermined period, a priority schedule request for the job to be allocated to the CPU is issued to the state holding table 13.

【0016】CPUスケジューラ15は、状態保持テー
ブル13内に優先スケジュール要求があるとき、そのジ
ョブに実行優先順位が高いシステムジョブ16よりも優
先的にCPUを割り当てる処理を行う。また、共用資源
排他制御部14は、実行優先順序が低いバッチジョブ1
9が使用している共用資源を、CPU割り当て保証対象
ジョブが要求した場合、共用資源を使用しているバッチ
ジョブ19をもCPU割り当て保証対象ジョブにする処
理を行う。
When there is a priority schedule request in the status holding table 13, the CPU scheduler 15 performs a process of allocating a CPU to the job more preferentially than the system job 16 having a higher execution priority. Further, the shared resource exclusion control unit 14 controls the batch job 1 having a low execution priority order.
When the CPU allocation guaranteed job requests the shared resource used by the job 9, the batch job 19 using the shared resource is also processed to be the CPU allocation guaranteed job.

【0017】状態保持テーブル13は、図2に示すよう
に、以下に説明する各種の情報を格納する領域を備えて
構成されている。タイマ起動間隔202は、タイマ制御
部11がCPU割り当て保証制御部12を起動する時間
間隔、例えば、15msを定義している。CPU割り当て
単位監視時間203は、ジョブをCPU割り当て保証対
象とするか否かのCPU割り当て監視時間例えば、1s
を定義しており、この時間間隔内にCPU割り当て保証
時間204に設定されている時間、例えば、100msの
間ジョブにCPUが割り当てられていないとき、そのジ
ョブにCPUを優先的に割り当てるために使用される。
CPU割り当て時間205は、CPUを優先的に割り当
てるときの優先割り当て時間、例えば、10msを定義し
ている。CPU割り当て保証ジョブ管理テーブル206
は、CPU割り当てを保証するジョブを管理するテーブ
ルであり、図3によりその詳細を後述する。
As shown in FIG. 2, the state holding table 13 is provided with an area for storing various information described below. The timer activation interval 202 defines a time interval at which the timer control unit 11 activates the CPU allocation guarantee control unit 12, for example, 15 ms. The CPU allocation unit monitoring time 203 is a CPU allocation monitoring time for determining whether or not a job is to be subject to CPU allocation guarantee, for example, 1 s.
When the CPU is not assigned to the job for the time set in the CPU assignment guarantee time 204 within this time interval, for example, 100 ms, it is used to preferentially assign the CPU to the job. Is done.
The CPU assignment time 205 defines a priority assignment time when assigning a CPU preferentially, for example, 10 ms. CPU allocation guarantee job management table 206
Is a table for managing a job for which CPU allocation is guaranteed, and its details will be described later with reference to FIG.

【0018】CPU割り当て保証対象ジョブ管理領域2
07は、CPU割り当て保証の対象とするジョブを定義
している。優先スケジュールキューポインタ208は、
CPU割り当て保証のためにCPUの優先割り当てをす
るジョブのジョブ管理テーブルをキューイングするため
の領域である。優先スケジュール要求領域209は、C
PU割り当て保証対象ジョブにCPUを優先的に割り当
てるときに、優先させるジョブをCPUスケジューラ1
5に連絡するためのテーブルである。優先スケジュール
中表示フラグ210は、ジョブにCPU優先割り当て中
か否かをCPU割り当て保証制御部12が識別するため
のフラグである。
Job management area 2 for which CPU allocation is guaranteed
07 defines a job for which CPU allocation is guaranteed. The priority schedule queue pointer 208 is
This is an area for queuing a job management table of a job to which a CPU is to be preferentially allocated to guarantee CPU allocation. The priority schedule request area 209 stores C
When preferentially assigning a CPU to a PU allocation guaranteed job, the priority job is assigned to the CPU scheduler 1
5 is a table for contacting No. 5. The in-priority schedule display flag 210 is a flag for the CPU allocation assurance control unit 12 to identify whether or not the CPU is being preferentially allocated to the job.

【0019】CPU割り当て保証ジョブ管理テーブル2
06は、図3に示すように、ジョブ制御テーブル先頭ポ
インタ32と、CPU割り当て保証対象ジョブ毎に作成
されるジョブ管理テーブル33とにより構成される。ジ
ョブ制御テーブル先頭ポインタ32は、CPU割り当て
保証対象ジョブ毎に設けられるジョブ管理テーブル33
の先頭のテーブルの先頭アドレスを格納するポインタで
ある。ジョブ管理テーブル33は、以下に説明する各種
の情報を格納する領域を備えて構成されている。
CPU assignment guarantee job management table 2
Reference numeral 06, as shown in FIG. 3, includes a job control table head pointer 32 and a job management table 33 created for each CPU allocation guaranteed job. The job control table head pointer 32 is a job management table 33 provided for each CPU allocation guaranteed job.
Is a pointer for storing the start address of the table at the head of. The job management table 33 includes an area for storing various information described below.

【0020】NEXTポインタ34は、次のCPU割り
当て保証管理テーブル33に対するポインタである。ジ
ョブID35は、ジョブを識別するための識別番号であ
る。監視モードフラグ36は、CPU割り当て保証対象
ジョブがCPU割り当て待ち状態のとき、単位時間当た
りのCPU割り当て時間の測定中であることを示すフラ
グであり、監視開始時間37は、監視モードになった時
間を記憶する領域である。監視開始時のCPU使用時間
退避領域38は、単位時間内のCPU割り当て時間を求
めるために監視モードになったとき、それまでにジョブ
が使用したCPU使用時間を退避する領域である。一時
優先フラグ39は、CPU割り当て保証対象ジョブが共
用する資源の排他待ちになったとき、共用資源を保持し
ているジョブを一時的にCPU割り当て保証対象ジョブ
にしたことを示すフラグである。
The NEXT pointer 34 is a pointer to the next CPU allocation guarantee management table 33. The job ID 35 is an identification number for identifying a job. The monitoring mode flag 36 is a flag indicating that the CPU allocation time per unit time is being measured when the CPU allocation guarantee target job is in the CPU allocation waiting state, and the monitoring start time 37 is the time when the monitoring mode is set. Is an area for storing. The CPU usage time saving area 38 at the start of monitoring is an area for saving the CPU usage time used by a job up to that time when the monitoring mode is set to obtain the CPU allocation time per unit time. The temporary priority flag 39 is a flag indicating that the job holding the shared resource has been temporarily set as the CPU allocation guaranteed job when the CPU allocation guaranteed job enters the exclusion wait state for the resource shared.

【0021】次に、図4に示すフローを参照して、ジョ
ブ開始時における処理について説明する。
Next, the processing at the start of a job will be described with reference to the flow shown in FIG.

【0022】(1)CPU割り当て保証制御部12は、
ジョブ開始時、すなわち、コンピュータシステムにジョ
ブが投入されたとき、状態保持テーブル13のCPU割
り当て保証対象ジョブ管理領域207を参照して、その
ジョブがCPU割り当て保証対象ジョブであるか否か判
断する(ステップ41)。
(1) The CPU allocation guarantee control unit 12
At the start of a job, that is, when a job is input to the computer system, it is determined whether or not the job is a CPU allocation guaranteed job by referring to the CPU allocation guaranteed job management area 207 of the status holding table 13 ( Step 41).

【0023】(2)ステップ41で、投入されたジョブ
がバッチジョブ19等であって、CPU割り当て保証対
象ジョブでないと判定された場合、CPU割り当て保証
制御部12は、なにもせずに処理を終了する。
(2) If it is determined in step 41 that the input job is the batch job 19 or the like and is not a CPU allocation assurance target job, the CPU allocation assurance control unit 12 performs processing without doing anything. finish.

【0024】(3)また、ステップ41で、投入された
ジョブがオンラインジョブA107、B108等であっ
て、CPU割り当て保証対象ジョブであると判定された
場合、CPU割り当て保証制御部12は、CPU割り当
てを保証するためのジョブ管理テーブル33を作成する
(ステップ42)。
(3) If it is determined in step 41 that the input job is the online job A 107 or B 108 or the like and is a job targeted for CPU allocation guarantee, the CPU allocation guarantee control unit 12 A job management table 33 for guaranteeing the job is created (step 42).

【0025】(4)CPU割り当て保証制御部12は、
ステップ42で作成したジョブ管理テーブル33を、C
PU割り当て保証ジョブ管理テーブル206に登録する
(ステップ43)。
(4) The CPU allocation guarantee control unit 12
The job management table 33 created in step 42 is
It is registered in the PU allocation guarantee job management table 206 (step 43).

【0026】次に、図5に示すフローを参照して、共用
資源排他制御部14の処理について説明する。
Next, the processing of the shared resource exclusive control unit 14 will be described with reference to the flow shown in FIG.

【0027】(1)共用資源確保要求処理において、投
入されたジョブが共用資源待ちになるか否かを判定し、
共用資源待ちにならない場合、何の処理も行わない(ス
テップ51)。
(1) In the shared resource securing request processing, it is determined whether or not the submitted job is waiting for shared resources.
If it does not wait for the shared resource, no processing is performed (step 51).

【0028】(2)ステップ51で、投入されたジョブ
が共用資源待ちになると判定された場合、資源要求元ジ
ョブがCPU割り当て保証対象ジョブか否かを判定し、
資源要求元ジョブがCPU割り当て保証対象ジョブでな
い場合、何の処理も行わない(ステップ52)。
(2) If it is determined in step 51 that the input job is waiting for a shared resource, it is determined whether or not the resource requesting job is a CPU allocation guaranteed job.
If the resource requesting job is not a CPU allocation guarantee target job, no processing is performed (step 52).

【0029】(3)ステップ52で、資源要求元ジョブ
がCPU割り当て保証対象ジョブであるオンラインジョ
ブA17またはオンラインジョブB18であると判定さ
れた場合、共用資源を確保しているジョブがCPU割り
当て保証対象ジョブか否かを判定し、共用資源を確保し
ているジョブがCPU割り当て保証対象ジョブであった
場合、何の処理も行わない(ステップ53)。
(3) If it is determined in step 52 that the resource request source job is the online job A17 or the online job B18 which is the job for which CPU allocation is guaranteed, the job securing the shared resource is the job for which CPU allocation is guaranteed. It is determined whether the job is a job or not, and if the job securing the shared resource is a CPU allocation guaranteed job, no processing is performed (step 53).

【0030】(4)ステップ53で、共用資源を確保し
ているジョブがCPU割り当て保証対象ジョブでないバ
ッチジョブ19である場合、共用資源を確保しているバ
ッチジョブを一時的にCPU割り当て対象ジョブにする
ために、ジョブ管理テーブル33を作成する(ステップ
54) (5)ステップ54で作成したジョブ管理テーブル33
に一時優先フラグ39を設定し、このジョブ管理テーブ
ル33をCPU割り当て保証ジョブ管理テーブル206
へ登録する(ステップ55、56)。
(4) In step 53, if the job securing the shared resource is the batch job 19 that is not a CPU allocation guaranteed job, the batch job securing the shared resource is temporarily set as the CPU allocation targeted job. To create the job management table 33 (step 54) (5) The job management table 33 created in step 54
Is set to the temporary priority flag 39, and the job management table 33
(Steps 55 and 56).

【0031】以上の処理により、共用資源を確保してい
るバッチジョブを、一時的にCPU割り当て保証対象ジ
ョブとすることができる。
With the above processing, a batch job for which a shared resource has been secured can be temporarily set as a CPU allocation guaranteed job.

【0032】(6)共用資源解放要求処理において、ジ
ョブが共用資源を解放すると、そのジョブが一時的なC
PU割り当て保証ジョブであるか否かをジョブ管理テー
ブル33の一時優先フラグ39の値をチェックして判定
し、一時優先フラグ39が設定されていなければ、何の
処理も行わない(ステップ57)。
(6) In the shared resource release request processing, when the job releases the shared resource, the job
It is determined whether the job is a PU allocation guarantee job by checking the value of the temporary priority flag 39 of the job management table 33, and if the temporary priority flag 39 is not set, no processing is performed (step 57).

【0033】(7)ステップ57で、一時的なCPU割
り当て保証のバッチジョブであると判定された場合、共
用資源を解放したバッチジョブのジョブ管理テーブル3
3をCPU割り当て保証ジョブ管理テーブル206から
削除し、このジョブ管理テーブル33を消去する(ステ
ップ58、59)。
(7) If it is determined in step 57 that the batch job is a temporary CPU allocation guaranteed batch job, the job management table 3 of the batch job whose shared resources have been released
3 is deleted from the CPU assignment guarantee job management table 206, and the job management table 33 is deleted (steps 58 and 59).

【0034】以上の処理により、一時的なCPU割り当
て保証をしていたバッチジョブの状況を解除することが
できる。
By the above processing, the status of the batch job for which the temporary CPU allocation is guaranteed can be released.

【0035】次に、図6に示すフローを参照して、CP
U割り当て保証制御部12の処理について説明する。
Next, referring to the flow shown in FIG.
The processing of the U allocation guarantee control unit 12 will be described.

【0036】(1)タイマ制御部11から起動される
と、まず、CPU割り当て保証ジョブ管理テーブル20
6のジョブ制御テーブル先頭ポインタ32から先頭のジ
ョブ管理テーブルを求め、ジョブ管理テーブル33があ
るか否かを判定する(ステップ601、602)。
(1) When started by the timer control unit 11, first, the CPU allocation guarantee job management table 20
The first job management table is obtained from the job control table top pointer 32 of No. 6 and it is determined whether or not the job management table 33 exists (steps 601 and 602).

【0037】(2)ステップ602で、ジョブ管理テー
ブル33があると判定された場合、そのジョブがCPU
割り当て待ちか否かをOSが持つ情報によりを判定し、
そのジョブがCPU割り当て待ちのとき、CPU割り当
て時間監視モードか否かを判定する。なお、前述のOS
が持つCPU割り当て待ちか否かを示す情報をジョブ管
理テーブル33内にフラグとして格納しておくこともで
きる(ステップ603、604)。
(2) If it is determined in step 602 that there is a job management table 33, the job
Whether or not to wait for assignment is determined based on information held by the OS,
When the job is waiting for CPU assignment, it is determined whether the job is in the CPU assignment time monitoring mode. Note that the aforementioned OS
May be stored in the job management table 33 as a flag indicating whether or not it is waiting for CPU allocation (steps 603 and 604).

【0038】(3)ステップ604で、CPU割り当て
監視モードであると判定された場合、そのジョブが監視
開始時から単位時間内のCPU割り当て保証時間分のC
PUを使用したか否かを判定する。CPU使用時間は、
OS内に保持されているそのジョブが起動されてからの
トータルのCPU使用時間からジョブ管理テーブル33
内の監視開始時のCPU使用時間退避領域38に格納さ
れている時間を減じた値として求められる。前述の判定
で、CPU割り当て保証時間分のCPUを使用していな
い場合、監視開始時間からCPU割り当て単位監視時間
を経過したか否かを判定する(ステップ605、60
6)。
(3) If it is determined in step 604 that the operation mode is the CPU allocation monitoring mode, the job has a CPU allocation guarantee time within the unit time from the start of monitoring.
It is determined whether the PU has been used. CPU usage time is
The job management table 33 is calculated based on the total CPU usage time from the start of the job held in the OS.
Is obtained as a value obtained by subtracting the time stored in the CPU use time save area 38 at the time of the start of monitoring. In the above-described determination, when the CPU for the CPU allocation guarantee time is not used, it is determined whether the CPU allocation unit monitoring time has elapsed from the monitoring start time (steps 605 and 60).
6).

【0039】(4)ステップ606で、CPU割り当て
単位監視時間が経過したと判定された場合、そのジョブ
にCPUを優先的に割り当てるために、ジョブ管理テー
ブルを優先スケジュールキューに登録し、次のジョブ管
理テーブルを求め、ステップ602以降の処理を繰り返
すことにより、全てのCPU割り当て保証ジョブに対す
る処理を行う(ステップ607、608)。
(4) If it is determined in step 606 that the CPU allocation unit monitoring time has elapsed, a job management table is registered in a priority schedule queue in order to preferentially allocate a CPU to the job. By obtaining a management table and repeating the processing of step 602 and subsequent steps, processing for all CPU allocation guaranteed jobs is performed (steps 607 and 608).

【0040】(5)ステップ604で、CPU割り当て
時間監視モードでないと判定された場合、及び、ステッ
プ605で、単位時間にCPU割り当て保証時間以上の
CPUを使用したと判定された場合、CPU割り当て時
間を監視するためにCPU割り当て時間監視モードフラ
グを設定する(ステップ610)。
(5) If it is determined in step 604 that the current mode is not the CPU allocation time monitoring mode, and if it is determined in step 605 that a CPU longer than the guaranteed CPU allocation time has been used per unit time, the CPU allocation time Is set to monitor the CPU allocation time monitoring mode flag (step 610).

【0041】(6)その後、CPU使用時間を退避し、
CPU割り当て時間監視の開始時間を退避した後、前述
したステップ608からの処理に移行する(ステップ6
11、612)。
(6) Thereafter, the CPU usage time is saved,
After saving the start time of the CPU allocation time monitoring, the processing shifts to the processing from step 608 described above (step 6).
11, 612).

【0042】(7)ステップ603で、ジョブが実行
中、または、処理すべきことがない等により、ジョブが
CPU割り当て待ち状態でないと判定された場合、監視
状態を解除するためにCPU割り当て時間監視モードフ
ラグをリセットし、前述したステップ608からの処理
に移行する(ステップ609)。
(7) If it is determined in step 603 that the job is not in the CPU allocation waiting state because the job is being executed or there is no processing to be performed, the CPU allocation time monitoring is performed to release the monitoring state. The mode flag is reset, and the process proceeds to the processing from step 608 described above (step 609).

【0043】(8)ステップ602でジョブ管理テーブ
ルがないと判定された場合、すなわち、全てのジョブ管
理テーブルが処理された後、ジョブの優先スケジュール
中か否かを判定する(ステップ613)。
(8) When it is determined in step 602 that there is no job management table, that is, after all job management tables have been processed, it is determined whether or not the job is in the priority schedule (step 613).

【0044】(9)ステップ613で、ジョブの優先ス
ケジュール中でないと判定された場合、優先スケジュー
ルキューにCPUの優先割り当てをすべきジョブのジョ
ブ管理テーブルが登録されているか否かを判定する(ス
テップ614)。
(9) If it is determined in step 613 that the priority scheduling of the job is not being performed, it is determined whether or not the job management table of the job to which the CPU is to be assigned priority is registered in the priority scheduling queue (step 613). 614).

【0045】(10)ステップ614で、優先スケジュー
ルキューにCPUの優先割り当てをすべきジョブのジョ
ブ管理テーブルが登録されていると判定された場合、優
先スケジュール中表示の設定を行い、優先スケジュール
要求領域にジョブIDを設定することにより、CPUス
ケジューラ15にジョブの優先スケジュールを要求する
(ステップ615、616)。
(10) If it is determined in step 614 that the job management table of the job to which the CPU is to be preferentially assigned is registered in the priority schedule queue, the priority schedule display area is set, and the priority schedule request area is set. By setting a job ID to the job scheduler, the CPU scheduler 15 is requested to give a job priority schedule (steps 615 and 616).

【0046】(11)ステップ616で、優先スケジュー
ルを要求した後、優先スケジュールするジョブのジョブ
管理テーブルを優先スケジュールキューから削除するこ
とにより、同一のジョブが連続して優先スケジュールさ
れることを防止する(ステップ617)。
(11) After requesting the priority schedule in step 616, the job management table of the job to be priority-scheduled is deleted from the priority schedule queue, thereby preventing the same job from being successively scheduled. (Step 617).

【0047】(12)ステップ613で、ジョブの優先ス
ケジュール中であると判定された場合、優先スケジュー
ル要求領域をリセットする、これにより、CPUスケジ
ューラ15は、実行優先順位に従ってCPUを割り当
て、CPU割り当て優先対象ジョブがCPUを占有する
ことを防止する。また、ステップ614で、優先スケジ
ュールキューにCPUの優先割り当てをすべきジョブの
ジョブ管理テーブルが登録されていないと判定された場
合、優先スケジュール中表示の解除し、優先スケジュー
ル要求領域をリセットする。これにより、CPUスケジ
ューラ15は実行優先順位に従ったCPU割り当てを実
施することができる(ステップ618、619)。
(12) If it is determined in step 613 that the priority scheduling of the job is being performed, the priority schedule request area is reset. Thus, the CPU scheduler 15 allocates the CPUs according to the execution priority, and assigns the CPU priority. This prevents the target job from occupying the CPU. If it is determined in step 614 that the job management table of the job to which the CPU should be preferentially assigned to the priority schedule queue is not registered, the priority schedule display is canceled and the priority schedule request area is reset. As a result, the CPU scheduler 15 can execute the CPU allocation according to the execution priority (steps 618, 619).

【0048】次に、図7に示すフローを参照して、CP
Uスケジューラ15の処理について説明する。
Next, referring to the flow shown in FIG.
The process of the U scheduler 15 will be described.

【0049】(1)まず、状態保持テーブル13の優先
スケジュール要求領域209に優先スケジュールすべき
ジョブのジョブIDが設定されているか否かを判定する
(ステップ71)。
(1) First, it is determined whether or not the job ID of the job to be scheduled for priority is set in the priority schedule request area 209 of the status holding table 13 (step 71).

【0050】(2)ステップ71で、優先スケジュール
要求領域209にジョブIDが設定されていると判定さ
れれば、このジョブがCPU割り当て待ち状態であるか
否かを判定し、CPU割り当て待ちであればこのジョブ
にCPUを割り当てる(ステップ72、73)。
(2) If it is determined in step 71 that a job ID has been set in the priority schedule request area 209, it is determined whether or not this job is waiting for CPU allocation. The CPU is assigned to the job (steps 72 and 73).

【0051】(3)ステップ72で、優先スケジュール
要求ジョブがCPU割り当て待ち状態でなければ、優先
スケジュール要求領域をリセットし、ジョブの実行優先
順位に従ってCPU割り当て待ちジョブを選択し、その
ジョブにCPUを割り当てる(ステップ74、75)。
(3) In step 72, if the priority schedule request job is not in the CPU assignment waiting state, the priority schedule request area is reset, a CPU assignment waiting job is selected according to the job execution priority, and the CPU is assigned to the job. Assignment (steps 74 and 75).

【0052】(4)ステップ71で、優先スケジュール
要求領域209にジョブIDが設定されていないと判定
されれば、ジョブの実行優先順位に従ってCPU割り当
て待ちジョブを選択し、そのジョブにCPUを割り当て
る。
(4) If it is determined in step 71 that the job ID is not set in the priority schedule request area 209, a CPU assignment waiting job is selected in accordance with the job execution priority, and the CPU is assigned to the job.

【0053】次に、図8を参照して、前述までに説明し
た本発明の実施形態によるCPUのジョブへの割り当て
の状況を説明する。
Next, with reference to FIG. 8, a description will be given of the status of the assignment of the CPU to the job according to the embodiment of the present invention described above.

【0054】図8(a)は、本発明が適用されない場合
のCPU割り当ての概念を説明する図であり、実行優先
順位の高いシステムジョブがループ状態になる等の状況
が発生した場合、システムジョブがCPUを占有してし
まうことを示している。この場合、当然のことである
が、オンラインジョブAやオンラインジョブBには、C
PUが割り当てられないことになる。
FIG. 8A is a diagram for explaining the concept of CPU allocation when the present invention is not applied. When a situation such as a system job having a high execution priority enters a loop state occurs, Occupies the CPU. In this case, as a matter of course, the online job A and the online job B have C
No PU will be assigned.

【0055】図8(b)は、本発明の実施形態による各
ジョブへのCPUの割り当ての概念を説明する図であ
る。この図から判るように、CPU割り当て保証対象ジ
ョブのオンラインジョブAとオンラインジョブBとは、
実行優先順位が高いシステムジョブがループ状態になっ
た場合にもCPUが割り当てられる。そして、実行優先
順位が低くCPU割り当て保証対象でないバッチジョブ
には、CPUが割り当てられない。また、この例の場
合、CPU割り当て保証対象ジョブがCPUを占有して
しまうことがないため、システムジョブも動作すること
ができる。
FIG. 8B is a diagram for explaining the concept of CPU allocation to each job according to the embodiment of the present invention. As can be seen from this figure, the online job A and the online job B, which are CPU allocation guaranteed jobs,
The CPU is also allocated when a system job having a higher execution priority enters a loop state. Then, no CPU is assigned to a batch job whose execution priority is low and is not a CPU assignment guarantee target. Further, in this example, since the CPU allocation guaranteed job does not occupy the CPU, the system job can also operate.

【0056】図8(c)は、本発明の実施形態を適用し
て、共用資源の排他待ちが発生したときのCPU割り当
て概念を説明する図である。図示例は、CPU割り当て
保証対象ジョブのオンラインジョブAがバッチジョブが
確保している共用資源待ちになった場合を示している。
この場合、バッチジョブを一時的にCPU割り当て保証
対象ジョブとすることにより、システムジョブやオンラ
インジョブBがループ状態になってもバッチジョブにC
PUが割り当てられて、バッチジョブが処理を実行する
ことができる。この結果、バッチジョブが共用資源を解
放するので、このとき、共用資源待ちになっていたオン
ラインジョブAにCPUを割り当てることが可能にな
る。また、このとき、一時的にCPU割り当て保証対象
ジョブとしたバッチジョブのCPU割り当て保証が解除
されるので、バッチジョブにCPUが優先して割り当て
られることがなくなる。
FIG. 8C is a diagram for explaining the concept of CPU allocation when an exclusion wait of a shared resource occurs according to the embodiment of the present invention. The illustrated example shows a case in which the online job A of the job whose CPU allocation is to be guaranteed has waited for the shared resource secured by the batch job.
In this case, the batch job is temporarily set as the CPU allocation guarantee target job, so that even if the system job or online job B enters a loop state,
PUs are allocated and batch jobs can execute processing. As a result, since the batch job releases the shared resource, the CPU can be assigned to the online job A waiting for the shared resource at this time. At this time, the CPU assignment guarantee of the batch job temporarily set as the CPU assignment guarantee target job is released, so that the CPU is not preferentially assigned to the batch job.

【0057】なお、図8に示すCPU優先割り当て時間
は、状態保持テーブル13にCPU割り当て時間205
として設定されている時間である。また、図8(c)に
おいて、オンラインジョブAがCPU割り当て時間を使
いきれずに処理を終了しているのは、この時点で共用資
源待ちの状態になったからであり、残りのCPU割り当
て時間は、次のCPU割り当て時間が割り当てられるジ
ョブ、図示例の場合、システムジョブに割り当てられる
ことになる。また、バッチジョブが共用資源を解放した
後の残りのCPU割り当て時間も、前述と同様にシステ
ムジョブに割り当てられる。
It should be noted that the CPU priority assignment time shown in FIG.
Is the time set as Further, in FIG. 8C, the reason that the online job A has finished processing without using up the CPU allocation time is that the shared job waits for the shared resource at this time, and the remaining CPU allocation time is The job to which the next CPU allocation time is allocated, in the illustrated example, is allocated to the system job. Also, the remaining CPU allocation time after the batch job releases the shared resources is allocated to the system job in the same manner as described above.

【0058】前述した本発明の実施形態によれば、CP
U割り当て保証対象ジョブの実行優先順位を変更するこ
となく、CPUを優先的に割り当てることができるた
め、CPUを優先割り当ての必要がないときは実行優先
順位に従ったCPUスケジュールを行うことができる。
また、前述した本発明の実施形態によれば、CPUスケ
ジューラは、CPU割り当て保証対象ジョブに対しての
みCPUの割り当てを行うことがないため、CPU割り
当て保証対象ジョブによりCPUが占有されることがな
い。さらに、前述した本発明の実施形態によれば、CP
U割り当て保証対象ジョブが共用資源待ちになったと
き、共用資源を確保しているジョブを一時的にCPU割
り当て保証対象ジョブにしているので、CPU割り当て
保証対象ジョブの共用資源待ちによる沈み込みを防止す
ることができる。
According to the embodiment of the present invention described above, the CP
Since the CPU can be preferentially assigned without changing the execution priority of the U allocation guaranteed job, the CPU can be scheduled according to the execution priority when the CPU does not need to be assigned priority.
Further, according to the above-described embodiment of the present invention, the CPU scheduler does not allocate a CPU only to a job for which CPU allocation is guaranteed, so that the CPU is not occupied by a job for which CPU allocation is guaranteed. . Further, according to the embodiment of the present invention described above, the CP
When the U allocation guaranteed job is waiting for shared resources, the job securing the shared resources is temporarily set as the CPU allocation guaranteed job, so that the sinking of the CPU allocation guaranteed job due to waiting for the shared resources is prevented. can do.

【0059】なお、前述した本発明の実施形態におい
て、状態保持テーブル13、CPU割り当て保証ジョブ
管理テーブル206の構成と制御の方法とは、本発明の
主旨を逸脱しない範囲で種々に変形することができる。
また、前述した本発明の実施形態の説明の中で例示した
各種の時間値は、その値に限定されるものではなく、任
意に設定することができる。
In the above-described embodiment of the present invention, the configuration and the control method of the status holding table 13 and the CPU assignment assurance job management table 206 can be variously modified without departing from the gist of the present invention. it can.
Further, the various time values exemplified in the description of the embodiment of the present invention are not limited to the values and can be set arbitrarily.

【0060】[0060]

【発明の効果】以上説明したように本発明によれば、ジ
ョブの実行優先順位を変更することなく、ある単位時間
内にジョブに割り当てるCPUの時間を保証しているの
で、このジョブに最低必要なCPUが割り当てられてい
るとき、実行優先順位に従ったCPUの割り当てを行う
ことができる。また、本発明によれば、CPU割り当て
時間を保証したいジョブが多数ある場合にも、これらの
ジョブがCPUを占有してしまうことを防止することが
できる。さらに、本発明によれば、CPU割り当て時間
を保証したいジョブが共用資源の排他待ちになったと
き、共用資源を確保したジョブに対してもCPU割り当
てを保証するようにしているので、共用資源の排他待ち
を短縮することができ、ジョブへのCPU割り当てを保
証することができ、コンピュータシステムのCPU資源
を円滑に運用することができる。
As described above, according to the present invention, the CPU time allocated to a job within a certain unit time is guaranteed without changing the execution priority of the job. When a proper CPU is allocated, the CPU can be allocated according to the execution priority. Further, according to the present invention, even when there are many jobs for which the CPU allocation time is to be guaranteed, it is possible to prevent these jobs from occupying the CPU. Further, according to the present invention, when a job whose CPU allocation time is to be guaranteed is waiting for the exclusion of a shared resource, the CPU allocation is guaranteed for the job which has secured the shared resource. The exclusion wait can be reduced, the CPU allocation to the job can be guaranteed, and the CPU resources of the computer system can be operated smoothly.

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

【図1】本発明のによるジョブのスケジュール方法を実
行する装置の一実施形態の構成を示す図である。
FIG. 1 is a diagram illustrating a configuration of an embodiment of an apparatus that executes a job scheduling method according to the present invention.

【図2】状態保持テーブルの構成を説明する図である。FIG. 2 is a diagram illustrating a configuration of a state holding table.

【図3】CPU割り当て保証ジョブ管理テーブルの構成
を説明する図である。
FIG. 3 is a diagram illustrating a configuration of a CPU assignment guarantee job management table.

【図4】ジョブ開始時の本発明の一実施形態の処理を説
明するフローチャートである。
FIG. 4 is a flowchart illustrating a process according to an embodiment of the present invention when a job is started.

【図5】共用資源排他制御部の処理を説明するフローチ
ャートである。
FIG. 5 is a flowchart illustrating processing of a shared resource exclusion control unit.

【図6】CPU割り当て保証制御部の処理を説明するフ
ローチャートである。
FIG. 6 is a flowchart illustrating a process of a CPU allocation guarantee control unit.

【図7】CPUスケジューラの処理を説明するフローチ
ャートである。
FIG. 7 is a flowchart illustrating processing of a CPU scheduler.

【図8】本発明の実施形態によるCPUのジョブへの割
り当ての状況を説明する図である。
FIG. 8 is a diagram illustrating a state of assignment of a CPU to a job according to the embodiment of the present invention.

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

11 タイマ制御部 12 CPU割り当て保証制御部 13 状態保持テーブル 14 共用資源排他制御部 15 CPUスケジューラ 16 システムジョブ 17、18 オンラインジョブA、B 19 バッチジョブ 206 CPU割り当て保証ジョブ管理テーブル DESCRIPTION OF SYMBOLS 11 Timer control part 12 CPU allocation guarantee control part 13 State holding table 14 Shared resource exclusion control part 15 CPU scheduler 16 System job 17, 18 Online job A, B 19 Batch job 206 CPU allocation guarantee job management table

───────────────────────────────────────────────────── フロントページの続き (72)発明者 秋葉 千江子 神奈川県横浜市戸塚区戸塚町5030番地 株 式会社日立製作所ソフトウェア事業部内 (72)発明者 石岡 一郎 神奈川県横浜市戸塚区戸塚町5030番地 株 式会社日立製作所ソフトウェア事業部内 Fターム(参考) 5B098 CC03 GA03 GB01 GB13 GC01 GC03 GD02 GD14  ──────────────────────────────────────────────────の Continuing on the front page (72) Inventor Chieko Akiba 5030 Totsuka-cho, Totsuka-ku, Yokohama-shi, Kanagawa Prefecture Inside the Software Division of Hitachi, Ltd. (72) Inventor Ichiro Ishioka 5030 Totsuka-cho, Totsuka-ku, Yokohama-shi, Kanagawa Hitachi, Ltd. Software Division F-term (reference) 5B098 CC03 GA03 GB01 GB13 GC01 GC03 GD02 GD14

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 ジョブの実行優先順位に従ってCPUを
割り当てるジョブのスケジュール方法において、CPU
の割り当てを保証するCPU割り当て保証対象ジョブを
予め定め、このCPU割り当て保証対象ジョブのCPU
使用時間を計測し、予め定めた単位時間内に前記ジョブ
に一定時間以上CPUが割り当てられていなかった場
合、前記ジョブに優先的にCPUを割り当てることを特
徴とするジョブのスケジュール方法。
1. A job scheduling method for allocating a CPU according to a job execution priority.
A job to be guaranteed for CPU allocation that guarantees the assignment of
A method of scheduling a job, comprising measuring usage time, and assigning a CPU to the job preferentially if the job has not been assigned a predetermined time or more within a predetermined unit time.
【請求項2】 CPUの割り当て保証対象ジョブが多数
ある場合、CPU割り当て保証対象ジョブに対して連続
してCPUを割り当てないようにすることを特徴とする
請求項1記載のジョブのスケジュール方法。
2. The job scheduling method according to claim 1, wherein when there are a large number of CPU allocation guaranteed jobs, CPUs are not continuously allocated to the CPU allocation guaranteed jobs.
【請求項3】 CPUの割り当て保証対象のジョブがジ
ョブ間で共用する資源の排他待ちになったとき、共用資
源を保持しているCPUの割り当て保証対象となってい
ないジョブをCPU割り当て保証対象ジョブとすること
を特徴とする請求項1または2記載のジョブのスケジュ
ール方法。
3. When a job whose CPU allocation is to be guaranteed is waiting for exclusion of a resource shared between jobs, a job that is not guaranteed to be allocated by a CPU holding a shared resource is replaced by a CPU allocation guaranteed job. 3. The job scheduling method according to claim 1, wherein:
JP10316133A 1998-11-06 1998-11-06 Method for scheduling job Pending JP2000148512A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10316133A JP2000148512A (en) 1998-11-06 1998-11-06 Method for scheduling job

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10316133A JP2000148512A (en) 1998-11-06 1998-11-06 Method for scheduling job

Publications (1)

Publication Number Publication Date
JP2000148512A true JP2000148512A (en) 2000-05-30

Family

ID=18073627

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10316133A Pending JP2000148512A (en) 1998-11-06 1998-11-06 Method for scheduling job

Country Status (1)

Country Link
JP (1) JP2000148512A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009211386A (en) * 2008-03-04 2009-09-17 Nec Corp Process control apparatus, method, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009211386A (en) * 2008-03-04 2009-09-17 Nec Corp Process control apparatus, method, and program
JP4650504B2 (en) * 2008-03-04 2011-03-16 日本電気株式会社 Process control device, process control method, and process control program

Similar Documents

Publication Publication Date Title
JP3678414B2 (en) Multiprocessor system
US8166484B2 (en) System for confirming and cancelling tentative resource reservation within the valid time indicates period during which the tentative reservation request is valid
US5642508A (en) Distributed control method and apparatus for job execution
US5377352A (en) Method of scheduling tasks with priority to interrupted task locking shared resource
US7065766B2 (en) Apparatus and method for load balancing of fixed priority threads in a multiple run queue environment
JPH07141305A (en) Control method for execution of parallel computer
US5999963A (en) Move-to-rear list scheduling
US20030037091A1 (en) Task scheduling device
US8695004B2 (en) Method for distributing computing time in a computer system
JP3962370B2 (en) RESOURCE RESERVATION SYSTEM, RESOURCE RESERVATION METHOD, AND RECORDING MEDIUM CONTAINING PROGRAM FOR EXECUTING THE METHOD
JP2000056992A (en) Task scheduling system, its method and recording medium
JPH0628323A (en) Process execution control method
JP2009237858A (en) Server task management program and server task management method
JP2000148512A (en) Method for scheduling job
JP2008225641A (en) Computer system, interrupt control method and program
JP2004246592A (en) Job execution management device
JPH05313923A (en) Exclusive controller for shared resources
JP2000172515A (en) System and method for resource priority allocation and recording medium where resource priority allocating program is recorded
JP2692647B2 (en) Multitask control method and control system
JPS62175832A (en) Resources control system for electronic computer
JPH11175357A (en) Task management method
JPH11249917A (en) Parallel computers, their batch processing method, and storage medium
JPS59170950A (en) Task priority control system
JPH05204875A (en) Scheduling system for thread
JP2581007B2 (en) CPU fixed system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050104

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050118

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050322

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050830