JPH02158841A - Effectively using system for idle cpu - Google Patents

Effectively using system for idle cpu

Info

Publication number
JPH02158841A
JPH02158841A JP31412788A JP31412788A JPH02158841A JP H02158841 A JPH02158841 A JP H02158841A JP 31412788 A JP31412788 A JP 31412788A JP 31412788 A JP31412788 A JP 31412788A JP H02158841 A JPH02158841 A JP H02158841A
Authority
JP
Japan
Prior art keywords
job
cpu
batch job
time
batch
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
JP31412788A
Other languages
Japanese (ja)
Inventor
Yoshitaka Furuya
古谷 芳孝
Nobuyuki Hayama
端山 信幸
Hisato Hirai
平井 壽人
Yoshiaki Yoshida
善田 義昭
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.)
KANSAI NIPPON DENKI SOFTWARE KK
Original Assignee
KANSAI NIPPON DENKI SOFTWARE KK
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 KANSAI NIPPON DENKI SOFTWARE KK filed Critical KANSAI NIPPON DENKI SOFTWARE KK
Priority to JP31412788A priority Critical patent/JPH02158841A/en
Publication of JPH02158841A publication Critical patent/JPH02158841A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To execute a batch job by using the time of an idle CPU without exercising influence upon other batch job by giving the decision value of the idle condition of the CPU to a low precedence job executing means. CONSTITUTION:In the case where it is desired to execute the batch job by using the time of the idle CPU without exercising influence upon other batch job, the batch job is set by taking characteristics such as the use time of the CPU by the other batch job, the used quantity of a memory and the quantity of use time of input/output into consideration as the dynamic decision value and the static decision value of the idle condition of the CPU. Thus, the idle condition of the CPU extending over the various classes of a schedule can be decided, and it becomes possible to execute the batch job by using the time of the idle CPU without exercising influence upon other batch job. Besides, even in the case where the batch job to take several days is executed in computer system whose working time is fixed, it is execute by using the time of the idle CPU without being conscious of these at all.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明の空きCPUの有効利用方式は、1日の稼働する
時間が決まっている計算機システムで、処理に数日間必
要なバッチジョブを他のバッチジョブに影響を与えない
で実行させる空きCPUの有効利用方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The method of effectively utilizing a vacant CPU of the present invention is a computer system in which the operating hours per day are fixed, and batch jobs that require several days to be processed are transferred to other computers. The present invention relates to a method for effectively utilizing free CPU to execute batch jobs without affecting them.

〔従来の技術〕[Conventional technology]

バッチジョブを処理する計算機システムで、1日の計算
機システムを稼働する時間が決まっている計算機システ
ムにおいて、処理に数日間必要なバッチジョブを他のバ
ッチジョブに影響のないようにCPUの空いている時間
で動かすには、このバッチジョブの優先度順位を他のジ
ョブより低くし、計算機システムの稼働終了時には、こ
のバッチジョブの実行を中断しメモリ内容をディスクへ
出力し、計算機システムの次の稼働開始後にディスクか
らメモリヘロードし実行を再開するという処理を、プロ
グラマ−あるいは計算機システムの操作員が意識して行
なう必要があった。
In a computer system that processes batch jobs, in a computer system where the operating time of the computer system per day is fixed, batch jobs that require several days to be processed must be processed so that the CPU is free so as not to affect other batch jobs. To run by time, set the priority of this batch job lower than other jobs, and when the computer system finishes running, interrupt the execution of this batch job, output the memory contents to disk, and start the next run of the computer system. After starting, the programmer or computer system operator had to consciously carry out the process of loading the program from disk to memory and restarting execution.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の技術の優先度順位を低くする方法では、
実行するか停止するかのどちらかであり、他のバッチジ
ョブの計算機システムの資源の利用状況や緊急性などの
特性を考えたきめこまかな制御ができない、処理に数日
間必要なバッチジョブを実行するには、計算機システム
の稼働終了時には、プログラマあるいは計算機システム
の操作員が意識してこのバッチジョブの実行を中断し、
メモリ内容をディスクへ出力する。そして、計算機シス
テムの稼働開始時には、プログラマあるいは計算機シス
テムの操作員が意識してディスクからメモリヘロードし
て、このバッチジョブの実行を再開する必要がある。従
って処理に数日間を要すバッチジョブは、上述の操作を
意識せずに自動でできないという欠点がある。
In the method of lowering the priority of the conventional technology described above,
Executing a batch job that requires several days to process, which either executes or stops, and which cannot be precisely controlled by considering other batch jobs' characteristics such as computer system resource usage and urgency. When the computer system finishes running, the programmer or computer system operator must consciously interrupt the execution of this batch job.
Outputs memory contents to disk. Then, when the computer system starts operating, the programmer or computer system operator must consciously load the data from the disk to the memory and restart the execution of this batch job. Therefore, batch jobs that require several days to process have the disadvantage that they cannot be performed automatically without being aware of the above-mentioned operations.

〔課題を解決するための手段〕 本発明の空きCPUの有効利用方式は、処理に数日間を
必要とするバッチジョブの実行中は、定期的にCPUの
負荷状態を調べ、CPUの空き条件を満足しているか否
かの判定を行ない、前記空き条件を満足していれば継続
して前記バッチジョブを実行し、前記空き条件を満足し
ていなければ実行を中断してこの前記バッチジョブのメ
モリ内容をディスク外部記憶装置に出力し、前記空き条
件を満足する状態になければ前記外部記憶装置から主メ
モリにロードして実行を再開する低優先度ジョブ実行手
段と、 指定時刻あるいは計算機システムの稼働終了時には、前
記バッチジョブの実行を中断して主メモリ内容をディス
クに出力するジョブ終了手段と、指定時刻あるいは計算
機システムの稼働開始時には、前記外部記憶装置から主
メモリにロードして前記バッチジョブの実行を再開する
ジョブ開始手段とを備えて構成される。
[Means for Solving the Problems] The method of effectively utilizing a free CPU of the present invention is to periodically check the CPU load status and check the CPU free condition during the execution of a batch job that requires several days to process. It is determined whether or not the free space condition is satisfied, and if the free space condition is satisfied, the batch job is continued to be executed, and if the free space condition is not satisfied, the execution is interrupted and the memory of this batch job is a low-priority job execution means that outputs the content to a disk external storage device and, if the free space condition is not satisfied, loads the job from the external storage device to main memory and resumes execution; At the time of termination, job termination means interrupts the execution of the batch job and outputs the main memory contents to disk, and at a specified time or when the computer system starts operating, the job termination means loads the contents of the batch job from the external storage device to the main memory. and job starting means for restarting execution.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図(a)〜(c)は本発明の一実施例の構成を示す
流れ図、第2図は本発明で用いられるCPU空き条件の
判定方法の一例を説明する図表である。
FIGS. 1(a) to 1(c) are flowcharts showing the configuration of an embodiment of the present invention, and FIG. 2 is a chart explaining an example of a method for determining CPU availability conditions used in the present invention.

本実施例は第1図(a)に示す低優先度ジョブ実行手段
1と、第1図(b)に示すジョブ終了手段2と、第1図
(C)に示すジョブ開始手段3とを備えている。
This embodiment includes a low priority job execution means 1 shown in FIG. 1(a), a job termination means 2 shown in FIG. 1(b), and a job start means 3 shown in FIG. 1(C). ing.

まず、本発明のうち低優先度ジョブ実行手段1を第1図
(a)に基づき説明する。
First, the low priority job execution means 1 of the present invention will be explained based on FIG. 1(a).

他のバッチジョブに影響を与えないで処理に数日間を必
要とするバッチジョブを低優先度ジョブとし、この低優
先度ジョブが計算機システムで実行されると、CPUの
負荷状態を調べCPUの空き条件を満足しているか否か
の判定を行なう(ステップ1−1)、ここで、CPUの
空き条件を満足していれば、低優先度ジョブの処理が継
続して実行され(ステップ1−2)、一定の時間がたつ
と低優先度ジョブは終了したか否かの判定を行ないくス
テップ1−3)、終了していなければ、再度ステップ1
−1に示すCPtJの空き条件を満足しているかの判定
を行なう。
A batch job that requires several days to process without affecting other batch jobs is set as a low-priority job, and when this low-priority job is executed on a computer system, the CPU load status is checked and CPU free space is checked. It is determined whether the conditions are satisfied (step 1-1). If the CPU availability condition is satisfied, the processing of the low priority job is continued (step 1-2). ), after a certain period of time, it is determined whether the low-priority job has finished or not (steps 1-3), and if it has not finished, repeat step 1
It is determined whether the CPtJ availability condition shown in -1 is satisfied.

この時、CPUの空き条件を満足していなければ主メモ
リの内容を磁気ディスクなどで構成される外部記憶装置
へ出力しくステップ・1−4)、低優先度ジョブの実行
を中断し低優先度ジョブの停止を行なう(ステップ1−
5)。そして一定の時間がたつとCPUの空き条件を満
足しているか否かの判定を行ない、(ステップ1−6)
、CPUの空き条件を満足していなければ引き続き低優
先度ジョブの停止となり(ステップ1−5)、CPUの
空き条件を満足していれば外部記憶装置から主メモリに
ロードを行ない(ステップ1−7)、低優先度ジョブの
実行により処理が再開される(ステップ1−2)。この
一連の処理を行ないステップ1−3の低優先度ジョブが
終了したか否かの判定を行い終了していればこの処理は
終りとなる。
At this time, if the CPU free space condition is not satisfied, the contents of the main memory will be output to an external storage device such as a magnetic disk (Step 1-4), the execution of the low priority job will be interrupted, and the low priority job will be suspended. Stop the job (Step 1-
5). Then, after a certain period of time, it is determined whether the CPU availability condition is satisfied (step 1-6).
If the CPU availability condition is not satisfied, the low-priority job continues to be stopped (step 1-5), and if the CPU availability condition is satisfied, the job is loaded from the external storage device to the main memory (step 1-5). 7) Processing is restarted by executing the low priority job (step 1-2). After performing this series of processing, it is determined whether or not the low priority job in step 1-3 has been completed, and if it has been completed, this processing is over.

ここで、第1図(a>の一連の処理の制御を行なってい
る間に、この制御の終了を指定した時刻あるいは計算機
システムの稼働終了時になると、第1図(b)に示すジ
ョブ終了手段2の制御により終了時刻の判定があると(
ステップ2−1)主メモリの内容を外部処理装置へ出力
し、低優先度ジョブの停止で実行が中断される(ステッ
プ2−3)や計算機システムの稼働終了時でなければ低
優先度ジョブ実行手段1が実行される。
Here, while the series of processes shown in FIG. 1(a) is being controlled, when the specified time to end this control or the end of operation of the computer system is reached, the job ending means shown in FIG. 1(b) is executed. When the end time is determined by the control in step 2 (
Step 2-1) Output the contents of the main memory to an external processing device, and execute the low-priority job unless the execution is interrupted due to the stop of the low-priority job (Step 2-3) or when the computer system has finished operating. Means 1 is executed.

又、処理開始を指定した時刻あるいは計算機システムの
稼働開始時刻になると、第1図(c)に示すジョブ開始
手段3の制御により開始時刻の判定があると(ステップ
3−1)先に格納された外部処理装置の内容をこれから
主メモリにロードしくステップ3−2)低優先度ジョブ
の実行が再開され(ステップ3−3>、第1図(a)に
示す低優先度ジョブの実行手段1が実行される。
Furthermore, when the specified time to start processing or the start time of the computer system comes, if the start time is determined by the control of the job starting means 3 shown in FIG. 1(c) (step 3-1), the job is stored first. The content of the external processing device that has been stored will now be loaded into the main memory (step 3-2). The execution of the low-priority job is resumed (step 3-3>, and the low-priority job execution means 1 shown in FIG. 1(a) is executed.

第1′図のステップ1−1および1−6のCPUの空き
条件を満足しているかの判定条件には、動的判定と静的
判定およびその両者を組み合せによる混合判定とがあり
、第2図のようにスケジュールクラスとしてクラスA、
クラスB、クラスCおよび低優先度ジョブクラスLとが
ある場合に、判定時のそれぞれのクラスの実行件数をi
’l @ g n bl n 6とする。この場合、動
的判定は動的判定値として実行ジョブの重み値をm、。
The conditions for determining whether the CPU availability conditions in steps 1-1 and 1-6 in Figure 1' are satisfied include dynamic determination, static determination, and mixed determination by combining both. As shown in the diagram, class A is the schedule class.
If there are class B, class C, and low priority job class L, the number of executions of each class at the time of judgment is i
'l @ g n bl n 6. In this case, the dynamic determination uses the weight value of the executed job as the dynamic determination value m.

mb 、m、とじ実行ジョブ重みの最大値をm@@Xと
設定すると nu Xm、+nb xmb+na Xmo <mma
xの条件式を満足しているか否かで行なう。又、静的判
定は静的判定値として許容実行件数をN1゜Nb、N、
とし、最大許容実行、件数をN 1mmkと設定すると
、 n1≦N1 かつnb≦Nb かつno≦N。
mb, m, if the maximum value of the binding execution job weight is set as m@@X, nu Xm, +nb xmb+na Xmo <mma
This is done depending on whether the conditional expression of x is satisfied. In addition, for static judgment, the allowable number of executions is N1°Nb, N, as a static judgment value.
If the maximum allowable execution and the number of cases are set to N 1mmk, then n1≦N1 and nb≦Nb and no≦N.

かつn、+nb+no≦N @ax の条件式を満足しているか否かで行なう。さらに、両者
を組み合せた混合判定も可能となる。
The determination is made based on whether or not the conditional expression n, +nb+no≦N@ax is satisfied. Furthermore, it is also possible to perform a mixed determination by combining the two.

従って本実施例は、他のバッチジョブに影響を与えない
で空いているCPU時間を使ってバッチジョブを実行し
たい場合には、CPUの空き条件の動的判定値ならびに
静的判定値に他のバッチジョブのCPUの使用時間量、
メモリ使用量、入出力の使用時間量といった特性を考え
て設定することにより、スケジュールのクラス間にまた
がるCPUの空き条件が判定でき、他のバッチジョブに
影響を与えることなく空いているCPUの時間を使って
実行することが可能になる。
Therefore, in this embodiment, if you want to execute a batch job using free CPU time without affecting other batch jobs, you can set other values to the dynamic judgment value and static judgment value of the CPU free condition. Amount of CPU usage time for batch jobs,
By considering characteristics such as memory usage and input/output time usage, you can determine the CPU free conditions that span classes in the schedule, and calculate the free CPU time without affecting other batch jobs. It can be executed using .

又、稼働時間が決まっている計算機システムにおいて、
数日間必要なバッチジョブを実行する場合にも、これら
を何ら意識することなく空いているCPU時間を使って
実行することが可能となる。
In addition, in computer systems whose operating hours are fixed,
Even when executing a batch job that requires several days, it is possible to execute it using available CPU time without being aware of it.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、他のバッチジョブに影響
を与えないで空いているCPU時間を使ってバッチジョ
ブを実行したい場合には、CPUの空き条件の判定値を
低優先度ジョブ実行手段に与えることにより、他のバッ
チジョブに影響を与えることなく空いているCPUの時
間を使って実行することが可能となる。
As explained above, in the present invention, when it is desired to execute a batch job using free CPU time without affecting other batch jobs, the judgment value of the CPU free condition is set to a low priority job execution means. By giving a batch job to , it is possible to execute the job using vacant CPU time without affecting other batch jobs.

又、計算機システムの稼働時間に制限のある場合、その
制限を越えてバッチジョブを実行する場合にも、何ら意
識することなく空いているCPU時間を使って実行する
ことが可能となる。
Furthermore, when there is a limit on the operating time of the computer system, even if a batch job is executed beyond the limit, it is possible to execute the batch job using the available CPU time without any conscious effort.

これにより、プログラマあるいは計算機システムの操作
員に何ら負担増がなく空いているCPUの有効利用が可
能となる。
This makes it possible to effectively utilize the vacant CPU without any increase in the burden on the programmer or the operator of the computer system.

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

第1図(a)〜(C)は本発明の一実施例の構成を示す
流れ図、第2図は本発明で用いられるCPU空き条件の
判定方法の一例を示す説明図。 1・・・低優先度ジョブ実行手段、2・・・ジョブ終了
手段、3・・・ジョブ開始手段。
1A to 1C are flowcharts showing the configuration of an embodiment of the present invention, and FIG. 2 is an explanatory diagram showing an example of a method for determining CPU availability conditions used in the present invention. 1...Low priority job execution means, 2...Job termination means, 3...Job start means.

Claims (1)

【特許請求の範囲】 処理に数日間を必要とするバッチジョブの実行中は、定
期的にCPUの負荷状態を調べ、CPUの空き条件を満
足しているか否かの判定を行ない、前記空き条件を満足
していれば継続して前記バッチジョブを実行し、前記空
き条件を満足していなければ実行を中断してこの前記バ
ッチジョブのメモリ内容をディスク外部記憶装置に出力
し、前記空き条件を満足する状態になければ前記外部記
憶装置から主メモリにロードして実行を再開する低優先
度ジョブ実行手段と、 指定時刻あるいは計算機システムの稼働終了時には、前
記バッチジョブの実行を中断して主メモリ内容をディス
クに出力するジョブ終了手段と、指定時刻あるいは計算
機システムの稼働開始時には、前記外部記憶装置から主
メモリにロードして前記バッチジョブの実行を再開する
ジョブ開始手段とを備えて成ることを特徴とする空きC
PUの有効利用方式。
[Scope of Claims] During the execution of a batch job that requires several days to process, the load status of the CPU is periodically checked and it is determined whether the CPU availability condition is satisfied, and the CPU availability condition is determined. If the above-mentioned free space condition is satisfied, the batch job is continued to be executed, and if the free space condition is not satisfied, the execution is interrupted, the memory contents of this batch job are output to a disk external storage device, and the free space condition is satisfied. a low-priority job execution unit that loads the batch job from the external storage device into the main memory and resumes execution if the state is not satisfactory; A job finishing means outputs the contents to a disk, and a job starting means loads the content from the external storage device to the main memory and resumes execution of the batch job at a specified time or when the computer system starts operating. Featured vacancy C
Effective use method of PU.
JP31412788A 1988-12-12 1988-12-12 Effectively using system for idle cpu Pending JPH02158841A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31412788A JPH02158841A (en) 1988-12-12 1988-12-12 Effectively using system for idle cpu

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31412788A JPH02158841A (en) 1988-12-12 1988-12-12 Effectively using system for idle cpu

Publications (1)

Publication Number Publication Date
JPH02158841A true JPH02158841A (en) 1990-06-19

Family

ID=18049569

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31412788A Pending JPH02158841A (en) 1988-12-12 1988-12-12 Effectively using system for idle cpu

Country Status (1)

Country Link
JP (1) JPH02158841A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05197570A (en) * 1992-01-21 1993-08-06 Nec Software Kansai Ltd Dynamic scheduling device for job
WO2011111155A1 (en) 2010-03-08 2011-09-15 富士通株式会社 Biometric authentication device, biometric authentication program and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05197570A (en) * 1992-01-21 1993-08-06 Nec Software Kansai Ltd Dynamic scheduling device for job
WO2011111155A1 (en) 2010-03-08 2011-09-15 富士通株式会社 Biometric authentication device, biometric authentication program and method
US9013271B2 (en) 2010-03-08 2015-04-21 Fujitsu Limited Biometric authentication apparatus and method

Similar Documents

Publication Publication Date Title
US6021425A (en) System and method for optimizing dispatch latency of tasks in a data processing system
US9870252B2 (en) Multi-threaded processing with reduced context switching
US7739685B2 (en) Decoupling a central processing unit from its tasks
US7441240B2 (en) Process scheduling apparatus, process scheduling method, program for process scheduling, and storage medium recording a program for process scheduling
US5428789A (en) Method and apparatus for optimizing user response time in a priority preemptive operating system
US8145820B2 (en) Multiprocessor system and computer program product
US9588808B2 (en) Multi-core system performing packet processing with context switching
CN100382033C (en) Computer system
KR20130066900A (en) Method to guarantee real time for soft real time operating system
CN114461365A (en) Process scheduling processing method, device, equipment and storage medium
JPH02158841A (en) Effectively using system for idle cpu
JP2636722B2 (en) Multitask execution management method
JP2001282560A (en) Virtual computer control method, its performing device and recording medium recording its processing program
JPH0588917A (en) Job scheduling system
JPS6388646A (en) Job corresponding cpu resource averaging system
JP6255721B2 (en) Process allocation apparatus, process allocation method, and process allocation program
JP2019204387A (en) Program execution control method and program converter
CN110109743B (en) Real-time process scheduling method
EP4167087A1 (en) Systems and methods for regulating memory utilization for coprocessors
JPH07109590B2 (en) Multiple job start control method
JPH01180641A (en) Balancing system for cpu source
JP3080069B2 (en) Job scheduling method
JPS63636A (en) Task control system
JP3797274B2 (en) Firmware dispatch method, method, and program
JPH0424828A (en) Multi-task control system