JPS61255440A - Program interruption control system - Google Patents

Program interruption control system

Info

Publication number
JPS61255440A
JPS61255440A JP9718185A JP9718185A JPS61255440A JP S61255440 A JPS61255440 A JP S61255440A JP 9718185 A JP9718185 A JP 9718185A JP 9718185 A JP9718185 A JP 9718185A JP S61255440 A JPS61255440 A JP S61255440A
Authority
JP
Japan
Prior art keywords
program
user program
interruption
information
executed
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
JP9718185A
Other languages
Japanese (ja)
Inventor
Koichi Katsuya
勝谷 光一
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 JP9718185A priority Critical patent/JPS61255440A/en
Publication of JPS61255440A publication Critical patent/JPS61255440A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To assure a processing result at the time of the control and to improve a processing by saving a program at the time of interrupting the execution of the program to an external memory device, fetching the program into a main memory by an external memory device at the time of the resumption and resuming the program from the interruption time point. CONSTITUTION:When a user program during the execution is interrupted, an interruption processing program of a program interruption processing part 2 is started, the contents of the main memory assigned to the user program are written to an external memory device. When the interrupted user program is resumed, the resumption processing program of a program resumption processing part 3 is resumed. When the resumption processing program is started, the program of the purpose stored at the external memory device is read to a main memory area. At such a time, the stack address and the contents of the stack are set to the condition at the time of interruption.

Description

【発明の詳細な説明】 1i且1 本発明は、プログラム中断制御方式に関し、特にマイク
ロプロセッサを用いたマイクロプログラム制御によりデ
ータを処理する装置におけるプログラム中断再開制御方
式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a program interruption control system, and more particularly to a program interruption and resumption control system in an apparatus that processes data under microprogram control using a microprocessor.

えl盈I 従来、この種のデータ処理装置では、実行中の利用者プ
ログラムを中断させる場合の方法として、実行中のプロ
グラムを強制終了させ、再開する場合はプログラムの最
初から再開する方式や、あるいは実行中のプロシージャ
部を一時的に主記憶装置上から解放して処理を中断し、
次に再開するときは外部記憶装置に格納されている利用
者プログラムのプロシージャ部のみを主記憶装置に取込
み処理を再開する方式が用いられていた。
Conventionally, in this type of data processing device, methods for interrupting a user program that is being executed include forcibly terminating the program that is being executed, and restarting the program from the beginning when resuming the program. Alternatively, temporarily release the executing procedure part from the main memory and interrupt the process.
When restarting the process next time, a method was used in which only the procedure part of the user program stored in the external storage device was imported into the main storage device and the process was restarted.

上述した従来の中断制御方式では、前者の場合、実行途
中までの処理結果が無効となってしまい、処理時間が無
駄となる。後者の場合、実行中の利用者プログラムのデ
ータ部が主記憶装置内に残っているため、処理装置の電
源を切断するような作業が実施できない。また、主記憶
装置を多く必要とする他の利用者プログラムが実行でき
ないという事態の発生する可能性があるという欠点があ
った。
In the above-described conventional interruption control method, in the former case, the processing results up to the middle of execution become invalid, and processing time is wasted. In the latter case, the data portion of the user program being executed remains in the main memory, making it impossible to perform tasks such as turning off the power to the processing device. Another drawback is that there is a possibility that other user programs that require a large amount of main storage space may not be able to be executed.

及」Jとl飽 本発明の目的は、実行中の利用者プログラムを中断する
ときにプログラムを外部記憶装置に退避させることによ
り、上記欠点を解決し、中断時の途中までの処理結果を
保障して、処理効率の向上を可能としたデータ処理装置
のプログラム中断制御方式を提供することである。
An object of the present invention is to solve the above-mentioned drawbacks by saving the program to an external storage device when interrupting the user program being executed, and to guarantee the processing results up to the middle of the interrupt. Therefore, it is an object of the present invention to provide a program interruption control method for a data processing device, which makes it possible to improve processing efficiency.

11匹且羞 本発明によるプログラム中断制御方式は、中断指示に応
答して主記憶装置に展開されている利用者プログラムの
占有している当該主記憶装置内の記憶内容、次に実行す
べき利用者プログラムのアドレス情報、スタック情報及
び入出力装置制御情報を読込む手段と、この読込んだこ
れ等各情報を外部記憶装置に書込む手段とを含み、この
書込み終了後に利用者プログラムの実行を強制的に終了
するようにしたことを特徴とする。
The program interruption control method according to the present invention is capable of controlling the storage contents in the main storage occupied by the user program deployed in the main storage in response to an interruption instruction, and the usage to be executed next. It includes means for reading the address information, stack information, and input/output device control information of the user program, and means for writing the read information into an external storage device, and after the writing is completed, the user program is executed. The feature is that it is forcibly terminated.

本発明の他のプログラム中断制御方式は、上記構成の他
に更に、利用者プログラムの再開指示に応答して外部記
憶装置に書込まれている当該利用者プログラムを主記憶
装置内に取込む手段と、次に実行を開始すべき利用者プ
ログラムのアドレス情報、スタック情報及び入出力制御
情報を元にして中断直前の利用者プログラムの環境を設
定する手段とを含み、利用者プログラムの中断及びこの
中断直前に続く実行再開を可能としてなることを特徴と
しいてる。
Another program interruption control method of the present invention, in addition to the above-described configuration, further includes means for importing the user program written in the external storage device into the main storage device in response to an instruction to restart the user program. and a means for setting the environment of the user program immediately before the interruption based on the address information, stack information, and input/output control information of the user program to be executed next. The feature is that it is possible to resume execution immediately before interruption.

実施例 以下、図面を用いて本発明の詳細な説明する。Example Hereinafter, the present invention will be explained in detail using the drawings.

第1図は本発明の実施例の概略ブロック図であり、主記
憶装置1、プログラム中断処理部2、プログラム再開処
理部3、入出力装置制御部4及び入出力端末装置5とか
らなる。
FIG. 1 is a schematic block diagram of an embodiment of the present invention, which includes a main storage device 1, a program interruption processing section 2, a program restart processing section 3, an input/output device control section 4, and an input/output terminal device 5.

入出力端末1115としては、例えば図示する如く、ワ
ークステーション装置、フロッピィディスク装置、磁気
テープ装置及び磁気ディスク装置等からなっている。
The input/output terminal 1115 includes, for example, a workstation device, a floppy disk device, a magnetic tape device, a magnetic disk device, etc. as shown in the figure.

第2図は、第1図におけるプログラム中断処理部2にお
ける中断処理を制御するプログラムの動作例である。中
断処理プログラムが開始されると、主記憶装置の領域管
理情報を参照し、実行中の利用者プログラムに割当てら
れている主記憶装置のアドレスと大きさを求める(ステ
ップ10)。利用者プログラムが次に実行すべき命令の
アドレスを求める(ステップ11)とともに、この利用
者プログラムのスタック情報を求める(ステップ12)
。また、利用者プログラムが入出力装置を使用中か否か
調べ(ステップ13)、使用中であれば現在入出力動作
の終了していないものがあるか調べる(ステップ14)
。入出力動作が終了していなければ終了するまで持ち、
終了した時点で入出力装置の制御情報を取込む(ステッ
プ15)。
FIG. 2 is an example of the operation of a program that controls the interruption process in the program interruption processing section 2 shown in FIG. When the interruption processing program is started, the address and size of the main memory assigned to the user program being executed are determined by referring to the area management information of the main memory (step 10). Find the address of the next instruction to be executed by the user program (step 11) and find the stack information of this user program (step 12)
. Also, check whether the user program is using the input/output device (step 13), and if it is in use, check whether there is any input/output device that has not completed its current input/output operation (step 14).
. If the input/output operation has not finished, it will last until it finishes,
When the process is completed, the control information of the input/output device is taken in (step 15).

利用者プログラムに関する情報の取込みが終了するとこ
れらの情報を記録するために外部記憶装置に対して領域
を確保する(ステップ16)。外部記憶装置の領域確保
が終了すると、利用者プログラムに割当てられている主
記憶の内容を確保した外部記憶装置へ書込む(ステップ
17)。同様に、次に実行すべき利用者プログラムの命
令のアドレス情報(ステップ18)、入出力装置の制御
情報(ステップ19)、利用者プログラムのスタツク情
報(ステップ20)、主記憶管理情報(ステップ21)
を外部記憶装置に書込み、外部記憶装置の索引領域にこ
の利用者プログラムの名前を登録(ステップ22)L/
、利用者プログラムを終了(ステップ23)させ処理を
終了する。
When the acquisition of information regarding the user program is completed, an area is secured in the external storage device to record this information (step 16). When the area reservation of the external storage device is completed, the contents of the main memory allocated to the user program are written to the secured external storage device (step 17). Similarly, the address information of the user program command to be executed next (step 18), the control information of the input/output device (step 19), the stack information of the user program (step 20), the main memory management information (step 21) )
is written to the external storage device, and the name of this user program is registered in the index area of the external storage device (step 22) L/
, the user program is terminated (step 23), and the process is terminated.

さて次は、中断した利用者プログラムをプログラム再開
処理部3の動作について説明する。第2図は、本発明の
中断した利用者プログラムの再開を制御するプログラム
の動作例である。再開処理プログラムが開始されると、
外部記憶装置の索引を取込み(ステップ24)、目的の
利用者プログラム8八が登録されているか調べる(ステ
ップ25)。Aが登録されていれば外部記憶装置に書込
まれている主記憶管理情報を読込み(ステップ26)、
Aに割当てられていた主記憶領域の大きさを求め、現在
空き領域があるかどうか判断(ステップ27)し、空き
領域があれば主記憶に領域を確保する(ステップ28)
Next, the operation of the program restart processing unit 3 for the interrupted user program will be explained. FIG. 2 is an example of the operation of a program for controlling restart of an interrupted user program according to the present invention. When the restart processing program starts,
The index of the external storage device is imported (step 24), and it is checked whether the target user program 88 is registered (step 25). If A is registered, the main memory management information written in the external storage device is read (step 26);
Find the size of the main storage area allocated to A, determine whether there is currently free space (step 27), and if there is free space, secure the area in the main memory (step 28)
.

次に、Aのスタック情報を読込み(ステップ29)、ス
タックアドレスとスタックの内容を中断時の状態に設定
(ステップ30)し、そして、入出力制御情報を読込み
(ステップ31)、入出力装置を使用中であれば(ステ
ップ32)入出力装置を中断時の状態に設定する(ステ
ップ33)。
Next, read the stack information of A (step 29), set the stack address and stack contents to the state at the time of interruption (step 30), read the input/output control information (step 31), and turn on the input/output device. If it is in use (step 32), the input/output device is set to the state at the time of interruption (step 33).

以上、Aの中断時の環境設定が終了すると、次にAの命
令アドレス情報を読込む(ステップ34)と共に中断時
に外部記憶装置に退避したAの内容をマイクロプロセッ
サに設定(ステップ36)して処理を終了する。処理が
終了するとAが中断時の次の命令から実行され、中断時
の処理途中での結果が保障される。
As mentioned above, when the environment setting for A is completed, the instruction address information of A is read (step 34), and the contents of A saved in the external storage device at the time of interruption are set in the microprocessor (step 36). Finish the process. When the processing is completed, A is executed from the next instruction at the time of interruption, and the result in the middle of the processing at the time of interruption is guaranteed.

例えば、あるデータの処理に長時間を必要とするプログ
ラムをデータ処理装置上で実行したとき、偶然にも処理
が半分経過した時点でデータ処理装置の電源を切断する
必要性が生じたとする。従来の方式であれば、このプロ
グラムを強制終了して電源を切断後回びこのプログラム
を最初から実行しなければならず、処理途中の結果が保
障されないが、本発明では、処理途中の、結果が保障さ
れるため処理効率を向上させることができる。
For example, suppose that when a program that requires a long time to process certain data is executed on a data processing device, it becomes necessary to turn off the power to the data processing device when half of the processing has finished. In the conventional method, the program must be forcibly terminated and the power turned off, and then the program must be executed again from the beginning, and the results of the process are not guaranteed.However, with the present invention, the results of the process are not guaranteed. is guaranteed, so processing efficiency can be improved.

さらにこの実施例が有する効果を説明する。いまAプロ
グラム実行中に緊急プログラムBを実行しなければなら
ない事態が発生し、たまたまこの緊急プログラムBの必
要とする主記憶領域が大きく・Aと同時に実行できない
とする。このような場合、従来の方式であればAを強制
終了させるかあるいは、Aの終了を持ってBを実行する
他に手段がなかったが、本発明では、直ちにAを中断し
てBを実行できることになるのである。
Further, the effects of this embodiment will be explained. Now suppose that a situation arises in which emergency program B must be executed while program A is being executed, and it happens that emergency program B requires a large main storage area and cannot be executed simultaneously with program A. In such a case, with the conventional method, the only option was to forcibly terminate A or execute B after A has finished, but with the present invention, A is immediately interrupted and B is executed. It becomes possible.

λ■立11 以上説明したように本発明によれば、プログラム実行中
断時のプログラムを外部記憶装置に退避し、再開時に外
部記憶装置により主記憶に取込んで中断時点よりプログ
ラムを再開することにより、@御時の処理結果を保障し
、処理の効率を向上できる効果がある。
λ ■ 11 As explained above, according to the present invention, by saving the program to an external storage device when the program execution is interrupted, and importing it into the main memory by the external storage device when restarting the program, the program is restarted from the point of interruption. , it has the effect of guaranteeing the processing results at the time and improving processing efficiency.

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

第1図は本発明の実施例の概略ブロック図、第2図は本
発明の実施例のプログラム中断処理の動作フロー図、第
3図は本発明の実施例のブOグラム実行再開処理の動作
フロー図である。 主要部分の符号の説明 1・・・・・・主記憶装置
FIG. 1 is a schematic block diagram of an embodiment of the present invention, FIG. 2 is an operational flow diagram of program interruption processing of an embodiment of the present invention, and FIG. 3 is an operation of program execution restart processing of an embodiment of this invention. It is a flow diagram. Explanation of symbols of main parts 1 Main storage device

Claims (2)

【特許請求の範囲】[Claims] (1)データ処理装置内の実行中の利用者プログラムを
中断せしめるプログラム中断制御方式であって、中断指
示に応答して主記憶装置に展開されている利用者プログ
ラムの占有している当該主記憶装置内の記憶内容、次に
実行すべき利用者プログラムのアドレス情報、スタック
情報及び入出力装置制御情報を読込む手段と、この読込
んだこれ等各情報を外部記憶装置に書込む手段とを含み
、この書込み終了後に前記利用者プログラムの実行を強
制的に終了するようにしたことを特徴とするプログラム
中断制御方式。
(1) A program interruption control method that suspends a user program being executed in a data processing device, the main memory occupied by the user program being deployed in the main storage device in response to an interruption instruction. A means for reading the storage contents in the device, address information of a user program to be executed next, stack information, and input/output device control information, and a means for writing each of the read information to an external storage device. 1. A program interruption control method comprising: forcibly terminating execution of the user program after the writing is completed.
(2)データ処理装置内の実行中の利用者プログラムを
中断し、この中断された利用者プログラムを再開せしめ
るプログラム中断制御方式であって、中断指示に応答し
て主記憶装置に展開されている利用者プログラムの占有
している当該主記憶装置内の記憶内容、次に実行すべき
利用者プログラムのアドレス情報、スタック情報及び入
出力装置制御情報を読込む手段と、この読込んだこれ等
各情報を外部記憶装置に書込む手段と、前記利用者プロ
グラムの再開指示に応答して、前記外部記憶装置に書込
まれている当該利用者プログラムを前記主記憶装置内に
取込む手段と、次に実行を開始すべき利用者プログラム
のアドレス情報、スタック情報及び入出力制御情報を元
に中断直前の利用者プログラムの環境を設定する手段と
を含み、利用者プログラムの中断及びこの中断直前に続
く実行再開を可能としてなることを特徴とするプログラ
ム中断制御方式。
(2) A program interruption control method that suspends a user program being executed in a data processing device and restarts the interrupted user program, and is expanded to the main storage in response to an interruption instruction. means for reading the storage contents in the main memory occupied by the user program, address information of the user program to be executed next, stack information, and input/output device control information; means for writing information into an external storage device; means for loading the user program written in the external storage device into the main storage device in response to an instruction to restart the user program; means for setting the environment of the user program immediately before the interruption based on the address information, stack information, and input/output control information of the user program to be executed at A program interruption control method characterized by making it possible to resume execution.
JP9718185A 1985-05-08 1985-05-08 Program interruption control system Pending JPS61255440A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9718185A JPS61255440A (en) 1985-05-08 1985-05-08 Program interruption control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9718185A JPS61255440A (en) 1985-05-08 1985-05-08 Program interruption control system

Publications (1)

Publication Number Publication Date
JPS61255440A true JPS61255440A (en) 1986-11-13

Family

ID=14185409

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9718185A Pending JPS61255440A (en) 1985-05-08 1985-05-08 Program interruption control system

Country Status (1)

Country Link
JP (1) JPS61255440A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6108792A (en) * 1988-09-06 2000-08-22 Seiko Epson Corporation Article for providing continuity of operation in a computer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6108792A (en) * 1988-09-06 2000-08-22 Seiko Epson Corporation Article for providing continuity of operation in a computer

Similar Documents

Publication Publication Date Title
JP2000242484A (en) Change method for control program
JPS61255440A (en) Program interruption control system
JPS62191947A (en) Disk cache control processing system
JP2561340B2 (en) Information processing device
JPS63157238A (en) Computer
JPH11265264A (en) Backup storage system and method therefor
JPS6146552A (en) Information processor
JPS59144955A (en) Information processor
JPH0554141B2 (en)
JPH04105110A (en) Power controller
JP2511544B2 (en) System definition change method
JPS5835648A (en) Program execution controlling system
JPS6212535B2 (en)
JPH07287660A (en) Interruption processing method for programmable controller
JPS58168121A (en) Processing system of power failure restoration
JPS59133620A (en) Automatic operating system for power restoration
JPH06119256A (en) Memory check system
TW550451B (en) Programmable power-on system and method for central processing unit
JPS61226820A (en) Data processing resuming system by power restoration
JPS63311446A (en) Power supply on/off function test system for logical device
JPH0454548A (en) Memory check system for computer system
JPH0371235A (en) Device for restarting multitask in interruption
JPH04148427A (en) Program patch system
JPS62204321A (en) Program restart system
JPS63316148A (en) History control system