JPH03260838A - Limiting system for cpu using time - Google Patents

Limiting system for cpu using time

Info

Publication number
JPH03260838A
JPH03260838A JP6071790A JP6071790A JPH03260838A JP H03260838 A JPH03260838 A JP H03260838A JP 6071790 A JP6071790 A JP 6071790A JP 6071790 A JP6071790 A JP 6071790A JP H03260838 A JPH03260838 A JP H03260838A
Authority
JP
Japan
Prior art keywords
job
task
cpu
forcibly
time limit
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
JP6071790A
Other languages
Japanese (ja)
Inventor
Aiko Kumagai
愛子 熊谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP6071790A priority Critical patent/JPH03260838A/en
Publication of JPH03260838A publication Critical patent/JPH03260838A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the malfunction of jobs by providing a job abort flag/abort flag setting means, a forcible end range judging means, a job forcible end means, and a task forcible end means. CONSTITUTION:An abort flag setting means 3 turns on a job abort flag 1 when the designation is previously applied so as to forcibly end a job when a task used a CPU until the limit time. A forcible end range judging means 4 refers to the flag 1 when the task used the CPU up to the limit time and transfers the control to a job forcible end means 5 when an ON state of the flag 1 is decided. The means 5 ends forcibly a main task including the task that used the CPU until the limit time and then refers to a task control structure 2 to end the processing if no subtask is included in the job. Thus it is possible to prevent the job malfunction due to a fact that a task used the CPU until the limit time and was forcibly ended.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は並列に実行できる複数の1タスクから構成され
ているジョブが実行される電子計算機システムの処理に
関し、特にそのような電子計算機システムにおいてタス
クのCPLJ (CentralProcessing
  Unit)使用時間の制限を管理するCPU使用時
間制限方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to processing in a computer system in which a job consisting of a plurality of tasks that can be executed in parallel is executed, and particularly in such a computer system. Task CPLJ (CentralProcessing
Unit) relates to a CPU usage time restriction method for managing usage time restrictions.

〔従来の技術〕[Conventional technology]

従来、この種のCPU使用時間制限方式では、タスクが
CPUを制限時間まで使用した時点で、そのタスクが強
制終了させられていた。
Conventionally, in this type of CPU usage time limit system, when a task uses the CPU up to the time limit, the task is forcibly terminated.

なお、上述の電子計算機システムでは、並列に実行でき
る複数のタスクによって1つのジョブが構成されており
、ジョブ内のタスクは互いに関連性を有している。
Note that in the above-mentioned computer system, one job is composed of a plurality of tasks that can be executed in parallel, and the tasks within a job are related to each other.

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

上述した従来のCPU使用時間制限方式では、タスクが
CPUを制限時間まで使用した時点でそのタスクが強制
終了させられており、ジョブ内のタスクは互いに関連性
があるので、1つのタスクがCPUを制限時間まで使用
し強制終了させられると、そのタスクを含むジョブが誤
動作を起こす可能性が生じるという欠点がある。
In the conventional CPU usage time limit method described above, a task is forcibly terminated when it uses the CPU up to the limit time, and since the tasks within a job are related to each other, one task may If a task is used until the time limit is reached and then forced to terminate, the job including the task may malfunction.

本発明の目的は、上述の点に鑑み、1つのタスクがCP
Uを制限時間まで使用し強制終了させられたことに起因
するジョブの誤動作を防止することができるCPU使用
時間制限方式を提供することにある。
In view of the above points, an object of the present invention is to
An object of the present invention is to provide a CPU usage time limiting method that can prevent malfunctions of jobs caused by forced termination of a job after using it until the time limit.

〔課題を解決するための手段〕 本発明のCPU使用時間制限方式は、並列に実行できる
複数のタスクから構成されているジョブが実行される電
子計算機システムにおいて、タスクがCPUを制限時間
まで使用した時点でそのタスクを強制終了させるかその
タスクを含むジョブを強制終了させるかを示す情報を有
するジョブアボートフラグと、タスクがCPUを制限時
間まで使用した時点でそのタスクを含むジョブを強制終
了させる指定が行われたときに前記ジョブアボートフラ
グにその指定を示す情報を設定するアボートフラグ設定
手段と、タスクがCPUを制限時間まで使用した時点で
前記ジョブアボートフラグを参照しジョブを強制終了さ
せる指定が行われているか否かを判断する強制終了範囲
判断手段と、この強制終了範囲判断手段によりジョブを
強制終了させる指定が行われていると判断されたときに
CPUを制限時間まで使用したタスクを含むジョブを強
制終了させるジョブ強制終了手段と、前記強制終了範囲
判断手段によりジョブを強制終了させる指定が行われて
いると判断されなかったときにCPUを制限時間まで使
用したタスクを強制終了させるタスク強制終了手段とを
有する。
[Means for Solving the Problems] The CPU usage time limit method of the present invention is a computer system in which a job consisting of a plurality of tasks that can be executed in parallel is executed. A job abort flag that has information indicating whether to forcibly terminate the task or the job containing the task at that point, and a specification to forcibly terminate the job containing the task when the task uses the CPU up to the time limit. an abort flag setting means for setting information indicating the designation in the job abort flag when a task has used the CPU up to a time limit; Includes a forced termination range determining means for determining whether or not a job has been forcibly terminated, and a task that used the CPU up to the time limit when it was determined by this forced termination range determining means that a job was specified to be forcibly terminated. A job force termination means for forcibly terminating a job; and a task force termination means for forcibly terminating a task that has used the CPU up to a time limit when it is not determined by the forcible termination range determining means that a job is specified to be forcibly terminated. and termination means.

〔作用〕[Effect]

本発明のCPU使用時間制限方式では、タスクがCPU
を制限時間まで使用した時点でそのタスクを強制終了さ
せるかそのタスクを含むジョブを強制終了させるかを示
す情報を有するジョブアボートフラグを設け、タスクが
CPUを制限時間まで使用した時点でそのタスクを含む
ジョブを強制終了させる指定が行われたときにアボート
フラグ設定手段がジョブアボートフラグにその指定を示
す情報を設定し、強制終了範囲判断手段がタスクがCP
Uを制限時間まで使用した時点でジョブアボートフラグ
を参照しジョブを強制終了させる指定が行われているか
否かを判断し、強制終了範囲判断手段によりジョブを強
制終了させる指定が行われていると判断されたときにジ
ョブ強制終了手段がCPUを制限時間まで使用したタス
クを含むジョブを強制終了させ、強制終了範囲判断手段
によりジョブを強制終了させる指定が行われていると判
断されなかったときにタスク強制終了手段がCPUを制
限時間まで使用したタスクを強制終了させる。
In the CPU usage time limiting method of the present invention, a task
A job abort flag is provided that has information indicating whether to forcibly terminate the task or the job that includes the task when the task has used the CPU up to the time limit. When a specification is made to forcibly terminate the included job, the abort flag setting means sets information indicating the specification in the job abort flag, and the forced termination range determining means determines whether the task is within the CP.
When U is used up to the time limit, the job abort flag is referenced to determine whether or not the job is specified to be forcibly terminated, and the abort range determining means determines whether the job is specified to be forcibly terminated. When it is determined that the job force termination means forcibly terminates the job including the task that has used the CPU up to the time limit, and the force termination range determination means does not determine that the job is specified to be forcibly terminated. A task forced termination means forcibly terminates a task that has used the CPU up to the time limit.

〔実施例〕〔Example〕

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

第1図は、本発明のcpu使用時間制限方式の一実施例
の構成を示すブロック図である0本実施例のcpu使用
時間制限方式は、タスクがcpuを制限時間まで使用し
た時点でそのタスクを強制終了させるかそのタスクを含
むジョブを強制終了させるかを示す情報を有するジョブ
アボートフラグl (ジョブを強制終了させることを示
す場合にオンが設定される)と、ジョブ内に存在するタ
スクの情報を格納しているタスク制御構造体2と、タス
クがCPUを制限時間まで使用した時点でそのタスクを
含むジョブを強制終了させる指定が行われたときにジョ
ブアボートフラグ1をオンにするアボートフラグ設定手
段3と、タスクがCPUを制限時間まで使用した時点で
ジョブアボートフラグlを参照しジョブを強制終了させ
る指定が行われているか否かを判断する強制終了範囲判
断手段4と、強制終了範囲判断手段4によりジョブを強
制終了させる指定が行われていると判断されたときにタ
スク制御構造体2の参照に基づいてCPUを制限時間ま
で使用したタスクを含むジョブを強制終了させるジョブ
強制終了手段5と、強制終了範囲判断手段4によりジョ
ブを強制終了させる指定が行われていると判断されなか
ったときにCPUを制限時間まで使用したタスクを強制
終了させるタスク強制終了手段6とを含んで構成されて
いる。
FIG. 1 is a block diagram showing the configuration of an embodiment of the CPU usage time limiting method of the present invention. The job abort flag l (set to on to indicate that the job is to be forcibly terminated) has information indicating whether to forcibly terminate the task or the job containing the task, and A task control structure 2 that stores information, and an abort flag that turns on job abort flag 1 when a task is specified to forcibly terminate the job that includes the task when it uses the CPU up to the time limit. a setting means 3, a forced termination range determining means 4, which refers to a job abort flag l and determines whether or not a job is specified to be forcibly terminated when a task uses the CPU up to the time limit; and a forced termination range determination means 4; A job forced termination means for forcibly terminating a job including a task that has used the CPU up to the time limit based on reference to the task control structure 2 when the determination means 4 determines that the job is specified to be forcibly terminated. 5, and a task forced termination means 6 for forcibly terminating a task that has used the CPU up to the time limit when the forced termination range determination means 4 does not determine that a job is specified to be forcibly terminated. has been done.

第2図は、ジョブ強制終了手段5の処理を示す流れ図で
ある。この処理は、メインタスク強制終了ステップ51
と、サブタスク存在判定ステップ52と、サブタスク強
制終了ステップ53とからなる。
FIG. 2 is a flowchart showing the processing of the job forced termination means 5. This process is performed in main task forced termination step 51.
, a subtask existence determination step 52 , and a subtask forced termination step 53 .

次に、このように構成された本実施例のCPU使用時間
制限方式の動作について説明する。
Next, the operation of the CPU usage time limiting system of this embodiment configured as described above will be explained.

アボートフラグ設定手段3は、あらかしめ、タスクがC
PUを制限時間まで使用した時点でジョブを強制終了さ
せる指定が行われたときに、ジョブアボートフラグlを
オンにする。
The abort flag setting means 3 indicates that the task is C.
When a job is specified to be forcibly terminated when the PU is used up to the time limit, the job abort flag l is turned on.

強制終了範囲判断手段4は、タスクがCPUを制限時間
まで使用した時点で、ジョブアボートフラグ1を参照し
、ジョブアポートフラグ1がオンか否かを判断する。
The forced termination range determining means 4 refers to the job abort flag 1 and determines whether the job abort flag 1 is on or not when the task uses the CPU up to the time limit.

強制終了範囲判断手段4は、ジョブアポートフラグ1が
オンであると判断したときには、ジョブ強制終了手段5
に制御を渡す。
When the forced termination range determination means 4 determines that the job aport flag 1 is on, the forced termination range determination means 5
Pass control to.

ジョブ強制終了手段5は、以下に示すような処理を行う
(第2図参fllil)。
The job forced termination means 5 performs the following processing (see FIG. 2).

まず、CPUを制限時間まで使用したタスクを含むジョ
ブのメインタスクを強制終了させる(ステップ51)。
First, the main task of the job, including the task that has used the CPU up to the time limit, is forcibly terminated (step 51).

次に、タスク制御構造体2を参照し、そのジョブ内に次
のサブタスクが存在するか否かを判断する(ステップ5
2〉。
Next, the task control structure 2 is referenced to determine whether the next subtask exists within the job (step 5).
2〉.

この判断で次のサブタスクが存在する場合には、そのサ
ブタスクを強制終了させ(ステップ53)、ステップ5
2の判断に制御を戻す。
If the next subtask exists in this judgment, that subtask is forcibly terminated (step 53), and step 5
Control is returned to the judgment in step 2.

ステップ52の判断で次のサブタスクが存在しない場合
には、処理を終了する(この時点で、そのジョブに含ま
れる全てのタスクの強制終了が完了する〉。
If the next subtask does not exist as determined in step 52, the process is terminated (at this point, forced termination of all tasks included in the job is completed).

強制終了範囲判断手段4は、ジョブアポートフラグlが
オンでないと判断したときには、タスク催制終了手段6
に制御を渡す。
When the forced termination range determination means 4 determines that the job appointment flag l is not on, the task termination range determination means 6
Pass control to.

タスク強制終了手段6は、CPLIを制限時間まで使用
したタスクを強制終了させる。
The task forced termination means 6 forcibly terminates the task that has used the CPLI up to the time limit.

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

以上説明したように本発明は、ジョブアポートフラグ、
アボートフラグ設定手段9弛制終了範囲判断手段8ジョ
ブ強制終了手段およびタスク強制終了手段を設けること
により、1つのタスクがCPUを制限時間まで使用し強
制終了させられたことに起因するジョブの誤動作を防止
することができるという効果がある。
As explained above, the present invention provides a job appointment flag,
By providing the abort flag setting means 9 the relaxation end range determining means 8 the job forced termination means and the task forced termination means, it is possible to prevent job malfunctions caused by one task using the CPU up to the time limit and being forcibly terminated. It has the effect of being able to prevent this.

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

第1図は本発明の一実施例の構成を示すプロンク図、 第2図は第1図中のジョブ強制終了手段の処理を示す流
れ図である。 図において、 l・・・ジョブアポートフラグ、 2・・・タスク制御構造体、 3・・・アボートフラグ設定手段、 4・・・強制終了範囲判断手段、 5・・・ジョブ強制終了手段、 6・・・タスク強制終了手段である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, and FIG. 2 is a flowchart showing the processing of the job forced termination means in FIG. In the figure, l... Job aport flag, 2... Task control structure, 3... Abort flag setting means, 4... Forced termination range determination means, 5... Job forced termination means, 6. ...It is a means of forcibly terminating a task.

Claims (1)

【特許請求の範囲】 並列に実行できる複数のタスクから構成されているジョ
ブが実行される電子計算機システムにおいて、 タスクがCPUを制限時間まで使用した時点でそのタス
クを強制終了させるかそのタスクを含むジョブを強制終
了させるかを示す情報を有するジョブアボートフラグと
、 タスクがCPUを制限時間まで使用した時点でそのタス
クを含むジョブを強制終了させる指定が行われたときに
前記ジョブアボートフラグにその指定を示す情報を設定
するアボートフラグ設定手段と、 タスクがCPUを制限時間まで使用した時点で前記ジョ
ブアボートフラグを参照しジョブを強制終了させる指定
が行われているか否かを判断する強制終了範囲判断手段
と、 この強制終了範囲判断手段によりジョブを強制終了させ
る指定が行われていると判断されたときにCPUを制限
時間まで使用したタスクを含むジョブを強制終了させる
ジョブ強制終了手段と、前記強制終了範囲判断手段によ
りジョブを強制終了させる指定が行われていると判断さ
れなかったときにCPUを制限時間まで使用したタスク
を強制終了させるタスク強制終了手段と を有することを特徴とするCPU使用時間制限方式。
[Claims] In an electronic computer system in which a job consisting of a plurality of tasks that can be executed in parallel is executed, the task is forcibly terminated when the task uses the CPU up to a time limit, or the task is included. A job abort flag that has information indicating whether to forcibly terminate a job, and when a task is specified to forcibly terminate a job including that task when the CPU has been used up to the time limit, that specification is added to the job abort flag. an abort flag setting means for setting information indicating that the job is to be forcibly terminated; and a forced termination range determination device that refers to the job abort flag and determines whether or not the job is specified to be forcibly terminated when the task uses the CPU up to the time limit. means, a job forced termination means for forcibly terminating a job including a task that has used the CPU up to the time limit when it is determined by the forced termination range determining means that the job is specified to be forcibly terminated; CPU usage time characterized by having task forced termination means for forcibly ending a task that has used the CPU up to a time limit when it is not determined by the end range determining means that a job is specified to be forcibly terminated. Restriction method.
JP6071790A 1990-03-12 1990-03-12 Limiting system for cpu using time Pending JPH03260838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6071790A JPH03260838A (en) 1990-03-12 1990-03-12 Limiting system for cpu using time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6071790A JPH03260838A (en) 1990-03-12 1990-03-12 Limiting system for cpu using time

Publications (1)

Publication Number Publication Date
JPH03260838A true JPH03260838A (en) 1991-11-20

Family

ID=13150321

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6071790A Pending JPH03260838A (en) 1990-03-12 1990-03-12 Limiting system for cpu using time

Country Status (1)

Country Link
JP (1) JPH03260838A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007265121A (en) * 2006-03-29 2007-10-11 Fujitsu Ltd Forced termination condition monitoring apparatus, forced termination condition monitoring method and forced termination condition monitoring program
US7886297B2 (en) 2004-11-22 2011-02-08 Hitachi, Ltd. Program control process for an information processing apparatus
WO2015125868A1 (en) * 2014-02-20 2015-08-27 株式会社ニコン Glasses-lens design method, glasses-lens production method, glasses lens, glasses-lens design system, glasses-lens design program, and recording medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7886297B2 (en) 2004-11-22 2011-02-08 Hitachi, Ltd. Program control process for an information processing apparatus
JP2007265121A (en) * 2006-03-29 2007-10-11 Fujitsu Ltd Forced termination condition monitoring apparatus, forced termination condition monitoring method and forced termination condition monitoring program
WO2015125868A1 (en) * 2014-02-20 2015-08-27 株式会社ニコン Glasses-lens design method, glasses-lens production method, glasses lens, glasses-lens design system, glasses-lens design program, and recording medium
JPWO2015125868A1 (en) * 2014-02-20 2017-03-30 株式会社ニコン Spectacle lens design method, spectacle lens manufacturing method, spectacle lens, spectacle lens design system, spectacle lens design program, and recording medium
EP3109693A4 (en) * 2014-02-20 2017-10-11 Nikon Corporation Glasses-lens design method, glasses-lens production method, glasses lens, glasses-lens design system, glasses-lens design program, and recording medium
US10126566B2 (en) 2014-02-20 2018-11-13 Nikon Corporation Eyeglass lens design method, eyeglass lens manufacturing method, eyeglass lens, eyeglass lens design system, eyeglass lens design program, and recording medium

Similar Documents

Publication Publication Date Title
TWI267782B (en) Deallocation of computer data in a multithreaded computer
US20050050553A1 (en) Method, system, and program for accessing device driver functions
JPH03260838A (en) Limiting system for cpu using time
US7714852B1 (en) Systems and methods for blanking a display screen on a display device of a computer system
CN109324916B (en) Task execution method and device
JPH0497474A (en) Job managing system for computer network
JPH11353193A (en) Multiprogramming execution control method
JPH10340250A (en) Method and load device for evaluating bus conflict operation
JPH03240828A (en) Initialization processing method for dynamic area
JPH02212965A (en) Program loading system
JPH10247158A (en) On-line exclusive wait evading method
JPH1165914A (en) File transfer reception wait control system
JPH0259951A (en) Batch job start control system based upon on-line
JPS58168168A (en) Swap-in and swap-out system of terminal
JPS6234251A (en) File restoration system
JPH05197593A (en) Loop/stall monitor device for application program
JPH02113336A (en) Asynchronous exception acquisition system
JPH03147149A (en) Update control system for data file
JPH04229331A (en) Exception processing method of built-in multitask operating system
JPH0340028A (en) Allocation control system for input/output device
JPH01263731A (en) Interruption control system
JPH06259380A (en) Remote procedure calling device
JPH04168532A (en) Multi-task device
JPH0243657A (en) Transaction processing scheduling system
JPH02201554A (en) File busy reporting system