JP2570612B2 - Job suspension control method - Google Patents

Job suspension control method

Info

Publication number
JP2570612B2
JP2570612B2 JP5343755A JP34375593A JP2570612B2 JP 2570612 B2 JP2570612 B2 JP 2570612B2 JP 5343755 A JP5343755 A JP 5343755A JP 34375593 A JP34375593 A JP 34375593A JP 2570612 B2 JP2570612 B2 JP 2570612B2
Authority
JP
Japan
Prior art keywords
job
interruption
standby state
status
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP5343755A
Other languages
Japanese (ja)
Other versions
JPH07168724A (en
Inventor
恵 山口
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 JP5343755A priority Critical patent/JP2570612B2/en
Publication of JPH07168724A publication Critical patent/JPH07168724A/en
Application granted granted Critical
Publication of JP2570612B2 publication Critical patent/JP2570612B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、システムプログラムと
ユーザプログラムにより構成されるジョブに対し、ユー
ザの要求によりユーザプログラム部で中断/再開するジ
ョブ中断機能を備える情報処理システムのジョブ中断制
御方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a job interruption control method for an information processing system having a job interruption function for interrupting / resuming a job constituted by a system program and a user program in a user program section at the request of a user. .

【0002】[0002]

【従来の技術】従来の情報処理システムにおけるジョブ
中断方式では、実行中のジョブに対して、ユーザから中
断要求があった場合、実行中のジョブの処理プログラム
部に設定されたプログラム例外を発生させ、そのプログ
ラム例外の発生を契機としてジョブの動作状況をチェッ
クポイントファイルに退避してジョブの中断を実行して
いた。
2. Description of the Related Art In a conventional job interruption method in an information processing system, when a user requests a suspension of a running job, a program exception set in a processing program section of the running job is generated. When the program exception occurs, the job operation status is saved to a checkpoint file and the job is interrupted.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上述し
た従来のジョブ中断方式では、実行ジョブの中断が要求
された時点で対象ジョブがイベント待ちの状態(待機状
態)の場合、ジョブ中断の契機となるプログラム例外を
発生させることができない。従って、このような場合
は、イベントが発生するまで(待機状態が解除されるま
で)、プログラム中断を行なうことは不可能であり、こ
のため、システムの利用効率が低下するという欠点があ
った。
However, in the above-described conventional job interruption method, when the target job is in an event waiting state (standby state) at the time when the execution job is requested to be interrupted, the job interruption is triggered. Cannot generate a program exception. Therefore, in such a case, it is impossible to interrupt the program until an event occurs (until the standby state is released), and therefore, there is a disadvantage that the utilization efficiency of the system is reduced.

【0004】本発明の目的は、上記従来の課題を解決す
べくなされたものであり、対象ジョブがイベント待ち状
態であっても、イベントの発生を待たずにジョブ中断が
可能なジョブ中断制御方式を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned conventional problem. A job interruption control method capable of interrupting a job without waiting for an event to occur even if the target job is in an event waiting state. Is to provide.

【0005】[0005]

【課題を解決するための手段】上記の目的を達成するた
め、本発明は、ユーザの要求によりジョブの中断を行な
うジョブ中断機能を備える情報処理システムのジョブ中
断制御方式において、前記ジョブが待機状態か否かを示
す情報を、ジョブ単位で格納する待機状態格納フラグ
と、前記ジョブの中断要求を受付け、要求されたジョブ
を中断対象ジョブとして特定する対象ジョブ特定手段
と、前記中断対象ジョブに関する前記待機状態格納フラ
グを参照して前記中断対象ジョブが待機状態かどうかを
判断するジョブ状態判断手段と、前記ジョブ状態判断手
段において前記中断対象ジョブが待機状態でないと判断
された場合、前記ジョブの処理プログラムに対して、前
記ジョブの中断処理を行なう契機となるプログラム例外
を発生させるプログラム例外設定手段と、前記ジョブ状
態判断手段において前記中断対象ジョブが待機状態であ
ると判断された場合、または、前記プログラム例外設定
手段によりプログラム例外が発生した場合に、前記中断
対象ジョブの動作状況を退避させるチェックポイント取
得手段と、前記動作状況の退避がなされた前記中断対象
ジョブの中断処理を行なう中断実行手段とを備える構成
としている。
In order to achieve the above object, the present invention relates to a job interruption control method for an information processing system having a job interruption function for interrupting a job at the request of a user. A standby state storage flag for storing information indicating whether or not the job is interrupted, a target job specifying unit for receiving a request to interrupt the job, and specifying the requested job as a job to be interrupted, A job status determining unit that determines whether the interrupted job is in a standby state by referring to a standby status storage flag, and processing of the job when the job status determining unit determines that the interrupted job is not in the standby state A program for generating a program exception which triggers the interruption processing of the job for the program. And exception setting means, said interrupted job in the job status determination means waiting state der
If it is determined that that or if the program exception occurs with the program exceptions setting means, and checkpoint acquisition means for retracting the operating status of the interrupted job, the interrupted the retreat of the operation status is made And a suspension execution unit for performing a job suspension process.

【0006】本発明の他の態様によれば、随時前記ジョ
ブを監視し、前記ジョブが待機状態か否かを判別し、待
機状態の場合に前記待機状態格納フラグに待機状態を示
す情報を格納する状態更新手段とを備える構成としてい
る。また、好ましくは、前記状態更新手段は、前記ジョ
ブがイベント待ち状態の場合に、該ジョブに対応する前
記フラグをONとし、前記ジョブがイベント待ち状態で
ない場合に、該ジョブに対応する前記フラグをOFFと
する構成としている。
According to another aspect of the present invention, the job is monitored as needed, it is determined whether the job is in a standby state, and if the job is in a standby state, information indicating the standby state is stored in the standby state storage flag. And a state updating unit that performs the operation. Preferably, the status updating unit sets the flag corresponding to the job to ON when the job is in the event waiting state, and sets the flag corresponding to the job to the ON state when the job is not in the event waiting state. It is configured to be OFF.

【0007】[0007]

【作用】プログラム状態更新手段は、動作中のジョブを
監視しジョブが待機状態か否かを判断し、待機状態の場
合は、待機状態格納フラグの値をONし、また、待機状
態でない場合、待機状態格納フラグの値をOFFにす
る。ジョブ中断要求時、ジョブ状態判断手段は、対象ジ
ョブ特定手段で特定された中断対象ジョブに対する待機
状態格納の値がONかOFFかを判定し、待機状態格納
フラグの値がOFFの時は、プログラム例外設定手段に
制御を渡す。これに伴い、プログラム例外設定手段は、
中断対象ジョブにジョブの中断を起こすための契機とな
るプログラム例外を発生させ、このプログラム例外を契
機としてチェックポイント取得手段に制御を渡す。中断
対象ジョブに対するユーザ待機状態格納フラグの値がO
Nの時は、プログラム例外の発生を行なわず、直接チェ
ックポイント取得手段に制御を渡す。そして、チェック
ポイント取得手段は、中断対象ジョブの動作状況を退避
する。中断実行手段は、動作状況の退避がなされた中断
対象ジョブの中断処理を行なう。
The program status updating means monitors the running job and determines whether the job is in the standby state. If the job is in the standby state, the program status updating means turns on the value of the standby state storage flag. Turn off the value of the standby state storage flag. When a job suspension request is issued, the job status determination unit determines whether the value of the standby status storage for the job to be interrupted specified by the target job specifying unit is ON or OFF. Pass control to exception setting means. Along with this, the program exception setting means
A program exception is generated as a trigger for causing the job to be interrupted to be interrupted, and control is transferred to the checkpoint acquisition unit with the program exception as a trigger. The value of the user standby status storage flag for the job to be interrupted is O
If N, control is passed directly to the checkpoint acquisition means without causing a program exception. Then, the checkpoint acquisition unit saves the operation status of the job to be interrupted. The interruption execution means performs interruption processing of the interruption target job whose operation status has been saved.

【0008】[0008]

【実施例】以下、本発明の実施例について図面を参照し
て説明する。図1は、本発明の一実施例に係るの構成を
示すブロック図である。本実施例は、対象ジョブ特定処
理部11と、プログラム状態更新処理部12と、ジョブ
がイベント待ち状態か否かを示す待機状態格納フラグ1
3と、ジョブ状態判断処理部14と、プログラム例外設
定処理部15と、チェックポイント取得処理部16と、
中断実行処理部17とで構成されている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration according to an embodiment of the present invention. In the present embodiment, a target job identification processing unit 11, a program state update processing unit 12, and a standby state storage flag 1 indicating whether a job is in an event waiting state.
3, a job state determination processing unit 14, a program exception setting processing unit 15, a checkpoint acquisition processing unit 16,
And an interruption execution processing unit 17.

【0009】対象ジョブ特定処理部11は、ユーザから
実行ジョブの中断指示があった場合、ユーザの要求した
ジョブが存在するか否かを判別して、指示されたジョブ
が存在する場合に、そのジョブを中断対象ジョブとして
特定する。プログラム状態更新処理部12は、実行中の
ジョブの現時点における状態を判断して、待機状態格納
フラグ13の当該ジョブに対応する値をONまたはOF
Fとする。
The target job identification processing section 11 determines whether or not there is a job requested by the user when the user issues an instruction to interrupt the execution job. Identify the job as the job to be interrupted. The program status update processing unit 12 determines the current status of the running job, and sets the value of the standby status storage flag 13 corresponding to the job to ON or OF.
F.

【0010】待機状態格納フラグ13は、ジョブがイベ
ント待ち状態か否かを示すON、OFFの情報を格納す
る。すなわち、フラグがONの時には、対応するジョブ
がイベント待ち状態であることを示し、OFFの時に
は、対応するジョブがイベント待ち状態ではないことを
示す。ここで、この待機状態格納フラグ13には、実行
中の全てのジョブに対するON、OFF情報が格納され
る。
The standby state storage flag 13 stores ON / OFF information indicating whether or not the job is in an event standby state. That is, when the flag is ON, it indicates that the corresponding job is in the event waiting state, and when OFF, it indicates that the corresponding job is not in the event waiting state. Here, the standby state storage flag 13 stores ON / OFF information for all the jobs being executed.

【0011】ジョブ状態判断処理部14は、待機状態格
納フラグ13の値を参照し、中断対象ジョブがイベント
待ち状態の場合、直接チェックポイント取得処理部16
に制御を渡し、それ以外の場合は、プログラム例外設定
処理部15に制御を渡す。プログラム例外設定処理部1
5は、ジョブの処理プログラムに対してジョブ中断の契
機となるプログラム例外を発生させる。
The job state determination processing unit 14 refers to the value of the standby state storage flag 13 and, when the job to be interrupted is in the event waiting state, directly checks the checkpoint acquisition processing unit 16.
Otherwise, the control is passed to the program exception setting processing unit 15. Program exception setting processing unit 1
No. 5 generates a program exception which triggers the interruption of the job in the job processing program.

【0012】チェックポイント取得処理部16は、中断
対象ジョブのジョブ中断要求時における動作状態を示す
プログラムデータをチェックポイントファイル18に退
避する。中断実行処理部17は、動作状態の退避が行な
われた中断対象ジョブの中断処理を行なう。
The checkpoint acquisition processing section 16 saves program data indicating the operation state of the job to be interrupted at the time of a job interruption request to the checkpoint file 18. The interruption execution processing unit 17 performs interruption processing of the interruption target job whose operation state has been saved.

【0013】以下、上記のように構成されるジョブ中断
制御システムの動作について説明する。まず、プログラ
ム状態更新処理部12の動作を図2のフローチャートに
従って説明する。
The operation of the job interruption control system configured as described above will be described below. First, the operation of the program state update processing unit 12 will be described with reference to the flowchart of FIG.

【0014】プログラム状態更新処理部12は、定期的
に起動され、動作中の対象ジョブを監視し、ジョブの状
態に応じてユーザ待機状態格納フラグ13を更新する。
プログラム状態監視時、プログラム状態更新処理部12
は、対象ジョブがイベント待ちか否かを判断する(ステ
ップ201)。イベント待ちの場合は、ステップ202
に制御を渡し、それ以外の場合はステップ203に制御
を渡す。
The program status update processing unit 12 is started periodically, monitors a running target job, and updates the user standby status storage flag 13 according to the job status.
When monitoring the program status, the program status update processing unit 12
Determines whether the target job is waiting for an event (step 201). If waiting for an event, step 202
Otherwise, control is passed to step 203.

【0015】対象ジョブがイベント待ちの場合、プログ
ラム状態更新処理部12は、ユーザ待機状態格納フラグ
13の値をONにする(ステップ202)。また、対象
ジョブがイベント待ちでない場合、ユーザ待機状態格納
フラグ13の値をOFFにする(ステップ203)。
If the target job is waiting for an event, the program status update processing unit 12 turns on the value of the user standby status storage flag 13 (step 202). If the target job is not waiting for an event, the value of the user waiting state storage flag 13 is turned off (step 203).

【0016】次に、ジョブ中断要求があった場合の処理
を説明する。ジョブ中断要求時、対象ジョブ特定処理部
11は、中断するジョブを特定する。ジョブ状態判断処
理部14は、対象ジョブ特定処理部11で特定された中
断対象ジョブに対して図3に示すような処理を行なう。
Next, the processing when a job interruption request is made will be described. At the time of a job interruption request, the target job identification processing unit 11 identifies a job to be interrupted. The job state determination processing unit 14 performs the processing shown in FIG. 3 on the interrupt target job specified by the target job specification processing unit 11.

【0017】まず、ジョブ状態判断処理部14は、中断
対象ジョブに対するユーザ待機状態格納フラグ13の値
がONかOFFかを判定する(ステップ301)。中断
対象ジョブに対するユーザ待機状態格納フラグ13の値
がOFFの時は、プログラム例外設定処理部15に制御
を渡す(ステップ302)。これに伴い、プログラム例
外設定処理部15は、中断対象ジョブの処理プログラム
に対しジョブの中断を起こすための契機となるプログラ
ム例外を発生させ、このプログラム例外を契機としてチ
ェックポイント取得処理部16に制御を渡す。
First, the job status determination processing unit 14 determines whether the value of the user standby status storage flag 13 for the interrupted job is ON or OFF (step 301). When the value of the user standby state storage flag 13 for the job to be interrupted is OFF, control is passed to the program exception setting processing unit 15 (step 302). Along with this, the program exception setting processing unit 15 generates a program exception which triggers the interruption of the job for the processing program of the job to be interrupted, and controls the checkpoint acquisition processing unit 16 with this program exception. give.

【0018】ステップ301で中断対象ジョブに対する
ユーザ待機状態格納フラグ13の値がONの時は、プロ
グラム例外の発生は行なわず、直接チェックポイント取
得処理部16に制御を渡す(ステップ303)。チェッ
クポイント取得処理部16は、中断対象ジョブの動作状
況をチェックポイントファイル18に退避する。そし
て、その後、中断実行処理部17が、動作状況の退避が
終了した中断対象ジョブの中断処理を完了する。以上好
ましい実施例をあげて本発明を説明したが、本発明は必
ずしも上記実施例に限定されるものではない。
When the value of the user standby state storage flag 13 for the interrupted job is ON in step 301, no program exception occurs, and control is passed directly to the checkpoint acquisition processing unit 16 (step 303). The checkpoint acquisition processing unit 16 saves the operation status of the job to be interrupted in the checkpoint file 18. After that, the interruption execution processing unit 17 completes the interruption processing of the interruption target job for which the saving of the operation status has been completed. Although the present invention has been described with reference to the preferred embodiments, the present invention is not necessarily limited to the above embodiments.

【0019】[0019]

【発明の効果】以上説明したように本発明によれば、ユ
ーザからの実行ジョブ中断要求があった場合、中断要求
されたジョブが待機状態であってもプログラム例外の発
生を待つことなく、ジョブの中断を行なうことができ
る。これにより、システムの利用効率が向上する。
As described above, according to the present invention, when an execution job interruption request is made by a user, even if the interrupted job is in the standby state, the job is not waited for the occurrence of a program exception. Can be interrupted. Thereby, the utilization efficiency of the system is improved.

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

【図1】 本発明の一実施例に係る情報処理システムに
おけるジョブ中断制御方式の構成を示すブロック図であ
る。
FIG. 1 is a block diagram illustrating a configuration of a job interruption control method in an information processing system according to an embodiment of the present invention.

【図2】 図1に示すプログラム状態更新処理部の動作
をフローチャートである。
FIG. 2 is a flowchart illustrating an operation of a program state update processing unit illustrated in FIG. 1;

【図3】 ジョブ中断要求があった場合のジョブ状態判
断処理部の動作を示すフローチャートである。
FIG. 3 is a flowchart illustrating an operation of a job state determination processing unit when a job interruption request is issued.

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

11 対象ジョブ特定処理部 12 プログラム状態更新処理部 13 待機状態格納フラグ 14 ジョブ状態判断処理部 15 プログラム例外設定処理部 16 チェックポイント取得処理部 17 中断実行処理部 18 退避ファイル 11 Target job identification processing unit 12 Program status update processing unit 13 Standby status storage flag 14 Job status judgment processing unit 15 Program exception setting processing unit 16 Checkpoint acquisition processing unit 17 Interruption execution processing unit 18 Save file

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ユーザの要求によりジョブの中断を行な
うジョブ中断機能を備える情報処理システムのジョブ中
断制御方式において、 前記ジョブが待機状態か否かを示す情報を、ジョブ単位
で格納する待機状態格納フラグと、 前記ジョブの中断要求を受付け、要求されたジョブを中
断対象ジョブとして特定する対象ジョブ特定手段と、 前記中断対象ジョブに関する前記待機状態格納フラグを
参照して前記中断対象ジョブが待機状態かどうかを判断
するジョブ状態判断手段と、 前記ジョブ状態判断手段において前記中断対象ジョブが
待機状態でないと判断された場合、前記ジョブの処理プ
ログラムに対して、前記ジョブの中断処理を行なう契機
となるプログラム例外を発生させるプログラム例外設定
手段と、 前記ジョブ状態判断手段において前記中断対象ジョブが
待機状態であると判断された場合、または、前記プログ
ラム例外設定手段によりプログラム例外が発生した場合
に、前記中断対象ジョブの動作状況を退避させるチェッ
クポイント取得手段と、 前記動作状況の退避がなされた前記中断対象ジョブの中
断処理を行なう中断実行手段とを備えることを特徴とす
るジョブ中断制御方式。
In a job interruption control method of an information processing system having a job interruption function for interrupting a job at the request of a user, a standby state storage for storing information indicating whether the job is in a standby state in job units. A flag, a target job specifying unit that receives a request for suspending the job, and identifies the requested job as a job to be suspended. Means for determining whether the job to be interrupted is
When it is determined that the job is not in the standby state, a program exception setting unit that generates a program exception that triggers the interruption processing of the job with respect to the processing program of the job;
A checkpoint acquisition unit that saves the operation status of the job to be interrupted when it is determined that the job is in a standby state or when a program exception occurs by the program exception setting unit; and the operation status is saved. A job interruption control method, comprising: interruption execution means for executing interruption processing of the interruption target job.
【請求項2】 随時前記ジョブを監視し、前記ジョブが
待機状態か否かを判別し、待機状態の場合に前記待機状
態格納フラグに待機状態を示す情報を格納する状態更新
手段とを備えることを特徴とする請求項1に記載のジョ
ブ中断制御方式。
2. A status updating means for monitoring the job as needed, determining whether the job is in a standby state, and storing information indicating the standby state in the standby state storage flag when the job is in the standby state. The job interruption control method according to claim 1, wherein:
【請求項3】 前記状態更新手段は、前記ジョブがイベ
ント待ち状態の場合に、該ジョブに対応する前記待機状
態格納フラグをONとし、前記ジョブがイベント待ち状
態でない場合に、該ジョブに対応する前記待機状態格納
フラグをOFFとすることを特徴とする請求項2に記載
のジョブ中断制御方式。
Wherein the state update unit, when the job event wait state, the standby-shaped corresponding to the job
If the status storage flag is set to ON and the job is not in the event waiting status, the standby status storage corresponding to the job is stored.
3. The job interruption control method according to claim 2, wherein the flag is turned off.
JP5343755A 1993-12-15 1993-12-15 Job suspension control method Expired - Fee Related JP2570612B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5343755A JP2570612B2 (en) 1993-12-15 1993-12-15 Job suspension control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5343755A JP2570612B2 (en) 1993-12-15 1993-12-15 Job suspension control method

Publications (2)

Publication Number Publication Date
JPH07168724A JPH07168724A (en) 1995-07-04
JP2570612B2 true JP2570612B2 (en) 1997-01-08

Family

ID=18363993

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5343755A Expired - Fee Related JP2570612B2 (en) 1993-12-15 1993-12-15 Job suspension control method

Country Status (1)

Country Link
JP (1) JP2570612B2 (en)

Also Published As

Publication number Publication date
JPH07168724A (en) 1995-07-04

Similar Documents

Publication Publication Date Title
JPH0776894B2 (en) Clock signal control method for processor and information processing system
JP2570612B2 (en) Job suspension control method
JP2002318780A (en) Real-time control system
JP2636722B2 (en) Multitask execution management method
JPS62284437A (en) Task control system
JP2000172386A (en) Computer system and method for managing memory power supply
JP2001265750A (en) Memory controller
JPH05282214A (en) System restart method and its device
JPH07271561A (en) Information processor
JPH0451329A (en) Context switching device
JP2734568B2 (en) Job management controller
JPH08314783A (en) Data maintenance system
JP2001331331A (en) Unique process multithread operating system
JPH06110708A (en) Job temporary interruption system
JP3362673B2 (en) Channel control device
JPH04157534A (en) Suspending/restarting system for task group unit
JPH0373893B2 (en)
JPS6367615A (en) Power supply control system at time of automatic operation
JPH02236708A (en) Electronic computation processing system
JPH0363827A (en) Register saving system
JPH05265602A (en) Power management control device
JPH064185A (en) Computer system with automatic power source disconnecting function
JP2000020155A (en) Temporary interruption and restart control method for system operation
JPH0635815A (en) Input/output control monitoring device
JPS6356737A (en) Multitask processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees