JPH04365141A - Program re-execution system - Google Patents

Program re-execution system

Info

Publication number
JPH04365141A
JPH04365141A JP3166195A JP16619591A JPH04365141A JP H04365141 A JPH04365141 A JP H04365141A JP 3166195 A JP3166195 A JP 3166195A JP 16619591 A JP16619591 A JP 16619591A JP H04365141 A JPH04365141 A JP H04365141A
Authority
JP
Japan
Prior art keywords
program
page
saving
updated
save
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
JP3166195A
Other languages
Japanese (ja)
Inventor
Norihiro Fukushima
福嶋 則博
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 JP3166195A priority Critical patent/JPH04365141A/en
Publication of JPH04365141A publication Critical patent/JPH04365141A/en
Pending legal-status Critical Current

Links

Landscapes

  • Retry When Errors Occur (AREA)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

PURPOSE:To reduce the data volume to be saved by saving only updated pages in the save processing for re-execution of a program. CONSTITUTION:When the program of an electronic computer system is halfway executed again, only updated pages are saved by an updated page management means 2 and an updated page save means 3 after the state of the program is saved once by a program save means 1. The save processing of the program is performed without changing the program by an execution time monitor means 4 and an instruction step monitor means 5. Thus, the overhead for program save is reduced, and the program is not changed to perform the save processing.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、電子計算機システムに
おいて、プログラムの異常終了などにより、プログラム
の再実行を必要とする場合の再実行手段に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a re-execution means used in a computer system when a program needs to be re-executed due to abnormal termination of the program.

【0002】0002

【従来の技術】従来の技術では、プログラムの再実行を
行うためにプログラムの状態をセーブする時は、セーブ
する毎にプログラム全体をセーブしていた。また、プロ
グラムのセーブを行う場合には、プログラムの変更を行
う必要があった。
2. Description of the Related Art In the prior art, when saving the state of a program in order to re-execute the program, the entire program is saved every time the program is saved. Furthermore, when saving a program, it was necessary to change the program.

【0003】0003

【発明が解決しようとする課題】従来の技術では、プロ
グラムの状態をセーブするときは、セーブする毎にプロ
グラム全体をセーブしていたため、オードヘッドが大き
かった。
[Problems to be Solved by the Invention] In the conventional technology, when saving the state of a program, the entire program is saved each time it is saved, resulting in a large overhead.

【0004】本発明の目的は、一度セーブした後は、更
新ページのみをセーブすることにより、オードヘッドを
減らすことができるプログラムの再実行方式を提供する
ことにある。また、更新ページをセーブするタイミング
を、プログラムからの指示のみでなく、時間毎または命
令ステップ数毎に設定することにより、プログラムに手
を加えることなしにセーブできるプログラムの再実行方
式を提供することである。
An object of the present invention is to provide a program re-execution method that can reduce overhead by saving only updated pages once they have been saved. Furthermore, by setting the timing for saving updated pages not only according to instructions from the program, but also for each time or number of instruction steps, it is possible to provide a program re-execution method that allows saving without modifying the program. It is.

【0005】[0005]

【問題点を解決するための手段】本発明の第一は電子計
算機システムにおいて、実行中のプログラムの全体のペ
ージを保存するプログラムセーブ手段と、セーブされた
時点からのプログラム内の各ページの更新の状態を管理
する更新ページ管理手段と、更新されたページをセーブ
する更新ページセーブ手段と、該プログラムセーブ手段
によってセーブされた内容をロードするプログラムロー
ド手段と、該プログラムロード手段によってロードされ
た内容と該更新ページセーブ手段によりセーブされた内
容から更新ページセーブが行われた時点に復元する更新
ページロード手段と、復元された状態からプログラムを
実行するプログラム再開手段を備えることを特徴とする
プログラムの再実行方式である。
[Means for Solving the Problems] The first aspect of the present invention is to provide a program save means for saving all pages of a program being executed in an electronic computer system, and updating each page in the program from the time the program is saved. an updated page management means for managing the state of the updated page, an updated page saving means for saving updated pages, a program loading means for loading the contents saved by the program saving means, and the contents loaded by the program loading means. and an update page load means for restoring the content saved by the update page save means to the point in time when the update page was saved, and a program restart means for executing the program from the restored state. This is a re-execution method.

【0006】また、本発明の第二は電子計算機システム
において、実行中のプログラムの全体のページを保存す
るプログラムセーブ手段と、セーブされた時点からのプ
ログラム内の各ページの更新の状態を管理する更新ペー
ジ管理手段と、更新されたページをセーブする更新ペー
ジセーブ手段と、プログラムの実行時間を監視してプロ
グラムセーブおよび更新ページセーブを指示する実行時
間監視手段と、該プログラムセーブ手段によってセーブ
された内容をロードするプログラムロード手段と、該プ
ログラムロード手段によってロードされた内容と該更新
ページセーブ手段によりセーブされた内容から更新ペー
ジセーブが行われた時点に復元する更新ページロード手
段と、復元された状態からプログラムを実行するプログ
ラム再開手段を備えることを特徴とする、プログラムの
再実行方式である。
[0006] A second aspect of the present invention is a computer system that includes program save means for saving all pages of a program being executed, and managing the update status of each page in the program from the time the program is saved. an updated page management means; an updated page saving means for saving updated pages; an execution time monitoring means for monitoring program execution time and instructing program saving and updated page saving; a program loading means for loading contents; an update page loading means for restoring the contents loaded by the program loading means and the contents saved by the updated page saving means to the point in time when the updated page was saved; This is a program re-execution method characterized by having a program restart means for executing the program from the state.

【0007】更に、本発明の第三は電子計算機システム
において、実行中のプログラムの全体のページを保存す
るプログラムセーブ手段と、セーブされた時点からのプ
ログラム内の各ページの更新の状態を管理する更新ペー
ジ管理手段と、更新されたページをセーブする更新ペー
ジセーブ手段と、プログラムの実行した命令ステップ数
を監視してプログラムセーブおよび更新ページセーブを
指示する命令ステップ監視手段と、該プログラムセーブ
手段によってセーブされた内容をロードするプログラム
ロード手段と、該プログラムロード手段によってロード
された内容と該更新ページセーブ手段によりセーブされ
た内容から更新ページセーブが行われた時点に復元する
更新ページロード手段と、復元された状態からプログラ
ムを実行するプログラム再開手段を備えることを特徴と
する、プログラムの再実行方式である。
Furthermore, a third aspect of the present invention is a computer system that includes program saving means for saving all pages of a program being executed, and managing the update status of each page in the program from the time when the program is saved. An updated page management means, an updated page saving means for saving updated pages, an instruction step monitoring means for monitoring the number of instruction steps executed by a program and instructing to save the program and an updated page, and the program saving means. a program loading means for loading the saved content; an update page loading means for restoring the content loaded by the program loading means and the content saved by the update page saving means to the point in time when the update page was saved; This is a program re-execution method characterized by comprising a program restart means for executing the program from a restored state.

【0008】[0008]

【実施例】次に、本発明について図面を用いて説明する
[Example] Next, the present invention will be explained with reference to the drawings.

【0009】図1は、本発明の一実施例を説明する構成
図である。
FIG. 1 is a block diagram illustrating an embodiment of the present invention.

【0010】本実施例は、プログラムセーブ手段1と、
更新ページ管理手段2と、更新ページセーブ手段3と、
実行時間監視手段4と、命令ステップ監視手段5と、プ
ログラムロード手段6と、更新ページロード手段7、プ
ログラム再開手段8と、実行プログラム9と、二次記憶
装置10からなる。
[0010] In this embodiment, a program save means 1;
updated page management means 2, updated page saving means 3,
It consists of an execution time monitoring means 4, an instruction step monitoring means 5, a program loading means 6, an update page loading means 7, a program restarting means 8, an execution program 9, and a secondary storage device 10.

【0011】プログラムセーブ手段1は、プログラムの
全体のページを二次記憶装置にセーブし、プログラムの
再開を可能にする。
[0011] The program save means 1 saves the entire page of the program in a secondary storage device, making it possible to restart the program.

【0012】更新ページ管理手段2は、プログラムセー
ブ手段および更新ページセーブ手段3によってセーブさ
れた時点以降の更新されたページの番号を管理する。
[0012] The updated page management means 2 manages the numbers of pages that have been updated since the time when they were saved by the program saving means and the updated page saving means 3.

【0013】更新ページセーブ手段3は、更新ページ管
理手段によって管理されているページの内容を二次記憶
装置にセーブする。
[0013] The updated page saving means 3 saves the contents of the page managed by the updated page managing means in a secondary storage device.

【0014】実行時間監視手段4は、プログラムの実行
時間を監視し、プログラムセーブおよび更新ページセー
ブを指示する。
Execution time monitoring means 4 monitors the execution time of the program and instructs to save the program and save updated pages.

【0015】命令ステップ監視手段5は、プログラムの
実行した命令ステップ数を監視してプログラムセーブお
よび更新ページセーブを指示する。
The instruction step monitoring means 5 monitors the number of instruction steps executed by the program and instructs to save the program and save updated pages.

【0016】プログラムロード手段6は、プログラムセ
ーブ手段によってセーブされた内容をロードし、プログ
ラムの再実行を可能にする。
The program loading means 6 loads the contents saved by the program saving means and enables the program to be re-executed.

【0017】更新ページロード手段7は、プログラムロ
ード手段によってロードされた内容と、更新ページセー
ブ手段によってセーブされた内容から、更新ページセー
ブが行われた時点にプログラムの状態を復元する。
The update page loading means 7 restores the state of the program at the time when the update page was saved, from the contents loaded by the program load means and the contents saved by the update page save means.

【0018】プログラム再開手段8は、更新ページロー
ド手段によって復元された状態からプログラムの再開を
行う。
The program restart means 8 restarts the program from the state restored by the update page load means.

【0019】実行プログラム9は、実行するプログラム
である。
The execution program 9 is a program to be executed.

【0020】二次記憶装置10は、磁気ディスクなどの
大容量記憶装置である。
The secondary storage device 10 is a large capacity storage device such as a magnetic disk.

【0021】図2は、本発明の方式を説明する流れ図で
ある。
FIG. 2 is a flow diagram illustrating the scheme of the present invention.

【0022】流れ図は、プログラムの実行処理21と、
プログラムの終了判定22と、更新ページ管理処理23
と、プログラムのセーブ指示24と、実行時間監視25
と、実行ステップ監視26と、セーブ回数判定27と、
プログラムセーブ処理28と、更新ページセーブ処理2
9と、再実行判定2Aと、プログラムロード処理2Bと
、更新ページロード処理2Cと、プログラム再開処理2
Dから成る。
The flowchart shows program execution processing 21;
Program end determination 22 and update page management processing 23
, program save instruction 24 , and execution time monitoring 25
, execution step monitoring 26 , save count determination 27 ,
Program save processing 28 and updated page save processing 2
9, re-execution determination 2A, program load processing 2B, update page load processing 2C, and program restart processing 2
Consists of D.

【0023】次に、本実施例の動作について詳細に説明
する。
Next, the operation of this embodiment will be explained in detail.

【0024】プログラムの実行処理21により、プログ
ラム中の命令が実行される。命令の実行後、プログラム
の終了判定22によりプログラムの終了判定が行われる
。このとき、プログラムの終了または異常終了などの終
了の要因がなければ、更新ページ管理処理23を行う。 更新ページ管理処理では、プログラムの実行によって更
新されたページがあれば、更新されたページのページ番
号を登録する。プログラムのセーブ指示24では、プロ
グラムからセーブの指示があれば、セーブ回数判定27
を行う。
A program execution process 21 executes instructions in the program. After the instruction is executed, a program end determination 22 determines whether the program is complete. At this time, if there is no cause for termination such as program termination or abnormal termination, update page management processing 23 is performed. In the updated page management process, if there is a page updated by executing the program, the page number of the updated page is registered. In the program save instruction 24, if there is a save instruction from the program, the save number judgment 27
I do.

【0025】プログラムのセーブ指示は、実行時間監視
25によっても行うことができる。この場合は、あらか
じめ決められた実行時間をプログラムが消費した時にプ
ログラムのセーブ指示を出し、セーブ回数判定27を行
う。
The instruction to save the program can also be given by the execution time monitor 25. In this case, when the program consumes a predetermined execution time, an instruction to save the program is issued, and the number of saves is determined 27.

【0026】さらに、プログラムのセーブ指示は、実行
ステップ監視26によっても行うことができる。この場
合は、プログラムがあらかじめ決められた命令ステップ
数を実行した時にプログラムのセーブ指示を出し、セー
ブ回数判定27を行う。
Furthermore, the instruction to save the program can also be given by the execution step monitor 26. In this case, when the program has executed a predetermined number of instruction steps, a save instruction for the program is issued, and the number of saves is determined 27.

【0027】プログラムのセーブ指示がない時は、プロ
グラムの実行処理21へ戻る。
If there is no instruction to save the program, the process returns to program execution processing 21.

【0028】セーブ回数判定27では、プログラムのセ
ーブ指示が出た回数を判定し、1回目ならばプログラム
セーブ処理28を行う。もし2回目以降ならば、更新ペ
ージセーブ処理29を行う。
In the save count determination 27, the number of times a program save instruction has been issued is determined, and if it is the first time, program save processing 28 is performed. If it is the second or subsequent time, update page save processing 29 is performed.

【0029】プログラムセーブ処理28では、プログラ
ムの全体のページを二次記憶装置にセーブする。その後
、プログラムの実行処理21へ戻る。
In program save processing 28, all pages of the program are saved in the secondary storage device. Thereafter, the process returns to the program execution process 21.

【0030】更新ページセーブ処理29では、前回プロ
グラムのセーブ指示が出て、セーブされた以降に更新さ
れたページを二次記憶装置にセーブする。その後、プロ
グラムの実行処理21へ戻る。
In the updated page save processing 29, an instruction to save the previous program is given, and pages updated since the last time the program was saved are saved in the secondary storage device. Thereafter, the process returns to the program execution process 21.

【0031】一方、プログラムの終了判定22により終
了と判断された場合は、再実行判定2Aを行う。再実行
判定では、再実行の必要がなければ処理は終了する。
On the other hand, if the program termination determination 22 determines that the program has ended, a re-execution determination 2A is performed. In the re-execution determination, if there is no need to re-execute, the process ends.

【0032】再実行の必要があれば、プログラムロード
処理2Bを行う。プログラムロード処理では、プログラ
ムセーブ処理によって二次記憶装置にセーブされた内容
からプログラムの状態をロードする。更新ページロード
処理2Cでは、プログラムロード処理によってロードさ
れた内容と、更新ページセーブ手段によりセーブされた
内容から、更新ページセーブを行った時点の状態に復元
する。
If re-execution is necessary, program load processing 2B is performed. In the program load process, the state of the program is loaded from the contents saved in the secondary storage device by the program save process. In the update page load process 2C, the state at the time the update page was saved is restored from the content loaded by the program load process and the content saved by the update page save means.

【0033】その後、プログラム再開処理2Dにより、
復元された状態からプログラムの実行を再開する。
[0033] After that, by program restart processing 2D,
Resume program execution from the restored state.

【0034】[0034]

【発明の効果】以上説明したように本発明では、プログ
ラムの途中からの再実行を行うために、プログラム実行
中にプログラムの状態を二次記憶装置にセーブする処理
において、更新ページのみをセーブすることにより、セ
ーブにかかるオーバヘッドを減らすものである。
[Effects of the Invention] As explained above, in the present invention, in order to re-execute the program from the middle, only updated pages are saved in the process of saving the program state in the secondary storage device during program execution. This reduces the overhead required for saving.

【0035】さらに、セーブのタイミングを、実行時間
や実行命令ステップ数などの要因によっても行うことが
できるため、プログラムを変更することなく、プログラ
ムの再実行を可能にするものである。
Furthermore, since the save timing can be determined depending on factors such as the execution time and the number of executed instruction steps, it is possible to re-execute the program without changing the program.

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

【図1】本発明の一実施例を説明する構成図である。FIG. 1 is a configuration diagram illustrating an embodiment of the present invention.

【図2】本発明の方式を説明する流れ図である。FIG. 2 is a flowchart illustrating the method of the present invention.

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

1    プログラムセーブ手段 2    更新ページ管理手段 3    更新ページセーブ手段 4    実行時間監視手段 5    命令ステップ監視手段 6    プログラムロード手段 7    更新ページロード手段 8    プログラム再開手段 9    実行プログラム 10    二次記憶装置 21    プログラムの実行処理 22    プログラムの終了判定 23    更新ページ管理処理 24    プログラムのセーブ指示 25    実行時間監視 26    実行ステップ監視 27    セーブ回数判定 28    プログラムセーブ処理 29    更新ページセーブ処理 2A    再実行判定 2B    プログラムロード処理 2C    更新ページロード処理 2D    プログラム再開処理 1 Program save means 2 Update page management means 3 Updated page saving means 4 Execution time monitoring means 5 Command step monitoring means 6 Program loading means 7 Update page loading means 8 Program restart means 9 Execution program 10 Secondary storage device 21 Program execution processing 22 Program end determination 23 Update page management process 24 Program save instruction 25 Execution time monitoring 26 Execution step monitoring 27 Save count determination 28 Program save processing 29 Updated page save process 2A Re-execution judgment 2B Program load processing 2C Update page load processing 2D Program restart processing

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】  電子計算機システムにおいて、実行中
のプログラムの全体のページを保存するプログラムセー
ブ手段と、セーブされた時点からのプログラム内の各ペ
ージの更新の状態を管理する更新ページ管理手段と、更
新されたページをセーブする更新ページセーブ手段と、
該プログラムセーブ手段によってセーブされた内容をロ
ードするプログラムロード手段と、該プログラムロード
手段によってロードされた内容と該更新ページセーブ手
段によりセーブされた内容から更新ページセーブが行わ
れた時点に復元する更新ページロード手段と、復元され
た状態からプログラムを実行するプログラム再開手段を
備えることを特徴とするプログラムの再実行方式。
1. In a computer system, a program save means for saving all pages of a program being executed; an updated page management means for managing an updated state of each page in the program from the time of saving; an updated page saving means for saving updated pages;
A program loading means for loading the contents saved by the program saving means, and an update for restoring the contents loaded by the program loading means and the contents saved by the updated page saving means to the point in time when the updated page was saved. A program re-execution method characterized by comprising a page load means and a program restart means for executing the program from a restored state.
【請求項2】  電子計算機システムにおいて、実行中
のプログラムの全体のページを保存するプログラムセー
ブ手段と、セーブされた時点からのプログラム内の各ペ
ージの更新の状態を管理する更新ページ管理手段と、更
新されたページをセーブする更新ページセーブ手段と、
プログラムの実行時間を監視してプログラムセーブおよ
び更新ページセーブを指示する実行時間監視手段と、該
プログラムセーブ手段によってセーブされた内容をロー
ドするプログラムロード手段と、該プログラムロード手
段によってロードされた内容と該更新ページセーブ手段
によりセーブされた内容から更新ページセーブが行われ
た時点に復元する更新ページロード手段と、復元された
状態からプログラムを実行するプログラム再開手段を備
えることを特徴とする、プログラムの再実行方式。
2. In a computer system, a program save means for saving all pages of a program being executed; an updated page management means for managing an update state of each page in the program from the time when the program was saved; an updated page saving means for saving updated pages;
Execution time monitoring means for monitoring program execution time and instructing program save and update page save; Program loading means for loading the contents saved by the program saving means; and Contents loaded by the program loading means. A program comprising an update page load means for restoring the contents saved by the update page save means to the point in time when the update page was saved, and a program restart means for executing the program from the restored state. Rerun method.
【請求項3】  電子計算機システムにおいて、実行中
のプログラムの全体のページを保存するプログラムセー
ブ手段と、セーブされた時点からのプログラム内の各ペ
ージの更新の状態を管理する更新ページ管理手段と、更
新されたページをセーブする更新ページセーブ手段と、
プログラムの実行した命令ステップ数を監視してプログ
ラムセーブおよび更新ページセーブを指示する命令ステ
ップ監視手段と、該プログラムセーブ手段によってセー
ブされた内容をロードするプログラムロード手段と、該
プログラムロード手段によってロードされた内容と該更
新ページセーブ手段によりセーブされた内容から更新ペ
ージセーブが行われた時点に復元する更新ページロード
手段と、復元された状態からプログラムを実行するプロ
グラム再開手段を備えることを特徴とする、プログラム
の再実行方式。
3. In a computer system, a program save means for saving all pages of a program being executed; an updated page management means for managing an update state of each page in the program from the time when the program was saved; an updated page saving means for saving updated pages;
instruction step monitoring means for monitoring the number of instruction steps executed by the program and instructing program save and update page save; program loading means for loading the contents saved by the program saving means; The present invention is characterized by comprising an update page loading means for restoring the updated page to the point in time when the updated page was saved from the content saved by the updated page saving means, and a program restarting means for executing the program from the restored state. , program re-execution method.
JP3166195A 1991-06-12 1991-06-12 Program re-execution system Pending JPH04365141A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3166195A JPH04365141A (en) 1991-06-12 1991-06-12 Program re-execution system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3166195A JPH04365141A (en) 1991-06-12 1991-06-12 Program re-execution system

Publications (1)

Publication Number Publication Date
JPH04365141A true JPH04365141A (en) 1992-12-17

Family

ID=15826853

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3166195A Pending JPH04365141A (en) 1991-06-12 1991-06-12 Program re-execution system

Country Status (1)

Country Link
JP (1) JPH04365141A (en)

Similar Documents

Publication Publication Date Title
JPS62221732A (en) Register saving and recovery system
JPH04284548A (en) Data base exclusive controlling system
US6418540B1 (en) State transfer with throw-away thread
JPH04365141A (en) Program re-execution system
JP3341064B2 (en) Control program creation device
JP2851039B2 (en) Workstation backup system
JPH03163617A (en) Warm-boot method of program in computer system
JPH08263296A (en) System for preserving and restoring program execution environment
CN114389951A (en) Seamless upgrading method under 5G network, network equipment and storage medium
JPH0348940A (en) Electronic computer system
JPH02139630A (en) Online task exchange device
JPH0262633A (en) Inter-program communication system
JPH03196222A (en) Program replacing system
JPS62133535A (en) Program check point processing system
JPH0784786A (en) Program execution control method
JPH04256024A (en) Dividing and loading system for program
JPH0279129A (en) Check point restarting system
JPH03182945A (en) Transfer system for data in main storage
JPH02245828A (en) Stopping/resuming device of job in the middle of execution
JPH0319033A (en) System interruption/restart system
JPH03192446A (en) Memory control system
JPH1049417A (en) Batch processing managing system
JPH1124941A (en) Method and device for instruction execution control
JPS6394339A (en) Virtual calculation system
JPH04155532A (en) Task switching system