JPH06282446A - Job schedule generating method - Google Patents

Job schedule generating method

Info

Publication number
JPH06282446A
JPH06282446A JP6951693A JP6951693A JPH06282446A JP H06282446 A JPH06282446 A JP H06282446A JP 6951693 A JP6951693 A JP 6951693A JP 6951693 A JP6951693 A JP 6951693A JP H06282446 A JPH06282446 A JP H06282446A
Authority
JP
Japan
Prior art keywords
job
storage device
jobs
resource
schedule
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
JP6951693A
Other languages
Japanese (ja)
Inventor
Ariyoshi Suwa
有美 諏訪
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 Software Engineering Co Ltd
Original Assignee
Hitachi Software Engineering 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 Hitachi Software Engineering Co Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP6951693A priority Critical patent/JPH06282446A/en
Publication of JPH06282446A publication Critical patent/JPH06282446A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent jobs from conflicting with each other when securing a resource during execution and to reduce the consumption of a memory at the time of schedule generation. CONSTITUTION:An in-use file storage device 20 stores information on files used by the respective jobs. A job storage device 30 stores information regarding the respective jobs. An in-use resource storage device 40 stores information on resources that the respective jobs use. A resource storage device 50 stores information regarding the respective resources. An exclusive relation generation part 11 generates exclusive jobs of the respective jobs from the information in the in-use file storage device 20 and stores the job numbers of the exclusive jobs in an exclusive relation storage device 60. A schedule generation part 12 generates a schedule by repeating a process wherein the jobs are taken out of the job storage device 40 to generate a candidate job list and assignable jobs are selected by referring to the exclusive relation storage device 609 and in-use resource storage device 40 and stored in an assigned job storage part 14 and a schedule result storage device 70.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、計算機システムにおけ
るジョブのスケジュール自動作成方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for automatically creating a job schedule in a computer system.

【0002】[0002]

【従来の技術】従来の計算機システムのジョブスケジュ
ール作成では、起動日、起動曜日、ジョブの前後関係、
開始時間などによって記述されたジョブを、起動日、起
動曜日などによって日毎に振り分けたのち、ジョブの前
後関係、開始時間などによって1日単位のジョブのスケ
ジュールを作成していた。これに関連する公知例として
は、一週間毎の運転情報ファイルを作成し、これを使用
して、指示された日のジョブを開始時間順に並べてスケ
ジュールを作成するものが、特開平2−216509号
公報に記載されている。
2. Description of the Related Art In creating a job schedule for a conventional computer system, the start date, the start day of the week, the context of the job,
A job described by a start time and the like is sorted by day according to a start date, a start day of the week, and the like, and then a daily job schedule is created according to the context of the job, the start time, and the like. As a publicly known example related to this, one in which a weekly operation information file is created and jobs are arranged in order of start time to create a schedule by using this is disclosed in Japanese Patent Laid-Open No. 2-216509. It is described in the official gazette.

【0003】また、使用リソースによるジョブの排他制
御に関しては、従来はジョブに必要なリソースが全て使
用可能な状態になった時にジョブの実行を開始する、い
わゆる実行時の排他制御が行われている。これに関連す
る公知例としては、複合形システムにおいて実行時にシ
ステム間の共用/非共用ファイルの排他制御を行うジョ
ブスケジュール方式が特開平4ー17057号公報に記
載されている。
Regarding the exclusive control of jobs by the resources used, conventionally, so-called exclusive control at the time of execution is performed in which execution of the job is started when all the resources required for the job become available. . As a publicly known example related to this, Japanese Patent Laid-Open No. 4-17057 discloses a job schedule system for performing exclusive control of shared / non-shared files between systems during execution in a complex system.

【0004】[0004]

【発明が解決しようとする課題】上記従来の計算機シス
テムのスケジュール作成方法では、ジョブの実行時にそ
のジョブに必要なリソースを確保出来なかった場合、そ
のジョブの実行を後回しにして、結果として時間内にそ
の日のジョブを全て終了することが出来ない場合がある
という欠点を有していた。このような場合、上記従来の
リソース排他制御のように、実行時にリソースの排他制
御を行っても、事前にスケジュールした通りには実行で
きないという問題がある。更に、排他制御を行うために
リソース状態を記憶するには、ファイルなど大量のリソ
ース名がある場合は、その名前を管理するだけで大量の
メモリが必要になるという問題がある。
In the above-described conventional computer system schedule creation method, when the resources necessary for the job cannot be secured at the time of executing the job, the execution of the job is postponed, resulting in the time In addition, there is a drawback that it may not be possible to finish all jobs of the day. In such a case, there is a problem that even if the resource exclusive control is performed at the time of execution like the above-described conventional resource exclusive control, it cannot be executed as scheduled in advance. Further, in order to store the resource state for performing the exclusive control, when there are a large number of resource names such as files, there is a problem that a large amount of memory is required just by managing the names.

【0005】本発明の目的は、スケジュール作成時にリ
ソースによる排他制御をすることにより、実行時のジョ
ブ間のリソースの取り合いを防ぐことにある。
An object of the present invention is to prevent resource contention between jobs at the time of execution by performing exclusive control by resources when creating a schedule.

【0006】本発明の他の目的は、共用/排他のあるリ
ソースに関して、個々のリソース名をスケジュール時に
管理せずに済むようにすることにより、メモリの使用量
を軽減することにある。
Another object of the present invention is to reduce the amount of memory used by eliminating the need to manage individual resource names at the time of scheduling for shared / exclusive resources.

【0007】[0007]

【課題を解決するための手段】本発明は、ジョブの使用
するリソースの状態を記憶する手段と各ジョブの使用す
るリソースとその共用/排他を記憶する手段とを設け、
ジョブの割当時に、当該ジョブの使用するリソースが使
用可能状態にある時のみ割り当てを行うことによって、
実行時のジョブ間のリソースの取り合いを防ぐようにし
たものである。
The present invention provides means for storing the state of resources used by jobs, and means for storing resources used by each job and their sharing / exclusion.
By assigning jobs only when resources used by the jobs are available,
This is to prevent competition of resources between jobs at the time of execution.

【0008】更に、本発明は、共用/排他のあるリソー
スに関してはジョブの使用するリソース情報をジョブ間
の排他関係に書き換えて記憶する手段を設け、該ジョブ
間の排他関係により使用リソースによるジョブの排他制
御を行うことによって、リソース状態を記憶するメモリ
を少なくするようにしたものである。
Further, according to the present invention, with respect to a resource with sharing / exclusion, a means for rewriting and storing the resource information used by a job in an exclusive relationship between jobs is provided, and the exclusive relationship between jobs makes it possible to store a job depending on the resource used. By performing exclusive control, the memory for storing the resource state is reduced.

【0009】[0009]

【作用】リソースの排他制御をスケジュール作成時に行
うことにより、実行時にリソースの確保が出来ずにスケ
ジュール通りに実行出来ないジョブをなくすことが出
来、日毎の計算機の運転等を予定通りに終了することが
出来る。また、共用/排他のあるリソースによるジョブ
の排他関係を生成して記憶しておくことにより、スケジ
ュール作成時に大量のリソースの名前等をメモリ上で管
理せずに済む。
[Operation] By performing exclusive control of resources at the time of creating a schedule, it is possible to eliminate jobs that cannot be secured on the schedule at the time of execution and cannot be executed according to the schedule, and to end daily computer operations as scheduled. Can be done. Further, by generating and storing the exclusive relationship of jobs by resources with sharing / exclusion, it is not necessary to manage the names of a large number of resources on the memory when creating a schedule.

【0010】[0010]

【実施例】以下、本発明の一実施例について図面により
説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0011】図1は、本発明の一実施例を示すスケジュ
ール作成システムのブロック図である。本システムは、
スケジュール作成装置10、使用ファイル記憶装置2
0、ジョブ記憶装置30、使用リソース記憶装置40、
リソース記憶装置50、排他関係記憶装置60、スケジ
ュール結果記憶装置70からなる。スケジュール作成装
置10は排他関係生成部11、スケジュール作成部1
2、リソース状態記憶部13、割り当てジョブ記憶部1
4からなる。
FIG. 1 is a block diagram of a schedule creating system showing an embodiment of the present invention. This system is
Schedule creation device 10, used file storage device 2
0, job storage device 30, used resource storage device 40,
It comprises a resource storage device 50, an exclusive relation storage device 60, and a schedule result storage device 70. The schedule creating device 10 includes an exclusive relationship creating unit 11 and a schedule creating unit 1.
2, resource status storage unit 13, assigned job storage unit 1
It consists of 4.

【0012】使用ファイル記憶装置20には、図2のよ
うに各ジョブの使用するファイルの情報が格納されてい
る。例えば、ジョブ番号1のジョブはfile1を排他
モードで使用することを示している。
As shown in FIG. 2, the used file storage device 20 stores information on files used by each job. For example, the job of job number 1 indicates that file1 is used in the exclusive mode.

【0013】ジョブ記憶装置30には、図3のように、
各ジョブに関する情報が格納されている。例えばジョブ
番号1はジョブ名A、処理時間15分、先行ジョブ番号
はなし、開始時間の指定はなし、などの情報から構成さ
れている。
In the job storage device 30, as shown in FIG.
Information about each job is stored. For example, job number 1 is composed of information such as job name A, processing time of 15 minutes, no preceding job number, no designation of start time, and the like.

【0014】使用リソース記憶装置40には、図4のよ
うに、各ジョブの使用するリソースの情報が格納されて
いる。例えばジョブ番号1のジョブはリソースaaaを
100シリンダと、リソースdddを4台使用すること
を示している。なお、次の図5に示すように、ここで
は、リソースaaa、bbb、cccは磁気ディスク装
置(DISK)、リソースddd、eeeは磁気テープ
装置(MT)とする。
As shown in FIG. 4, the used resource storage device 40 stores information on resources used by each job. For example, the job with job number 1 indicates that the resource aaa is 100 cylinders and the resource ddd is 4 units. As shown in FIG. 5, the resources aaa, bbb, and ccc are magnetic disk devices (DISK), and the resources ddd and ee are magnetic tape devices (MT).

【0015】リソース記憶装置50には、図5のよう
に、各リソースに関する情報が格納されている。例えば
リソース名aaaは、リソースの種類はDISKで容量
は1000などの情報から構成されている。
As shown in FIG. 5, the resource storage device 50 stores information about each resource. For example, the resource name aaa is composed of information such that the resource type is DISK and the capacity is 1000.

【0016】排他関係生成部11は、使用ファイル記憶
装置20に格納された情報から、各ジョブの排他ジョブ
を生成する。例えば、図2において、ジョブ番号1のジ
ョブはfile1を排他で使用し、ジョブ番号2のジョ
ブはfile1を共用しているので、ジョブ番号1と2
のジョブは互いに排他ジョブになっている。また、ジョ
ブ番号3のジョブはfile1を共用で使用しているの
で、ジョブ番号2のジョブとジョブ番号3のジョブは互
いに排他関係にない。排他関係生成部11は、このよう
にして生成したジョブ間の排他関係を排他関係記憶装置
60に格納する。
The exclusive relationship generator 11 generates an exclusive job for each job from the information stored in the used file storage device 20. For example, in FIG. 2, the job with the job number 1 exclusively uses the file1 and the job with the job number 2 shares the file1.
Jobs are mutually exclusive jobs. Further, since the job of job number 3 uses the file 1 in common, the job of job number 2 and the job of job number 3 are not mutually exclusive. The exclusive relationship generating unit 11 stores the exclusive relationship between jobs thus generated in the exclusive relationship storage device 60.

【0017】図6は、排他関係記憶装置60の構成例で
あり、各ジョブのジョブ番号に対応して、その排他ジョ
ブのジョブ番号が格納されている。図6において、例え
ばジョブ番号1のジョブの排他ジョブ番号は、2,3,
4であることを示している。
FIG. 6 shows an example of the configuration of the exclusive relation storage device 60, in which the job numbers of the exclusive jobs are stored in association with the job numbers of the respective jobs. In FIG. 6, for example, the exclusive job number of the job of job number 1 is 2, 3,
4 is shown.

【0018】図7は、スケジュール作成部12の全体的
処理のながれを示すフローチャートである。以下、図7
に従って、スケジュール作成部12における全体の処理
手順を説明する。
FIG. 7 is a flow chart showing the overall processing flow of the schedule creating section 12. Below, FIG.
The overall processing procedure in the schedule creating unit 12 will be described in accordance with.

【0019】スケジュール作成部12では、始めに開始
時間と終了時間の設定をする(ステップ701と70
2)。ここで設定した開始時間から終了時間にジョブを
割り当てる。次に、イニシエータ数を設定する(ステッ
プ703)。イニシエータとは、ジョブの実行を行うも
ので、計算機ではイニシエータの数だけ、ジョブを並行
して実行することができる。
The schedule creating section 12 first sets a start time and an end time (steps 701 and 70).
2). A job is assigned from the start time to the end time set here. Next, the number of initiators is set (step 703). The initiator executes a job, and the computer can execute the jobs in parallel by the number of the initiators.

【0020】次に、リソース記憶装置50の各リソース
情報をもとにリソース状態記憶部13を初期化する(ス
テップ704)。リソース状態記憶部13は、各リソー
スの使用状態を記憶するものである。図10の(a)
は、図5のリソース記憶装置50の例をもとに、リソー
ス状態記憶部13の初期状態を示したもので、例えば、
リソース名aaaは、リソースの種類はDISKで、そ
の残容量は1000シリンダなどの情報から構成され
る。
Next, the resource state storage unit 13 is initialized based on each resource information of the resource storage device 50 (step 704). The resource status storage unit 13 stores the usage status of each resource. (A) of FIG.
Shows the initial state of the resource state storage unit 13 based on the example of the resource storage device 50 of FIG.
The resource name aaa is made up of information such that the resource type is DISK and the remaining capacity is 1000 cylinders.

【0021】次に、割り当てジョブ記憶部14を初期化
する(ステップ705)。割り当てジョブ記憶部14
は、各イニシエータ対応に、イニシエータ番号と、それ
に対する割り当てジョブ番号とその終了時間で構成され
る。図11の(a)は、イニシエータ数を5とした場合
の、割り当てジョブ記憶部14の初期状態の例で、全て
のイニシエータ番号に対し、割り当てジョブ番号、終了
時間はなしである。
Next, the assigned job storage unit 14 is initialized (step 705). Allocation job storage unit 14
Is composed of an initiator number, an assigned job number for the initiator number, and an end time thereof for each initiator. FIG. 11A shows an example of the initial state of the assigned job storage unit 14 when the number of initiators is 5, and there is no assigned job number and end time for all the initiator numbers.

【0022】上記ステップ701からステップ705ま
でがスケジュール処理の前処理であり、これが終了する
と、ステップ6以降のスケジュール処理を実行する。
Steps 701 to 705 are pre-processes of the schedule process, and when this is completed, the schedule process after step 6 is executed.

【0023】スケジュール処理では、まず、スケジュー
ルの対象となる現在時間に開始時間を設定する(ステッ
プ706)。そして、未割り当てジョブがあるか調べ
(ステップ707)、未割り当てのジョブがなければス
ケジュー処理を終了し、未割り当てのジョブがあればス
テップ708に進む。ステップ708では、現在時間が
終了時間を過ぎているか調べ、過ぎていればスケジュー
ル処理を終了し、過ぎていなければステップ709に進
む。ステップ709では、割り当てジョブ記憶部14に
割り当てジョブがなしのイニシエータがあるか調べ、な
ければ(ステップ709でno)、現在時間の更新をし
て(ステップ712)、ステップ707に戻る。一方、
割り当てジョブ記憶部14に割り当てジョブがなしのイ
ニシエータがあれば、割り当てジョブの決定処理を行う
(ステップ710)。割り当てジョブの決定処理の結果
を判定し(ステップ711)、割り当てジョブがあった
場合はそのままステップ707に戻り、割り当てジョブ
がなかった場合は、現在時間の更新をした後(ステップ
712)、ステップ707に戻る。
In the schedule process, first, the start time is set to the current time to be scheduled (step 706). Then, it is checked whether or not there is an unassigned job (step 707). If there is no unassigned job, the scheduling process ends, and if there is an unassigned job, the process proceeds to step 708. In step 708, it is checked whether or not the current time is over the end time, and if it is over, the schedule process is ended, and if it is not over, the process proceeds to step 709. In step 709, it is checked whether or not there is an initiator for which there is no assigned job in the assigned job storage unit 14 (NO in step 709), the current time is updated (step 712), and the process returns to step 707. on the other hand,
If there is an initiator for which there is no assigned job in the assigned job storage unit 14, an assigned job determination process is performed (step 710). The result of the allocation job determination process is determined (step 711), and if there is an allocation job, the process directly returns to step 707. If there is no allocation job, the current time is updated (step 712) and then step 707. Return to.

【0024】図8は、図7のフローチャート中のステッ
プ710の割り当てジョブ決定処理部分の詳細フローチ
ャートである。
FIG. 8 is a detailed flowchart of the assigned job determination processing portion of step 710 in the flowchart of FIG.

【0025】割り当てジョブ決定処理では、始めに候補
ジョブリストに先行ジョブのないジョブ、または現在時
間に先行ジョブが全て実行を終了しているジョブの、ジ
ョブ番号のリストを設定する(ステップ801)。図3
のジョブ記憶装置30の例を用いると、候補ジョブリス
トは(1,2,4)となる。
In the allocation job determination process, first, a list of job numbers of jobs that have no preceding jobs in the candidate job list or jobs that have all completed preceding jobs at the current time is set (step 801). Figure 3
If the example of the job storage device 30 is used, the candidate job list is (1, 2, 4).

【0026】次に、候補ジョブリストのジョブの1つ1
つに対して、候補ジョブリストに対未チエックがあるか
調べる(ステップ802)。そして、未チエックのジョ
ブがあれば、候補ジョブリストからジョブを一つとりだ
し(ステップ803)、ジョブ記憶装置30から当該ジ
ョブの情報を取り出し(ステップ804)、ステップ8
05に進む。
Next, one of the jobs in the candidate job list 1
On the other hand, it is checked whether there is any unchecked job in the candidate job list (step 802). If there is an unchecked job, one job is taken out from the candidate job list (step 803), the information of the job is taken out from the job storage device 30 (step 804), and step 8
Go to 05.

【0027】ステップ805では現在時間が当該ジョブ
の開始時間を過ぎているか調べ、過ぎていなかったら、
候補ジョブリストから当該ジョブを削除し(ステップ8
10)、ステップ802に戻る。一方、現在時間が当該
ジョブの開始時間を過ぎていたらステップ806に進
み、排他関係記憶装置60から当該ジョブの排他ジョブ
を取り出す。そして、割り当てジョブ記憶部14に当該
ジョブの排他ジョブがあるか調べ(ステップ807)、
あれば、候補ジョブリストから当該ジョブを削除し(ス
テップ810)、ステップ802に戻る。割り当てジョ
ブ記憶部14に当該ジョブの排他ジョブがなかったらス
テップ808に進み、使用リソース記憶装置40から当
該ジョブの使用リソースを取り出す。そして、リソース
状態記憶部13を調べて(ステップ809)、当該ジョ
ブの使用リソースの残容量が十分なければ、候補ジョブ
リストから当該ジョブを削除し(ステップ810)、ス
テップ802に戻る。残容量が十分あれば、そのままス
テップ802に戻る。
In step 805, it is checked whether the current time has passed the start time of the job, and if not,
Delete the job from the candidate job list (step 8
10) and returns to step 802. On the other hand, if the current time has passed the start time of the job, the process proceeds to step 806, and the exclusive job of the job is fetched from the exclusion relation storage device 60. Then, it is checked whether there is an exclusive job of the job in the allocated job storage unit 14 (step 807),
If there is, the job is deleted from the candidate job list (step 810) and the process returns to step 802. If there is no exclusive job of the job in the allocated job storage unit 14, the process proceeds to step 808, and the used resource of the job is retrieved from the used resource storage device 40. Then, the resource status storage unit 13 is checked (step 809), and if the remaining capacity of the resource used by the job is not sufficient, the job is deleted from the candidate job list (step 810) and the process returns to step 802. If the remaining capacity is sufficient, the process directly returns to step 802.

【0028】上記ステップ802からステップ809ま
での具体的処理を、図3のジョブ記憶装置30の例によ
る候補ジョブリスト(1,2,4)と、図4の使用リソ
ース記憶装置40の例、図6の排他関係記憶装置60の
例、図10の(a)のリソース状態記憶部13の例、図
11の(a)の割り当てジョブ記憶部14の例を用いて
説明する。
The specific processing from step 802 to step 809 will be described with reference to the candidate job list (1, 2, 4) according to the example of the job storage device 30 of FIG. 3 and the example of the used resource storage device 40 of FIG. An example of the exclusive relationship storage device 60 of FIG. 6, an example of the resource state storage unit 13 of FIG. 10A, and an example of the allocation job storage unit 14 of FIG. 11A will be described.

【0029】候補ジョブリストからジョブ番号1のジョ
ブをとりだし(ステップ803)、ジョブ記憶装置30
からジョブ番号1のジョブ情報をとりだし(ステップ8
04)、ステップ805の判定を行う。ここで、現在時
間を9:00とすると、ジョブ番号1のジョブは開始時
間の指定なしなので、ステップ806に進み、排他関係
記憶装置60から、ジョブ番号1の排他ジョブ2,3,
4を取り出し、ステップ807の判定を行う。図11の
(a)より、割り当てジョブ記憶部14には2,3,4
のいずれのジョブもないので、ステップ808に進み、
使用リソース記憶装置40からジョブ番号1の使用リソ
ース情報を取り出し、ステップ809の判定を行う。図
10の(a)より、リソースaaaの残り容量は100
0シリンダ、リソースdddの残り容量は10台で、い
ずれもジョブ番号1のリソース使用量よりも多いので、
当該ジョブ番号1を候補ジョブリストに残し、ステップ
802に戻る。同様に、ジョブ番号2のジョブと4のジ
ョブについて処理を進めると、ジョブ番号2のジョブの
開始時間が9:12で現在時間の9:00よりも後なの
で、ジョブ番号2のジョブは候補ジョブリストから削除
され、候補ジョブリストは(1,4)となる。
The job of job number 1 is taken out from the candidate job list (step 803), and the job storage device 30
The job information of job number 1 is retrieved from (step 8
04), the determination in step 805 is performed. Here, assuming that the current time is 9:00, the start time is not specified for the job with job number 1, so the process proceeds to step 806, and the exclusive jobs 2, 3 with the job number 1 are stored in the exclusive relationship storage device 60.
4 is taken out and the judgment of step 807 is performed. From FIG. 11A, 2, 3, 4 are stored in the assigned job storage unit 14.
Since there is no job of, the process proceeds to step 808,
The used resource information of the job number 1 is retrieved from the used resource storage device 40, and the determination in step 809 is performed. From FIG. 10A, the remaining capacity of the resource aaa is 100.
Since 0 cylinders and the remaining capacity of resource ddd are 10 units, which are all larger than the resource usage amount of job number 1,
The job number 1 is left in the candidate job list and the process returns to step 802. Similarly, when the processing of the jobs with job numbers 2 and 4 is advanced, the start time of the job with job number 2 is 9:12, which is after the current time of 9:00, so the job with job number 2 is a candidate job. Deleted from the list, the candidate job list becomes (1,4).

【0030】図8のフローチャートの説明に戻り、ステ
ップ802で、候補ジョブリストに未チエックジョブが
ないことが判定されると、ステップ811に進み、候補
ジョブリストが空かどうか調べる。ここで、候補ジョブ
リストが空だった場合には、割り当てジョブ決定処理を
終了する。候補ジョブリストが空ではなかった場合に
は、候補ジョブリストから割り当てジョブを1つ選び
(ステップ812)、ジョブ記憶装置30から当該ジョ
ブの情報を取り出す(ステップ813)。そして、割り
当てジョブ記憶部14の割り当てジョブのないイニシエ
ータの1つに、割り当てジョブ番号と、終了時間を設定
する(ステップ814)。次に、使用リソース記憶装置
40から当該割り当てジョブの使用リソースを取り出し
(ステップ815)、リソース状態記憶部13の当該割
り当てジョブの使用リソースに対応するリソース名の残
容量を引く(ステップ816)。最後に、スケジュール
結果記憶装置70に当該割り当てジョブを格納する(ス
テップ817)。
Returning to the explanation of the flow chart of FIG. 8, if it is determined in step 802 that there are no unchecked jobs in the candidate job list, the process advances to step 811 to check whether the candidate job list is empty. Here, if the candidate job list is empty, the allocation job determination process ends. If the candidate job list is not empty, one assigned job is selected from the candidate job list (step 812) and the information of the job is retrieved from the job storage device 30 (step 813). Then, the assigned job number and the end time are set to one of the initiators having no assigned job in the assigned job storage unit 14 (step 814). Next, the used resource of the assigned job is retrieved from the used resource storage device 40 (step 815), and the remaining capacity of the resource name corresponding to the used resource of the assigned job of the resource status storage unit 13 is subtracted (step 816). Finally, the assigned job is stored in the schedule result storage device 70 (step 817).

【0031】上記ステップ812からステップ817の
具体的処理を、前述の例により以下に説明する。
Specific processing of steps 812 to 817 will be described below with reference to the aforementioned example.

【0032】候補ジョブリスト(1,4)のうち、ジョ
ブ番号1のジョブを割り当てジョブとして選び(ステッ
プ812)、ジョブ記憶装置30からジョブ番号1のジ
ョブの情報をとりだす(ステップ813)。次に、図1
1の(a)の割り当てジョブ記憶部14のイニシエータ
番号1の割り当てジョブ番号に1を設定し、終了時間
に、現在時間9:00にジョブ番号1の処理時間15分
を足した時間9:15を設定する(ステップ814)。
この結果、割り当てジョブ記憶部14は図11の(b)
の状態になる。
From the candidate job list (1, 4), the job of job number 1 is selected as the allocation job (step 812), and the information of the job of job number 1 is retrieved from the job storage device 30 (step 813). Next, FIG.
1 (a), the assigned job number of the initiator number 1 in the assigned job storage unit 14 is set to 1, and the end time is obtained by adding 15 minutes of the processing time of the job number 1 to the current time of 9:00. Is set (step 814).
As a result, the allocated job storage unit 14 is shown in FIG.
It becomes the state of.

【0033】次に、使用リソース記憶装置50からジョ
ブ番号1の使用リソースをとりだし(ステップ81
5)、図10の(a)のリソース状態記憶部13のリソ
ース名aaaの残容量に、1000シリンダから使用量
100シリンダを引いた900シリンダを設定し、リソ
ース名dddの残容量に、10台から4台を引いた6台
を設定する(ステップ816)。この結果、リソース状
態記憶部13は、図10の(b)の状態になる。
Next, the used resource of job number 1 is taken out from the used resource storage device 50 (step 81).
5), 900 cylinders obtained by subtracting the usage amount 100 cylinders from 1000 cylinders are set to the remaining capacity of the resource name aaa in the resource state storage unit 13 of FIG. 10A, and the remaining capacity of the resource name ddd is set to 10 units. Then, 6 units are set by subtracting 4 units from (Step 816). As a result, the resource state storage unit 13 becomes the state of (b) of FIG.

【0034】最後に、スケジュール結果記憶装置70の
ジョブ番号1に、割り当てジョブを格納する(ステップ
817)。図12は、スケジュール結果記憶装置70の
例である。例えば、今割り当てジョブとなっているジョ
ブ番号1のジョブは、実行開始時間が9:00で、実行
終了時間が9:15といった情報で構成される。
Finally, the assigned job is stored in the job number 1 of the schedule result storage device 70 (step 817). FIG. 12 is an example of the schedule result storage device 70. For example, the job with the job number 1 which is the currently assigned job has information such that the execution start time is 9:00 and the execution end time is 9:15.

【0035】図9は、図7のフローチャート中のステッ
プ712の現在時間更新処理部分の詳細フローチャート
である。
FIG. 9 is a detailed flowchart of the current time update processing portion of step 712 in the flowchart of FIG.

【0036】まず、現在時間を前に進めて(ステップ9
01)、割り当てジョブ記憶部14に終了時間が現在時
間より前のジョブ(終了ジョブ)があるか調べ(ステッ
プ902)、なければ、現在時間更新処理を終了する。
一方、終了ジョブがあれば、使用リソース記憶装置40
から終了ジョブの使用リソースを取り出す(ステップ9
03)。そして、リソース状態記憶部13の当該終了ジ
ョブの使用リソースに対応するリソース名の残容量に、
当該終了ジョブの使用量を足し(ステップ904)、割
り当てジョブ記憶部14から当該終了ジョブを外す(ス
テップ905)。
First, the current time is advanced (step 9
01), it is checked whether there is a job (finished job) whose end time is earlier than the current time in the allocated job storage unit 14 (step 902).
On the other hand, if there is an end job, the used resource storage device 40
The resource used by the end job is retrieved from (step 9)
03). Then, in the remaining capacity of the resource name corresponding to the used resource of the end job in the resource status storage unit 13,
The usage amount of the end job is added (step 904), and the end job is removed from the assigned job storage unit 14 (step 905).

【0037】前述の例で説明すると、現在時間9:00
で、リソース状態記憶部13が図10の(b)の状態
で、割り当てジョブ記憶部14が図11の(b)の状態
の時、現在時間を9:15に更新した場合、ジョブ番号
1のジョブは終了ジョブとなる。このとき、現在時間更
新処理では、使用リソース記憶装置40から、ジョブ番
号1の使用リソースを取り出し(ステップ903)、図
10の(b)のリソース名aaaの残容量900のシリ
ンダに使用量100シリンダを足した1000シリンダ
を残容量に、リソース名dddの残容量6台に4台を足
した10台をそれぞれの残容量に設定する(ステップ9
04)。これでリソース状態記憶部13は、図10の
(a)の状態になる。また、図11の(b)のイニシエ
ータ番号1の割り当てジョブ番号の1と終了時間9:1
5をなしにする(ステップ905)。これで割り当てジ
ョブ記憶部14も、図11の(a)の状態になる。
In the above example, the current time is 9:00.
When the resource status storage unit 13 is in the state of FIG. 10B and the assigned job storage unit 14 is in the state of FIG. 11B, if the current time is updated to 9:15, The job is an end job. At this time, in the current time update processing, the used resource of job number 1 is taken out from the used resource storage device 40 (step 903), and the usage amount of 100 cylinders is used for the cylinder of the remaining capacity 900 of the resource name aaa in FIG. The remaining capacity is set to 1000 cylinders obtained by adding 4 to the remaining capacity 6 of the resource name ddd, and the remaining capacity is set to 10 units (step 9).
04). The resource state storage unit 13 is now in the state shown in FIG. Also, as shown in FIG. 11B, the assigned job number 1 of the initiator number 1 and the end time 9: 1
No. 5 is set (step 905). As a result, the assigned job storage unit 14 also enters the state shown in FIG.

【0038】[0038]

【発明の効果】請求項1の発明によれば、ジョブのスケ
ジュール作成において、リソースによるジョブの排他制
御をスケジュール作成時に行うため、実行時にリソース
が確保できずにスケジュール通りに実行できないジョブ
がなくなり、計算機の運転を予定通りに終了することが
出来る。
According to the first aspect of the invention, when creating a job schedule, exclusive control of jobs by resources is performed at the time of creating a schedule. Therefore, there are no jobs that cannot be secured as resources and cannot be executed as scheduled. The operation of the computer can be finished as scheduled.

【0039】また、請求項2の発明によれば、共用/排
他のあるリソースの場合はあらかじめジョブ間の排他関
係を生成して記憶しておくことにより、個々のリソース
名をスケジュール時に管理せずに済むので、メモリ使用
量が少なくて済む。
According to the second aspect of the invention, in the case of a resource with sharing / exclusion, an exclusive relationship between jobs is generated and stored in advance, so that individual resource names are not managed at the time of scheduling. Therefore, the memory usage is small.

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

【図1】本発明の一実施例のスケジュール作成システム
の構成図である。
FIG. 1 is a configuration diagram of a schedule creating system according to an embodiment of the present invention.

【図2】使用ファイル記憶装置の各ジョブに対する使用
ファイルの具体例を示す図である。
FIG. 2 is a diagram showing a specific example of a used file for each job in a used file storage device.

【図3】ジョブ記憶装置のジョブ情報の具体例を示す図
である。
FIG. 3 is a diagram showing a specific example of job information in a job storage device.

【図4】使用リソース記憶装置の各ジョブに対する使用
リソースの具体例を示す図である。
FIG. 4 is a diagram showing a specific example of used resources for each job in a used resource storage device.

【図5】リソース記憶装置のリソース情報の具体例を示
す図である。
FIG. 5 is a diagram showing a specific example of resource information of a resource storage device.

【図6】排他関係記憶装置のジョブ間の排他関係の具体
例を示す図である。
FIG. 6 is a diagram showing a specific example of an exclusive relationship between jobs in an exclusive relationship storage device.

【図7】スケジュール作成装置におけるスケジュール作
成部の処理の全体的フローチャートである。
FIG. 7 is an overall flowchart of processing of a schedule creating unit in the schedule creating apparatus.

【図8】図7中の割り当てジョブ決定処理の詳細フロー
チャートである。
FIG. 8 is a detailed flowchart of an assigned job determination process in FIG.

【図9】図7中の現在時間更新処理の詳細フローチャー
トである。
9 is a detailed flowchart of a current time update process in FIG.

【図10】スケジュール作成装置のリソース状態記憶部
の具体例を示した図である。
FIG. 10 is a diagram showing a specific example of a resource status storage unit of the schedule creation device.

【図11】スケジュール作成装置の割り当てジョブ記憶
部の具体例を示した図である。
FIG. 11 is a diagram showing a specific example of an assigned job storage unit of the schedule creation device.

【図12】スケジュール結果記憶装置の具体例を示した
図である。
FIG. 12 is a diagram showing a specific example of a schedule result storage device.

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

10 スケジュール作成装置 11 排他関係生成部 12 スケジュール作成部 13 リソース状態記憶部 14 割り当てジョブ記憶部 20 使用ファイル記憶装置 30 ジョブ記憶装置 40 使用リソース記憶装置 50 リソース記憶装置 60 排他関係記憶装置 70 スケジュール結果記憶装置 10 Schedule Creation Device 11 Exclusive Relationship Generation Unit 12 Schedule Creation Unit 13 Resource State Storage Unit 14 Assigned Job Storage Unit 20 Used File Storage Device 30 Job Storage Device 40 Used Resource Storage Device 50 Resource Storage Device 60 Exclusive Relationship Storage Device 70 Schedule Result Storage apparatus

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 計算機システムにおけるジョブのスケジ
ュールを自動作成する方法において、ジョブの使用する
リソースの状態を記憶する手段と、各ジョブの使用する
リソースとその共用/排他を記憶する手段とを設け、ジ
ョブの割当時に、当該ジョブの使用するリソースが使用
可能状態にある時のみ割り当てを行うことを特徴とした
ジョブスケジュール作成方法。
1. A method for automatically creating a job schedule in a computer system, comprising means for storing the state of resources used by jobs, and means for storing resources used by each job and their sharing / exclusion. A job schedule creating method characterized in that when a job is assigned, the assignment is performed only when the resource used by the job is in an available state.
【請求項2】 請求項1記載のジョブスケジュール作成
方法において、共用/排他のあるリソースに関してはジ
ョブの使用するリソース情報をジョブ間の排他関係に書
き換えて記憶する手段を有し、該ジョブ間の排他関係に
より使用リソースによるジョブの排他制御を行うことを
特徴としたジョブスケジュール作成方法。
2. The job schedule creation method according to claim 1, further comprising means for rewriting and storing resource information used by jobs for resources with sharing / exclusion in an exclusive relationship between jobs, and A job schedule creation method characterized by performing exclusive control of jobs by resources used in an exclusive relationship.
JP6951693A 1993-03-29 1993-03-29 Job schedule generating method Pending JPH06282446A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6951693A JPH06282446A (en) 1993-03-29 1993-03-29 Job schedule generating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6951693A JPH06282446A (en) 1993-03-29 1993-03-29 Job schedule generating method

Publications (1)

Publication Number Publication Date
JPH06282446A true JPH06282446A (en) 1994-10-07

Family

ID=13404978

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6951693A Pending JPH06282446A (en) 1993-03-29 1993-03-29 Job schedule generating method

Country Status (1)

Country Link
JP (1) JPH06282446A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6643680B1 (en) 1997-05-26 2003-11-04 Nec Electronics Corporation Signal processing system which can reduce burden applied to a CPU or a signal processor
JP2005346433A (en) * 2004-06-03 2005-12-15 Hitachi Ltd Program execution reservation method, device, processing program therefor and program execution system
JP2009059355A (en) * 2008-08-15 2009-03-19 Hitachi Ltd Program execution reserving method and device, its processing program, and program execution system
JP2011034510A (en) * 2009-08-05 2011-02-17 Toshiba Corp Memory allocation device and memory allocation method
JP2011248724A (en) * 2010-05-28 2011-12-08 Fujitsu Ltd Management device, management method, and management program

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6643680B1 (en) 1997-05-26 2003-11-04 Nec Electronics Corporation Signal processing system which can reduce burden applied to a CPU or a signal processor
JP2005346433A (en) * 2004-06-03 2005-12-15 Hitachi Ltd Program execution reservation method, device, processing program therefor and program execution system
US7779413B2 (en) 2004-06-03 2010-08-17 Hitachi, Ltd. Method of assigning available resources for internal and external users at start time of scheduled time period based on program reservations information
JP2009059355A (en) * 2008-08-15 2009-03-19 Hitachi Ltd Program execution reserving method and device, its processing program, and program execution system
JP2011034510A (en) * 2009-08-05 2011-02-17 Toshiba Corp Memory allocation device and memory allocation method
JP2011248724A (en) * 2010-05-28 2011-12-08 Fujitsu Ltd Management device, management method, and management program
US8832701B2 (en) 2010-05-28 2014-09-09 Fujitsu Limited Management apparatus, management system, and recording medium for recording management program

Similar Documents

Publication Publication Date Title
US7779413B2 (en) Method of assigning available resources for internal and external users at start time of scheduled time period based on program reservations information
US5991793A (en) Resource allocation method in computer system
US5642508A (en) Distributed control method and apparatus for job execution
HU216474B (en) Method of sharing virtual memory of a computer system into address spaces with predetermined partition size
JP3113841B2 (en) Parallel transaction processing system
JPH06282446A (en) Job schedule generating method
JP2839590B2 (en) Instruction assignment device and instruction assignment method
US7159012B2 (en) Computational data processing system and computational process implemented by means of such a system
JP3114149B2 (en) Schedule automatic creation processing method
US7234142B1 (en) Task processing system
JP3198604B2 (en) Continuous schedule management system
CN117492917A (en) Container migration processing method and device
EP0867811A1 (en) Accounting-information outputting device
JPH0833856B2 (en) Serial number management method
JPH0973406A (en) Area using method and device for the method
JPH03233637A (en) Schedule preparing system
JP2968756B2 (en) Internal resource matching method and apparatus in multiprocessor system
JPH0743664B2 (en) Shared storage area allocation processing method
JPH0644185A (en) Method for managing variable of catalog in interactive processing system
JPH07210600A (en) Device and method for preparing schedule
JPS58225469A (en) Multi-processor controlling system
JPH02120931A (en) External file allocation system for sort
JPH096598A (en) Automatic resources allotting device
JPH04328640A (en) Remote program start control system
JPH0495120A (en) Data storage device assigning system